restore metastat configuration after solaris upgrade


 
Thread Tools Search this Thread
Operating Systems Solaris restore metastat configuration after solaris upgrade
# 1  
Old 03-03-2011
restore metastat configuration after solaris upgrade

Greetings
How can i restore metastat db after a solaris upgrade (9 to 10)?

will it work if i save and restore /etc/vfstab and /etc/lvm/md.cf file?

Code:
root@netad# metastat 
d35: Mirror
    Submirror 0: d38
      State: Okay         
    Submirror 1: d39
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 267868224 blocks (127 GB)

d38: Submirror of d35
    State: Okay         
    Size: 267868224 blocks (127 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s6          0     No            Okay   Yes 
    Stripe 1:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d36             0     No            Okay   No  

d36: Soft Partition
    Device: c0t1d0s0
    State: Okay
    Size: 123634360 blocks (58 GB)
	Device     Start Block  Dbase Reloc
	c0t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                162938885                123634360


d39: Submirror of d35
    State: Okay         
    Size: 267868224 blocks (127 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s6          0     No            Okay   Yes 
    Stripe 1:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d37             0     No            Okay   No  

d37: Soft Partition
    Device: c1t1d0s0
    State: Okay
    Size: 123634360 blocks (58 GB)
	Device     Start Block  Dbase Reloc
	c1t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                162938885                123634360


d30: Mirror
    Submirror 0: d33
      State: Okay         
    Submirror 1: d34
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 104854464 blocks (49 GB)

d33: Submirror of d30
    State: Okay         
    Size: 104854464 blocks (49 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d31             0     No            Okay   No  

d31: Soft Partition
    Device: c0t1d0s0
    State: Okay
    Size: 104857599 blocks (49 GB)
	Device     Start Block  Dbase Reloc
	c0t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 58081284                104857599


d34: Submirror of d30
    State: Okay         
    Size: 104854464 blocks (49 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d32             0     No            Okay   No  

d32: Soft Partition
    Device: c1t1d0s0
    State: Okay
    Size: 104857599 blocks (49 GB)
	Device     Start Block  Dbase Reloc
	c1t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 58081284                104857599


d25: Mirror
    Submirror 0: d28
      State: Okay         
    Submirror 1: d29
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20719296 blocks (9.9 GB)

d28: Submirror of d25
    State: Okay         
    Size: 20719296 blocks (9.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d26             0     No            Okay   No  

d26: Soft Partition
    Device: c0t1d0s0
    State: Okay
    Size: 20725759 blocks (9.9 GB)
	Device     Start Block  Dbase Reloc
	c0t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 37355523                 20725759


d29: Submirror of d25
    State: Okay         
    Size: 20719296 blocks (9.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d27             0     No            Okay   No  

d27: Soft Partition
    Device: c1t1d0s0
    State: Okay
    Size: 20725759 blocks (9.9 GB)
	Device     Start Block  Dbase Reloc
	c1t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 37355523                 20725759


d20: Mirror
    Submirror 0: d23
      State: Okay         
    Submirror 1: d24
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 16623360 blocks (7.9 GB)

d23: Submirror of d20
    State: Okay         
    Size: 16623360 blocks (7.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d21             0     No            Okay   No  

d21: Soft Partition
    Device: c0t1d0s0
    State: Okay
    Size: 16629759 blocks (7.9 GB)
	Device     Start Block  Dbase Reloc
	c0t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 20725762                 16629759


d24: Submirror of d20
    State: Okay         
    Size: 16623360 blocks (7.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d22             0     No            Okay   No  

d22: Soft Partition
    Device: c1t1d0s0
    State: Okay
    Size: 16629759 blocks (7.9 GB)
	Device     Start Block  Dbase Reloc
	c1t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                 20725762                 16629759


d12: Mirror
    Submirror 0: d13
      State: Okay         
    Submirror 1: d14
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 33561216 blocks (16 GB)

d13: Submirror of d12
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s5          0     No            Okay   Yes 


d14: Submirror of d12
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s5          0     No            Okay   Yes 


d9: Mirror
    Submirror 0: d10
      State: Okay         
    Submirror 1: d11
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 24875136 blocks (11 GB)

d10: Submirror of d9
    State: Okay         
    Size: 24875136 blocks (11 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s1          0     No            Okay   Yes 


d11: Submirror of d9
    State: Okay         
    Size: 24875136 blocks (11 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s1          0     No            Okay   Yes 


d6: Mirror
    Submirror 0: d7
      State: Okay         
    Submirror 1: d8
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 16780608 blocks (8.0 GB)

d7: Submirror of d6
    State: Okay         
    Size: 16780608 blocks (8.0 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s3          0     No            Okay   Yes 


d8: Submirror of d6
    State: Okay         
    Size: 16780608 blocks (8.0 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s3          0     No            Okay   Yes 


d3: Mirror
    Submirror 0: d4
      State: Okay         
    Submirror 1: d5
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 33561216 blocks (16 GB)

d4: Submirror of d3
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s4          0     No            Okay   Yes 


d5: Submirror of d3
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s4          0     No            Okay   Yes 


d0: Mirror
    Submirror 0: d1
      State: Okay         
    Submirror 1: d2
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 33561216 blocks (16 GB)

d1: Submirror of d0
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c0t0d0s0          0     No            Okay   Yes 


d2: Submirror of d0
    State: Okay         
    Size: 33561216 blocks (16 GB)
    Stripe 0:
	Device     Start Block  Dbase        State Reloc Hot Spare
	c1t0d0s0          0     No            Okay   Yes 


d15: Mirror
    Submirror 0: d18
      State: Okay         
    Submirror 1: d19
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20719296 blocks (9.9 GB)

d18: Submirror of d15
    State: Okay         
    Size: 20719296 blocks (9.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d16             0     No            Okay   No  

d16: Soft Partition
    Device: c0t1d0s0
    State: Okay
    Size: 20725759 blocks (9.9 GB)
	Device     Start Block  Dbase Reloc
	c0t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                        1                 20725759


d19: Submirror of d15
    State: Okay         
    Size: 20719296 blocks (9.9 GB)
    Stripe 0:
	Device   Start Block  Dbase        State Reloc Hot Spare
	d17             0     No            Okay   No  

d17: Soft Partition
    Device: c1t1d0s0
    State: Okay
    Size: 20725759 blocks (9.9 GB)
	Device     Start Block  Dbase Reloc
	c1t1d0s0          0     No    Yes

	Extent              Start Block              Block count
	     0                        1                 20725759


Device Relocation Information:
Device   Reloc	Device ID
c1t0d0   Yes  	id1,sd@SFUJITSU_MAW3147NC_______DAF4P7300K4G
c0t0d0   Yes  	id1,sd@SFUJITSU_MAW3147NC_______DAF4P7200JAM
c0t1d0   Yes  	id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400L7M
c1t1d0   Yes  	id1,sd@SFUJITSU_MAW3147NC_______DAF4P7300K76


Last edited by DukeNuke2; 03-03-2011 at 05:50 AM..
# 2  
Old 03-03-2011
Did you loose the SVM configuration after upgrade? Or are you asking if the configuration will be preserved when upgrading? The answer to the second question is "yes", just don't touch slices containing SVM database replicas (most probably slice 7 on all disks).
# 3  
Old 03-04-2011
Bundle of thanks bartus
Actually i lost the previous mirroring configuration
I want to restore it.
should i just restore
Code:
 /etc/lvm/md.cf   file?

Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Ubuntu

Upgrade ubuntu 11.10 freeze in the logo with msg below no network configuration

Hi, I just upgrade my 11.04 to 11.10 last 2 days ang after i upgrade my system wont boot ang stay freezes forever in the logo with a msgs below state that the system will boot without network configuration. by the way before that happen the system show msgs about configure the network and again... (2 Replies)
Discussion started by: jao_madn
2 Replies

2. IP Networking

cisco switch + firewall configuration upgrade

Hi experts, I need to cope configuration from one switch/firewall to another switch/firewall. I have copied running configs. The question is do I have to clear the existing configuration on the dest. devices Or can I copy it(replace) directly without clearing previous config ? If... (2 Replies)
Discussion started by: hernand
2 Replies

3. AIX

Restore and upgrade concurrently

I have serveral servers that are at AIX 6.1 tl4 sp1 and want to move them to new hardware and upgrade them at the same time. Using NIM and sysback images I want to backup the current server with sysback and restore it and upgrade it to AIX 6.1 tl4 sp6 to the new hardware using my NIM server. My... (4 Replies)
Discussion started by: daveisme
4 Replies

4. Solaris

SVM Solaris 8 Problem. Metastat output looping

Hi friends, I'm newbie to SVM. Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :( the steps i've taken is as below:- 1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2 2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Discussion started by: kronenose
3 Replies
Login or Register to Ask a Question