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

Problem

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

Cause

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

Solution

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.

https://www.veritas.com/content/support/en_US/doc/129686563-129686571-0/uxrt-731_v27544542-129686571

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.

https://www.veritas.com/content/support/en_US/doc/129686563-129686571-0/uxrt-731_v26067824-129686571

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

192.168.10.41

Remove VIP address.

# cfsshare deletevip <VIP>

Example output:

# cfsshare deletevip 192.168.10.41

 

3. Unconfigure CFSNFS

https://www.veritas.com/content/support/en_US/doc/129686563-129686571-0/uxrt-731_v26339645-129686571

# 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?