Sun Cluster Data Services Planning and Administration Guide for Solaris OS

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