Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Remove File Systems Other Than ZFS From an Online HAStoragePlus Resource

When you remove a file system from an HAStoragePlus resource, the HAStoragePlus resource treats a local file system differently from a cluster file system or a global file system.

  • The HAStoragePlus resource automatically unmounts a local file system while going offline.

  • The HAStoragePlus resource does not unmount the cluster file system or the global file system while going offline.


Caution

Caution  -  Before removing a file system from an online HAStoragePlus resource, ensure that no applications are using the file system. When you remove a file system from an online HAStoragePlus resource, the file system might be forcibly unmounted. If a file system that an application is using is forcibly unmounted, the application might fail or hang.


  1. On one node of the cluster, assume the root role that provides solaris.cluster.modify authorization.
  2. 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 from which you are removing file systems.

    -G hasp-rg

    Specifies the resource group that contains the HAStoragePlus resource.

  3. Modify the FileSystemMountPoints extension property of the HAStoragePlus resource to contain only the mount points of the file systems that are to remain in 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 are to remain in the HAStoragePlus resource. This list must not include the mount points of the file systems that you are removing.

    hasp-resource

    Specifies the HAStoragePlus resource from which you are removing file systems.

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

    Specifies the HAStoragePlus resource from which you are removing file systems.

    -G hasp-rg

    Specifies the resource group that contains the HAStoragePlus resource.

  5. 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 unmount a file system failed.

    # clresource status hasp-resource
  6. (Optional) From the /etc/vfstab file on each node of the cluster, remove the entry for the mount point of each file system that you are removing.
Example 56  Removing a File System From an Online HAStoragePlus Resource

This example shows how to remove a file system from 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 systems whose mount points are as follows:

    • /global/global-fs/fs

    • /global/local-fs/fs

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

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

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

# clresource status rshasp


=== Cluster Resources ===

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