SUMMARY: How to remove all metadevices

From: Dave Martini (martini@mrpeabody.llnl.gov)
Date: Thu Feb 09 2006 - 12:43:00 EST


Looks like I just needed to unmount the filesystems before doing the
metaclear -f. If it's the / /var file systems then change them back to
their c#t#d# designations in /etc/vfstab and reboot first then do the
metaclear.
And, it's not necessary to do a newfs on the partitions on the 2nd.
internal disk (the one being mirrored to).

Thanks to all the responders.
Dave Martini
LLNL

Below is my original question

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:55 EDT