Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Add File Systems Other Than ZFS to an Online HAStoragePlus Resource

When you add a local or cluster file system to an HAStoragePlus resource, the HAStoragePlus resource automatically mounts the file system.

  1. On one node of the cluster, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. In the /etc/vfstab file on each node of the cluster, add an entry for the mount point of each file system that you are adding.

    For each entry, set the mount at boot field and the mount options field as follows:

    • For local file systems:

      • Set the mount at boot field to no.

      • Remove the global flag.

    • For cluster file systems, set the mount options field to contain the global option.

  3. Retrieve the list of mount points for the file systems that the HAStoragePlus resource already manages.
    # scha_resource_get -O extension -R hasp-resource -G hasp-rg FileSystemMountPoints
    -R hasp-resource

    Specifies the HAStoragePlus resource to which you are adding file systems

    -G hasp-rg

    Specifies the resource group that contains the HAStoragePlus resource

  4. Modify the FileSystemMountPoints extension property of the HAStoragePlus resource to contain the following mount points:
    • The mount points of the file systems that the HAStoragePlus resource already manages

    • The mount points of the file systems that you are adding to the HAStoragePlus resource

    # clresource set -p FileSystemMountPoints="mount-point-list" hasp-resource
    -p FileSystemMountPoints="mount-point-list"

    Specifies a comma-separated list of mount points of the file systems that the HAStoragePlus resource already manages and the mount points of the file systems that you are adding. The format of each entry in the list is LocalZonePath:GlobalZonePath. In this format, the global path is optional. If the global path is not specified, the global path is the same as the local path.

    hasp-resource

    Specifies the HAStoragePlus resource to which you are adding file systems.

  5. Confirm that you have a match between the mount point list of the HAStoragePlus resource and the list that you specified in Step 4.
    # scha_resource_get -O extension -R hasp-resource -G hasp-rg FileSystemMountPoints
    -R hasp-resource

    Specifies the HAStoragePlus resource to which you are adding file systems.

    -G hasp-rg

    Specifies the resource group that contains the HAStoragePlus resource.

  6. Confirm that the HAStoragePlus resource is online and not faulted.

    If the HAStoragePlus resource is online and faulted, validation of the resource succeeded, but an attempt by HAStoragePlus to mount a file system failed.

    # clresource status hasp-resource
Example 55  Adding a File System to an Online HAStoragePlus Resource

This example shows how to add a file system to an online HAStoragePlus resource.

  • The HAStoragePlus resource is named rshasp and is contained in the resource group rghasp.

  • The HAStoragePlus resource named rshasp already manages the file system whose mount point is /global/global-fs/fs.

  • The mount point of the file system that is to be added is /global/local-fs/fs.

The example assumes that the /etc/vfstab file on each cluster node already contains an entry for the file system that is to be added.

# scha_resource_get -O extension -R rshasp -G rghasp FileSystemMountPoints
STRINGARRAY
/global/global-fs/fs

# clresource set -p FileSystemMountPoints="/global/global-fs/fs,/global/local-fs/fs"
# scha_resource_get -O extension -R rshasp -G rghasp FileSystemMountPoints rshasp
STRINGARRAY
/global/global-fs/fs
/global/local-fs/fs

# clresource status rshasp

=== Cluster Resources ===

Resource Name        Node Name      Status        Message
--------------       ----------     -------       --------
rshasp               node46         Offline       Offline
                     node47         Online        Online