I'm trying to undo my root (/) mirror. Here is my metastat and vfstab output:
d1: Mirror
Submirror 1: d2
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2048301 blocks
d2: Submirror of d1
State: Okay
Size: 2048301 blocks
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s0 0 No Okay Yes
d0: Concat/Stripe
Size: 2048301 blocks
Stripe 0:
Device Start Block Dbase Reloc
c1t0d0s0 0 No Yes
# metaroot d0
xpress19# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /usr ufs 1 no -
/dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 no -
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c1t0d0s5 /dev/rdsk/c1t0d0s5 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
I want to make d0 my Mirror instead of d1. I accidentaly did a metadetach d1 d0. I
tried to metattach d1 d0, but it does not seem to work. Plus in vfstab, my / is d0.
Any recommendations? Here was my plan, but it went to hell when I screwed-up the
metadetach part:
Example:
# metadetach d1 d2
d1: submirror d2 is detached
# metaroot /dev/dsk/c1t0d0s0
# reboot
...
# metaclear -r d1
d1: Mirror is cleared
d2: Concat/Stripe is cleared
# metaclear d2
d20: Concat/Stripe is cleared
In this example, root (/) is a two-way mirror named d1; its submirrors are
d0 and d2, which are made of slices /dev/dsk/c1t0d0s0 and /dev/dsk/c1t1d0s0,
respectively. The metastat command verifies that at least one submirror is in the
"Okay" state.
d1: Mirror
Submirror 1: d2
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2048301 blocks
d2: Submirror of d1
State: Okay
Size: 2048301 blocks
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s0 0 No Okay Yes
d0: Concat/Stripe
Size: 2048301 blocks
Stripe 0:
Device Start Block Dbase Reloc
c1t0d0s0 0 No Yes
# metaroot d0
xpress19# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /usr ufs 1 no -
/dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 no -
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c1t0d0s5 /dev/rdsk/c1t0d0s5 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
I want to make d0 my Mirror instead of d1. I accidentaly did a metadetach d1 d0. I
tried to metattach d1 d0, but it does not seem to work. Plus in vfstab, my / is d0.
Any recommendations? Here was my plan, but it went to hell when I screwed-up the
metadetach part:
Example:
# metadetach d1 d2
d1: submirror d2 is detached
# metaroot /dev/dsk/c1t0d0s0
# reboot
...
# metaclear -r d1
d1: Mirror is cleared
d2: Concat/Stripe is cleared
# metaclear d2
d20: Concat/Stripe is cleared
In this example, root (/) is a two-way mirror named d1; its submirrors are
d0 and d2, which are made of slices /dev/dsk/c1t0d0s0 and /dev/dsk/c1t1d0s0,
respectively. The metastat command verifies that at least one submirror is in the
"Okay" state.