How to remove exports/shares and unconfigure NFS from a CFS NFS configuration using cfsshare.

How to remove exports/shares and unconfigure NFS from a CFS NFS configuration using cfsshare.

Article: 100055497
Last Published: 2023-03-24
Ratings: 1 0
Product(s): InfoScale & Storage Foundation


If NFS is no longer needed after it was setup with the "cfsshare" utility then it can be removed using the cfsshare utility. 


Shares are no longer wanted, and user wants to unconfigure NFS exporting from CFSNFS setup.


Before proceeding be sure that any VIPs(Virtual IP Addresses) that were created when CFSNFS (Cluster Filesystem NFS) was setup is no longer in use. If the address is being used then the client will see an outage since we are removing it. This IP was created when CFSNFS was setup and it is intended for NFS clients to use to connect.

1. Remove mountpoint from CFSNFS configuration to stop NFS export.

Verify what is configured as a share:

 # cfsshare display

Remove the share from configuration.

# cfsshare unshare <mountpoint>


2. Remove VIP if one was created for CFSNFS. If a VIP was added with the cfsshare utility then it will normally be in a VCS service group named “vip1” for the first VIP, “vip2” for the second and so on.

Checking which IP address to specify in this command. A service group is created for each VIP, normally named vip1, and so on. You can verify which will need to be removed by seeing what VIPs are a dependency for the “cfsnfssg” service group.

# hagrp -dep cfsnfssg

Example output where only 1 vip is configured, “vip1” has an address that will need to be removed:

# hagrp -dep cfsnfssg

#Parent      Child      Relationship

cfsnfssg     cvm        online local firm

vip1         cfsnfssg   online local firm

Find the IP address configured so we can specify it in the next command.

# hares -value <VIP service group name> Address

Example output:

# hares -value vip1 Address

Remove VIP address.

# cfsshare deletevip <VIP>

Example output:

# cfsshare deletevip


3. Unconfigure CFSNFS

# cfsshare unconfig -p nfs


The CFS mounts will remain online and accessible to each cluster node that has it mounted, this operation can be done online in a running cluster.

Was this content helpful?