Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Upgrading From HAStorage to HAStoragePlus

HAStorage is not supported in the current release of Sun Cluster software. Equivalent functionality is supported by HAStoragePlus. For instructions for upgrading from HAStorage to HAStorage, see the subsections that follow.


Note –

The resource groups that have the HAStorage resource configured will be in STOP_FAILED state since HAStorage is no longer supported. Clear the ERROR_STOP_FAILED flag for the resource and follow the instructions to upgrade HAStorage to HAStoragePlus.


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
    

ProcedureHow to Upgrade From HAStorage With CFS to HAStoragePlus With Highly Available Local File System

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 HAStorage resource.

  1. Remove the dependencies the application resource has on HAStorage resource.


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


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


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


    # clresourcetype unregister SUNW.HAStorage
    
  5. Modify /etc/vfstab to remove the global flag and change “mount at boot” to “no”.

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

  7. Disable the application server resource.


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


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


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


    # clresourcegroup online -eM nfs1-rg