Stop the Sun Cluster software on the current node:
# scadmin stopnode |
Initial the spare disk for use with CVM:
# /etc/vx/bin/vxdisksetup -i c1t0d0 |
Add the new disk to rootdg:
# vxdg adddisk c1t0d0 |
Use the format command to release the old disk partition, which is a part of boot disk for rootdg:
# format c0t0d0 |
Remove the original disk from rootdg:
# vxdg rmdisk c0t0d0s5 # vxdisk rm c0t0d0s5 |
Clean up the old partition of rootdg in the volboot file:
# vxdctl rm disk c0t0d0s5 |
Use the vxdiskadm command to encapsulate the boot disk (for example, c0t0d0):
# vxdiskadm -Select an operation to perform: 2 -Select disk devices to encapsulate: [,all,list,q,?] c0t0d0 -Continue operation? [y,n,q,?] (default: y) y -Which disk group [,list,q,?] (default: rootdg) rootdg -Use a default disk name for the disk? [y,n,q,?] (default: y) n -Continue with operation? [y,n,q,?] (default: y) y -Continue with encapsulation? [y,n,q,?] (default: y) y -Enter disk name for [,q,?] (default: disk01) disk01 -Encapsulate other disks? [y,n,q,?] (default: n) n -Select an operation to perform: q |
Reboot the system:
# shutdown -g0 -y -i6 |
The system will reboot a second time to complete the process.
The boot disk is now encapsulated and managed by CVM.
To verify the encapsulation:
To mirror the encapsulated disk, choose a disk (for example, c0t2d0) and a media name (for example, mirrorroot), and enter:
# /etc/vx/bin/vxdisksetup -i c0t2d0 # /usr/sbin/vxdg adddisk mirrorroot=c0t2d0 |
You should see the new disk in the rootdg disk group of vxva.
Mirror the encapsulated boot disk on mirrorroot:
# /etc/vx/bin/vxmirror disk01 mirrorroot |
vxmirror displays a series of commands corresponding to the mirroring of volumes in the encapsulated boot disk.
After vxmirror is completed, verify that the process was successful by looking for the mirrored volumes in the rootdg disk group of vxva.
It is now possible to boot from the mirror of the boot disk.
Remove the temporary disk from the rootdg disk group:
# vxdg rmdisk c1t0d0 # vxdisk rm c1t0d0 |
Start the Sun Cluster software:
# scadmin startnode |
If you would like to mirror the other system, repeat Procedure B.