Sun Cluster Software Installation Guide for Solaris OS

Example—Mirroring the Root (/) File System

The following example shows the creation of mirror d0 on the node phys-schost-1, which consists of submirror d10 on partition c0t0d0s0 and submirror d20 on partition c2t2d0s0. Device c2t2d0 is a multihost disk, so the localonly property is enabled.

(Create the mirror)
# metainit -f d10 1 1 c0t0d0s0
d11: Concat/Stripe is setup
# metainit d20 1 1 c2t2d0s0
d12: Concat/Stripe is setup
# metainit d0 -m d10
d10: Mirror is setup
# metaroot d0
# lockfs -fa
(Move resource groups and device groups from phys-schost-1)
# scswitch -S -h phys-schost-1
(Reboot the node)
# shutdown -g0 -y -i6
(Attach the second submirror)
# metattach d0 d20
d0: Submirror d20 is attached
(Display the device-group node list)
# scconf -pvv | grep dsk/d2
Device group name:						dsk/d2
  (dsk/d2) Device group node list:		phys-schost-1, phys-schost-3
(Remove phys-schost-3 from the node list)
# scconf -r -D name=dsk/d2,nodelist=phys-schost-3
(Enable the localonly property)
# scconf -c -D name=dsk/d2,localonly=true
(Record the alternate boot path)
# ls -l /dev/rdsk/c2t2d0s0
lrwxrwxrwx  1 root     root          57 Apr 25 20:11 /dev/rdsk/c2t2d0s0 
–> ../../devices/node@1/pci@1f,0/pci@1/scsi@3,1/disk@2,0:a,raw