In this example, you determine the path to the alternate root device by using the ls -l command on the slice that is being attached as the second submirror to the root (/) mirror.
# ls -l /dev/rdsk/c1t3d0s0 lrwxrwxrwx 1 root root 55 Mar 5 12:54 /dev/rdsk/c1t3d0s0 -> \ ../../devices/sbus@1,f8000000/esp@1,200000/sd@3,0:a |
Here you would record the string that follows the /devices directory: /sbus@1,f8000000/esp@1,200000/sd@3,0:a.
Solaris Volume Manager users who are using a system with OpenBootTM Prom can use the OpenBoot nvalias command to define a “backup root” device alias for the secondary root (/) mirror. For example:
ok nvalias backup_root /sbus@1,f8000000/esp@1,200000/sd@3,0:a |
Then, redefine the boot-device alias to reference both the primary and secondary submirrors, in the order in which you want them to be used, and store the configuration.
ok printenv boot-device boot-device = disk net ok setenv boot-device disk backup-root net boot-device = disk backup-root net ok nvstore |
In the event of primary root disk failure, the system would automatically boot to the second submirror. Or, if you boot manually, rather than using auto boot, you would only enter:
ok boot backup_root |