Manage NAS Services
This topic provides information to help you manage your NAS services.
By default, NAS services are not enabled on your node to avoid running services that are not needed and might trigger a site security scanner (your site might refuse to have any kind of NFS server services).
You can enable or disable all NAS services as needed.
Do the following to enable NAS:
- Log in to the Appliance Controller CLI.
- Enter:
> nas enable
Example output:
NAS services will take over the following config
files and custom modifaction will be lost:
/etc/exports
/etc/samba/smb.conf
/etc/nsswitch.conf
/etc/sssd/sssd.conf
/etc/ldap/ldap.conf
Are you sure you want to enable NAS? (yes/No)? yes
- Enter yes to enable NAS:
- Enter the password for the
sysadmin
user account (default issysadmin
), and click <ENTER
>. - Enter the password for the
sysadmin
user account again (default issysadmin
), and click <ENTER
>.
Set password required for 'sysadmin' user
Password:
You will be asked to enter the password for the sysadmin
account again:
Enter password again:
You will see the following confirmation items indicating that NAS has updated the registry, and NAS services have started:
Nas enable registry set
Waiting for NAS to be runnable
NAS services are now enabled and running.
The process is complete.
Before you Begin
Before you disable NAS, the following conditions must be met, or you will see error messages on attempting to disable NAS:
-
Authentication needs to be local.
-
Ensure you have no existing shares defined. If you do you need to remove all of them with the
share delete
command. -
Make sure the server node is not part of a cluster. If you need to leave the cluster, use either the
nascluster leave
ornascluster reset factory-defaults
'
Do the following to disable NAS:
- Log in to the Appliance Controller CLI.
- Enter:
> nas disable
You will see the following confirmation items indicating that NAS has updated the registry, and NAS services have stopped:
NAS services are now stop and disabled.
The process is complete.
You can disable SMB or NFS services on a single node if you do not want them to be actively running. If you decide to use these features after disabling them on a node, you can also enable SMB or NFS services.
By default, SMB or NFSv3 services are enabled. To check whether these services are enabled, use the system status
command. See View System Status.
- Log in to the Appliance Controller CLI on the node you will disable services.
- Enter:
> nas nfs enable
- Log in to the Appliance Controller CLI.
- Enter:
nas nfs disable
- Log in to the Appliance Controller CLI.
- Enter:
- Log in to the Appliance Controller CLI.
- Enter:
nas smb disable