How to remove all metadevices

From: Dave Martini (martini@mrpeabody.llnl.gov)
Date: Mon Feb 06 2006 - 19:16:25 EST


How do I clear out and remove all of my metadevices????
I tried metaclear -f and metadetach -f and get various errors.
Also, for a two disk mirrored system do I have to do a newfs on the
partitions on the 2nd. internal (mirror) before I setup the mirrors
in order for the system to boot off the mirror?
Thank You.
Dave Martini
LLNL

# metaclear -af
metaclear: minime: d8: metadevice is open

# metastat
d8: Mirror
     Submirror 0: d6
       State: Okay
     Submirror 1: d7
       State: Needs maintenance
     Pass: 1
     Read option: roundrobin (default)
     Write option: parallel (default)
     Size: 8193204 blocks (3.9 GB)

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

d7: Submirror of d8
     State: Needs maintenance
     Invoke: metareplace d8 c1t1d0s3 <new device>
     Size: 8193204 blocks (3.9 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t1d0s3 0 No Maintenance Yes

d5: Mirror
     Submirror 0: d3
       State: Okay
     Submirror 1: d4
       State: Needs maintenance
     Pass: 1
     Read option: roundrobin (default)
     Write option: parallel (default)
     Size: 6144903 blocks (2.9 GB)

d3: Submirror of d5
     State: Okay
     Size: 6144903 blocks (2.9 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t0d0s1 0 No Okay Yes

d4: Submirror of d5
     State: Needs maintenance
     Invoke: metareplace d5 c1t1d0s1 <new device>
     Size: 6144903 blocks (2.9 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t1d0s1 0 No Maintenance Yes

d0: Mirror
     Submirror 0: d1
       State: Okay
     Submirror 1: d2
       State: Needs maintenance
     Pass: 1
     Read option: roundrobin (default)
     Write option: parallel (default)
     Size: 12289806 blocks (5.9 GB)

d1: Submirror of d0
     State: Okay
     Size: 12289806 blocks (5.9 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t0d0s0 0 No Okay Yes

d2: Submirror of d0
     State: Needs maintenance
     Invoke: metareplace d0 c1t1d0s0 <new device>
     Size: 12289806 blocks (5.9 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t1d0s0 0 No Maintenance Yes

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

d9: Submirror of d11
     State: Okay
     Size: 44042805 blocks (21 GB)
     Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t0d0s4 0 No Okay Yes

d10: Concat/Stripe
     Size: 44042805 blocks (21 GB)
     Stripe 0:
         Device Start Block Dbase Reloc
         c1t1d0s4 0 No Yes

Device Relocation Information:
Device Reloc Device ID
c1t1d0 Yes id1,ssd@w2000000c504eea92
c1t0d0 Yes id1,ssd@w20000004cf9900e6
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:51 EDT