You can use the qoperation command to unexport the NFS or SMB share. When a share is unexported, the corresponding SMB share will also be removed.
If Samba server is disabled, then the corresponding Samba share becomes stale.
Procedure
-
On the MediaAgent, run the qlogin command to log on to the CommServe.
-
Download the nfs_remove_export_template.xml file and save it on the MediaAgent from where the command will be executed.
-
From software_installation_directory/Base type the following command:
qoperation execute -af input_xml_file_path$ -maClientInfo/clientName '$[MediAagent_name' -sNfsClntIP 'NFS_client_IP' -sShare 'mount_path' -shareId '*Share_ID'Note: You can also define parameter values in the nfs_remove_export_template.xml file, instead of on the command line. For more information on command line parameters and XML elements, see Command Line - Syntax.
For more information on viewing the parameters for the NFS shares, see Viewing the Exported NFS and SMB Shares Using the CvConfigureArchiveStore Utility.
-
To log off the CommServe computer, run the qlogout command.
Example
qoperation execute -af /nfsunexport.xml -maClientInfo/clientName '3dfsSelCacheServer_CN_1' -sNfsClntIP '172.16.62.154' -sShare '3dfsnfsshare' -shareId '1428'For information on parameters for deleting an NFS Share, see NFS Share Unexport Parameters.
Output
Sample output of the unexport command:
<App_GenericResp>
<errorCode>0</errorCode>
</App_GenericResp>
Diagnostics
Possible error code values are as follows:
-
0: The unexport command executed successfully
-
-1: The unexport command failed
-
-7: Connectivity issue with the NFS server
-
-9: Reached the limit for number of unexports. Applicable for FSM type 4.