
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-09 Rev B
February 2014
24
NAS Configuration CLI Commands
Note:
When files are replicated from a share with no_root_squash enabled to
a target DXi where no_root_squash was not supported, then NFS hosts
accessing the target DXi will have root access permissions mapped
(squashed) to the anonymous user.
For example, to add three shares:
syscli --add share --name share1 --proto cifs \ --name share2 --proto cifs --ro
--name share3 --proto nfs
CLI command options:
•
--add
: Adds one or more NAS shares. Option
--hidden
does not apply to
NFS shares.
•
--name
: sharename: must be alphanumeric character.
• -
-proto
: Network file sharing protocol (currently CIFS and NFS are
supported)
•
--desc
: Optional description for the share.
•
--ro
: if specified, share is read-only. Otherwise, share is read-write.
•
--dedup
: if specified, dedup will be enabled (this attribute cannot be
changed after share is created)
•
--hidden
: if specified, share name will not be displayed in the browser
(applicable to CIFS shares only)
•
--namecase
: Client file/directory names are to be stored in storage in the
specified character case (applicable to CIFS shares only). If this option is not
specified or is specified with
default
, client file/directory names are treated
as case-insensitive and case-preserved, that is, file/directory names will be
saved in the original character case as is, and all search will be performed in
a case-insensitive manner. If specified with
lower
, all incoming client file/
directory names will be converted to lower case before saving or searching.
•
--squash:
For NFS only. Option to squash (map) NFS client users to nobody
user.
•
root:
map client root to nobody user (enable root_squash; this is the
default)
•
none:
preserve all client users (enable no_root_squash)
By default, if
--squash
is not specified, root_squash is enabled.
•
--anonuid
: Anonymous user id (for NFS only), usually 4294967294 on 32-bit
systems or 65534 on 16-bit systems. If not specified, default to 4294967294
•
--anongid
: Anonymous group id (for NFS only), usually 4294967294 on 32-
bit systems or 65534 on 16-bit systems. If not specified, default to
4294967294
Editing a NAS Share
syscli --edit share --name <sharename> [--desc <description>] [--perms
rw|ro [--restart]] [--hidden false|true] [--squash root|none] [--anonuid
<anonymous_uid>] [--anongid <anonymous_gid>] [--namecase default [--
sure]]