Chapter 2 NAS Head 2-127
Selecting an export and clicking the remove button will remove the export.
Selecting an export and clicking the edit button, or double clicking an existing export
will bring up the edit screen. Only the “access” field may be changed in this screen.
Other changes must be made by deleting the export and recreating it, or by editing
the configuration files manually. Also, please note that it is not currently possible to
change order of exports in the Web Admin.
For additional information on this topic, and also for an additional level of
configuration detail, please refer to the FAQ, “How do I manage NFS exports via the
configuration files?”
Important – It is recommended that you avoid sharing user data at the root of a
volume. The best practice is to create subdirectory structures and share these. This
eases security administration, and removes the need to hide or secure system
folders.
How do I manage NFS exports via the configuration files?
Editing the configuration files directly affords the greatest level of control over NFS
exports. The primary files which are used for this are /dvol/etc/hostgrps and
/dvol/etc/approve. Access these file via NFS or SMB, and open them with an
editor.
Important – You must enter the command “approve update” at the CLI after the
editing of files is complete. Otherwise, all changes to the approve files will be lost
the next time a change is made via one of the administration interfaces.
Entries in the hostgrps file are plain text, separated by spaces. The name of the host
group is always the first entry on each line, followed by one or more hostnames or
IP addresses.
Entries in the approve file are also plain text, separated by spaces. Comment lines
are preceded by the “#” character. The active lines each define an NFS export. The
syntax for the active lines is as follows:
<Object type> <path> <hosts or groups> <security>
The object type will always be “files”.
The path is the full directory path to the data exported, including volume name.
Hosts or groups will typically be a hostgrps entry, but can also be a netgroup entry
or host specification.