In the following example, the resource group resource-group-1 contains the following data services:
HA for Oracle iPlanet Web Server, which depends on /global/resource-group-1
HA for Oracle, which depends on /dev/global/dsk/d5s2
HA for NFS, which depends on dsk/d6
To create an HAStoragePlus resource hastorageplus-1 for new resources in resource-group-1, read Synchronizing the Startups Between Resource Groups and Device Groups Using HAStoragePlus and then perform the following steps.
To create an HAStoragePlus resource, see Enabling Highly Available Local File Systems.
# clresourcegroup create resource-group-1
The following command prints a list of registered resource types.
# clresourcetype show | egrep Type
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g resource-group-1 -t SUNW.HAStoragePlus \ -p GlobalDevicePaths=/dev/global/dsk/d5s2,dsk/d6 \ -p FilesystemMountPoints=/global/resource-group-1 hastorageplus-1
GlobalDevicePaths can contain the following values.
Global device group names, such as nfs-dg, dsk/d5
Paths to global devices, such as /dev/global/dsk/d1s2, /dev/md/nfsdg/dsk/d10
FilesystemMountPoints can contain the following values.
Mount points of local or cluster file systems, such as /local-fs/nfs, /global/nfs
The resource is created in the enabled state.
For example, for Oracle iPlanet Web Server, run the following command.
# clresource create -g resource-group-1 -t SUNW.iws \ -p Confdir_list=/global/iws/schost-1 -p Scalable=False \ -p Resource_dependencies=schost-1 -p Port_list=80/tcp \ -p Resource_dependencies_offline_restart=hastorageplus-1 resource
The resource is created in the enabled state.
# clresource show -v resource | egrep Resource_dependencies_offline_restart
# clresourcegroup online -M resource-group-1
The HAStoragePlus resource type contains another extension property, AffinityOn, which is a Boolean that specifies whether HAStoragePlus must perform an affinity switchover for the global devices that are defined in GLobalDevicePaths and FileSystemMountPoints extension properties. For details, see the SUNW.HAStoragePlus(5) man page.