The Solaris Boot disk contains all the operating system files required to start and run the system. This is also known as the "root" file system. A disk mirror consists of two disks with identical data that are seen as one by the operating system. The advantage is that if one disk fails, the other one continues to function and provide access to critical files. Since the root file system is on the Boot disk, it's important to enter commands exactly to create a mirror and maintain system stability.
- Skill level:
- Moderately Easy
Other People Are Reading
Turn off the system and install the second hard drive. Make sure the hard drive is equal to or larger than the root disk being mirrored or the mirror will not work.
Start Solaris and log in as an administrator.
Type the following command to copy the partition table to the new disk:
prtvtoc /dev/rdsk/c3t2d0s2 | fmthard -s - /dev/rdsk/c3t3d0s2
Type the following command to copy the metadata used by the Solaris Volume Manager (SVM):
metadb -a -c 3 -f c3t2d0s7 c3t3d0s7
Type the following command to initialise the first disk:
metainit -f d11 1 1 c3t2d0s0
Type the following command to initialise the second disk:
metainit -f d12 1 1 c3t3d0s0
Type the following command to create the mirror:
metainit d10 -m d11
Type the following command to update the system for the first half of the mirror:
Restart the system, then type the following command to update the configuration for the second drive:
metattach d10 d12
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for