Delete Shares
You can remove SMB and NFS shares from the StorNext NAS configuration, and in turn, prohibit the shares from being exported from StorNext NAS. Removing SMB and NFS shares from the configuration does not remove the share directory or any of its files.
Caution
-
The Appliance Controller manages the smb.conf and /etc/exports files for StorNext NAS. Any edits you make directly to either of these files are lost when you restart the Appliance Controller, or when you make a change using any of the
share
commands. -
When you make a change to an SMB share, its existing connection might be impacted and depending on the SMB client, it is possible to disconnect from that share.
Note: For a list of all the Appliance Controller commands, see the Command Index.
To delete a share:
- Log in to the Appliance Controller CLI.
- At the prompt, enter the following:
share delete <share_type> <share_name> [force]
The parameters are:
<share_type>
The type of share, either
nfs
orsmb
.<share_name>
The alias name of the share to delete.
[force]
If this option is not included, then you must confirm deletion of the share.
If this option is included, then the specified share is deleted without confirmation.
Example: (delete myshare2):
> share delete nfs myshare2 force
Share myshare2 successfully deleted