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.
Remove the dependencies the application resources has on HAStorage.
# scrgadm -c -j nfsserver-rs -y Resource_Dependencies="" |
Disable the HAStorage resource.
# scswitch -n -j nfs1storage-rs |
Remove the HAStorage resource from the application resource group.
# scrgadm -r -j nfs1storage-rs |
Unregister the HAStorage resource type.
# scrgadm -r -t SUNW.HAStorage |
Register the HAStoragePlus resource type.
# scrgadm -a -t SUNW.HAStoragePlus |
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.
# scrgadm -a -j nfs1-hastp-rs -g nfs1-rg -t \ SUNW.HAStoragePlus -x FilesystemMountPoints=/global/nfsdata -x \ AffinityOn=True |
To specify global device paths, type the following command.
# scrgadm -a -j nfs1-hastp-rs -g nfs1-rg -t \ SUNW.HAStoragePlus -x GlobalDevicePaths=nfsdg -x AffinityOn=True |
Enable the HAStoragePlus resource.
# scswitch -e -j nfs1-hastp-rs |
Set up the dependencies between the application server and HAStoragePlus.
# scrgadm -c -j nfsserver-rs -y \ Resource_Depencencies=nfs1=hastp-rs |