Sun Cluster 2.2 Cluster Volume Manager Guide

Procedure B

  1. Stop the Sun Cluster software on the current node:


    # scadmin stopnode 
    
  2. Initial the spare disk for use with CVM:


    # /etc/vx/bin/vxdisksetup -i c1t0d0 
    
  3. Add the new disk to rootdg:


    # vxdg adddisk c1t0d0 
    
  4. Use the format command to release the old disk partition, which is a part of boot disk for rootdg:


    # format c0t0d0 
    
  5. Remove the original disk from rootdg:


    # vxdg rmdisk c0t0d0s5
    # vxdisk rm c0t0d0s5 
    
  6. Clean up the old partition of rootdg in the volboot file:


    # vxdctl rm disk c0t0d0s5 
    
  7. 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
    
  8. 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.

  9. To verify the encapsulation:

    1. Invoke vxva and open up the icon of the rootdg disk group.

      You should see the encapsulated boot disk and the four volumes that have been created from it.

    2. Verify that the /etc/vfstab file now refers to device files in the /dev/vx/dsk directory rather than the /dev/dsk directory.

  10. 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.

  11. 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.

  12. 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.

  13. Remove the temporary disk from the rootdg disk group:


    # vxdg rmdisk c1t0d0
    # vxdisk rm c1t0d0 
    
  14. Start the Sun Cluster software:


    # scadmin startnode 
    
  15. If you would like to mirror the other system, repeat Procedure B.