1. Copy the volume table from the root disk to the mirror
- #dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 count=16
- #prtvtoc /dev/rdsk/c1t0d0s2 fmthard -s - /dev/rdsk/c1t1d0s2
2. Install the boot block code on the alternate boot disk
- #uname -i
- #installboot /usr/platform/'uname -i'/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
3. Create the meta databases on both of disk
- #metadb -a -f -c 3 c1t0d0s7 c1t1d0s7
- #metadb -i
- #echo set md:mirrored_root_flag=1 >> /etc/system
4. Create mirror at each slice and attach one submirror
- #metainit -f d10 1 1 c1t0d0s0
- #metainit d20 1 1 c1t1d0s0
- #metainit d0 -m d10
- #metainit -f d11 1 1 c1t0d0s1
- #metainit d21 1 1 c1t1d0s1
- #metainit d1 -m d11
- #metainit -f d12 1 1 c1t0d0s3
- #metainit d22 1 1 c1t1d0s3
- #metainit d2 -m d12
- #metainit -f d13 1 1 c1t0d0s4
- #metainit d23 1 1 c1t1d0s4
- #metainit d3 -m d13
5. Setup the system files for root metadevices
- #metaroot d0
6. Clear improper file locks
- #lockfs -fa
7. Configure dumpadm and swap
8. Replace the remaining partition with metadevices in /etc/vfstab
- #cp /etc/vfstab /etc/vfstab.tmp
9. Syncronize and reboot the system
- #sync;sync;sync;init 6
10. Attach the mirrors
- #metattach d0 d20
- #metattach d1 d21
- #metattach d2 d22
- #metattach d3 d23
11. Check the progress
- #metastat grep -i progress
- #metastat
12. Halt the system and create an OBP alias for the bootable disks.
- #ls -l /dev/rdsk/c1t1d0s0
- #init 0
- OK show-disks
- OK nvalias bootdisk /ssm@0,0/pci@18,700000/pci@2/SUNW,isptwo@4/sd@0,0:a
- OK nvalias mirrdisk /ssm@0,0/pci@18,700000/pci@2/SUNW,isptwo@4/sd@1,0:a
- OK setenv boot-device bootdisk mirrdisk
- OK boot


