Software >> OS >> Unix >> Solaris >> An example of how to create Solaris Volume Manager (SVM) mirror diskassume we want to mirror the following c1t0d0s0 & c1t1d0s0 (as d10 for / filesystem) 1. save the current structure in c1t0d0 and then write into c1t1d0
2. Create ufs file systems on the copied slices newfs /dev/rdsk/c1t1d0s0 3. Create the metadata space metadb -af -c3 /dev/dsk/c1t0d0s7 metadb 4.. Init the submirrors and then add one of them to the mirror disk metainit -f d11 1 1 c1t0d0s0 5. update /etc/system and /etc/vfstab with the new root disk metaroot d10 6. run lockfs and reboot /usr/sbin/lockfs -fa 7. After reboot, login as root and attach d12 metattach d10 d12 8. create mirror for the swap filesystem metainit -f d21 1 1 c1t0d0s1 9. edit /etc/vfstab and replace /dev/dsk/c1t1d0s1 with /dev/md/dsk/d20 for the swap file system
|