Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Upgrade From HAStorage to HAStoragePlus When Using Device Groups or CFS

The following example uses a simple HA-NFS resource that is active with HAStorage. The ServicePaths are the disk group nfsdg and the AffinityOn property is True. Furthermore, the HA-NFS resource has Resource_Dependencies set to the HAStorage resource.

  1. Bring offline the resource group nfs1-rg.


    # clresourcegroup offline nfs1-rg
    
  2. Remove the dependencies the application resources has on HAStorage.


    # clresource set -p Resource_Dependencies="" nfsserver-rs
    
  3. Disable the HAStorage resource.


    # clresource disable nfs1storage-rs
    
  4. Remove the HAStorage resource from the application resource group.


    # clresource delete nfs1storage-rs
    
  5. Unregister the HAStorage resource type.


    # clresourcetype unregister SUNW.HAStorage
    
  6. Register the HAStoragePlus resource type.


    # clresourcetype register SUNW.HAStoragePlus
    
  7. Create the HAStoragePlus resource.


    Note –

    Instead of using the ServicePaths property of HAStorage, you must use the FilesystemMountPoints property or GlobalDevicePaths property of HAStoragePlus.


    • To specify the mount point of a file system, type the following command.

      The FilesystemMountPoints extension property must match the sequence that is specified in /etc/vfstab.


      # clresource create -g nfs1-rg -t \
      SUNW.HAStoragePlus -p FilesystemMountPoints=/global/nfsdata -p \
      AffinityOn=True nfs1-hastp-rs
      
    • To specify global device paths, type the following command.


      # clresource create -g nfs1-rg -t \
      SUNW.HAStoragePlus -p GlobalDevicePaths=nfsdg -p AffinityOn=True nfs1-hastp-rs
      

    The resource is created in the enabled state.

  8. Disable the application server resource.


    # clresource disable nfsserver-rs
    
  9. Bring online the nfs1-rg group on a cluster node.


    # clresourcegroup online nfs1-rg
    
  10. Set up the dependencies between the application server and HAStoragePlus.


    # clresource set -p Resource_dependencies=nfs1-hastp-rs nfsserver-rs
    
  11. Bring online the nfs1-rg group on a cluster node.


    # clresourcegroup online -eM nfs1-rg