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