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.
Remove the dependencies the application resource has on HAStorage resource.
# clresource set -p Resource_Dependencies="" nfsserver-rs |
Disable the HAStorage resource.
# clresource disable nfs1storage-rs |
Remove the HAStorage resource from the application resource group.
# clresource delete nfs1storage-rs |
Unregister the HAStorage resource type.
# clresourcetype unregister SUNW.HAStorage |
Modify /etc/vfstab to remove the global flag and change “mount at boot” to “no”.
Create the HAStoragePlus resource.
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.
Disable the application server resource.
# clresource disable nfsserver-rs |
Bring online the nfs1-rg group on a cluster node.
# clresourcegroup online nfs1-rg |
Set up the dependencies between the application server and HAStoragePlus.
# clresource set -p Resource_dependencies=nfs1-hastp-rs nfsserver-rs |
Bring online the nfs1-rg group on a cluster node.
# clresourcegroup online -eM nfs1-rg |