Manage NAS Shares for a DXi System
Use the following commands to manage Network Attached Storage (NAS) shares for your DXi system.
Note: NAS is only available on certain DXi models. See your DXi User's Guide to determine whether NAS is available for your model.
View a list of all existing NAS shares and their attributes.
Command
syscli ‑‑list share [{‑‑proto cifs|nfs|app_specific} | {‑‑name <share name>}] [‑‑namematch <pattern>]
Review the following attribute descriptions.
|
|
Lists all NAS shares. You can limit the list to the type of protocol by defining a value for the |
|
|
If you use this option, only shares whose names match the specified pattern are listed. The wild characters
|
View a list of all names for both CIFS/SMB, Network File System (NFS), and Application Specific shares.
Command
syscli ‑‑list sharename [‑‑proto cifs|nfs|app_specific] [‑‑namematch <pattern>]
Review the following attribute descriptions.
|
|
Lists all NAS share names. You can limit the list to the type of protocol by defining a value for the |
|
|
If you use this option, only shares whose names match the specified pattern are listed. The wild characters
|
List a single NAS share by specifying the share name.
Command
syscli ‑‑get share ‑‑name <sharename>
Example Output
Output data:
Share name = NAS1
Protocol = nfs
Export Path = /Q/shares/NAS1
Hidden = false
Dedup = Enabled
Permissions = rw
Access = All hosts
Description =
Squash = root
Commit = sync
Allow Links = Disabled
Anonymous uid = 4294967294
Anonymous gid = 4294967294
List the total count of NAS shares defined in the system.
Command
syscli ‑‑getcount share [‑‑proto cifs|nfs|app_specific] [‑‑namematch <pattern>]
Review the following attribute descriptions.
|
|
Lists the total count of NAS shares. You can limit the count to the type of protocol by defining a value for the |
|
|
If you use this option, only shares whose names match the specified pattern are listed. The wild characters
|
View a list of all existing NAS shares and their attributes.
Command
syscli ‑‑list share [{‑‑proto cifs|nfs|app_specific} | {‑‑name <share name>}] [‑‑namematch <pattern>]
Review the following attribute descriptions.
|
|
Lists all NAS shares. You can limit the list to the type of protocol by defining a value for the |
|
|
If you use this option, only shares whose names match the specified pattern are listed. The wild characters
|
List contents of a given Application Specific NAS share.
Command
syscli --list appsharecontents --name <sharename> [--terse]
Review the following attribute descriptions.
|
|
Lists all files and directories on a Application Specific NAS share. |
|
|
Enter the name of the Application Specific NAS share to be listed. |
--terse
|
If specified, only the directory listing will be displayed in the output. |
Add one or more NAS shares. To add more than one share, repeat the same set of options noting that all mandatory options must be re-specified even if they are unchanged.
Command
syscli --add share (--name <sharename> --proto {cifs|nfs|app_specific} [--desc<description>] [--ro] [--dedup] [--hidden] [--namecase lower|default] [--squash root|none] [--anonuid <anonymous uid>] [--anongid <anonymous_gid>])
Example command for adding 3 NAS shares
syscli --add share --name share1 --proto app_specific --name share2 --proto cifs --ro --name share3 --proto nfs
Review the following attribute descriptions.
|
|
Adds NAS shares. |
|
|
Enter the name of the share to edit. You must use alphanumeric characters for the share name. |
|
|
Specify the network file sharing protocol to assign to the share, either CIFS/SMB, NFS, or Application Specific |
|
|
Enter an optional description for the share. Enclose the description with quatiation marks if it includes spaces |
|
|
If you specify this option, makes the share read-only. Otherwise, the share is read-write. |
|
|
If you specify this option, deduplication is enabled. You cannot change this attribute after a share is created. |
|
|
If you specify this option, the share name will not be displayed in the browser. This option is applicable to CIFS/SMB shares only. |
|
|
For CIFS/SMB shares only, client file/directory names are stored using the specified character case.
|
|
|
For NFS only, squashes (maps) NFS client users to a nobody user.
Note: When files are replicated from a share with |
|
|
For NFS only, the anonymous user ID. This ID is usually 4294967294 on 32-bit systems or 65534 on 16-bit systems. If not specified, the default ID is 4294967294. |
|
|
For NFS only, the anonymous group ID. This ID is usually 4294967294 on 32-bit systems or 65534 on 16-bit systems. If not specified, default ID is 4294967294. |
Modify one or more attributes of a NAS share. You must specify at least one attribute to edit, even though the syntax implies that all attributes are optional.
Command
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]]
Review the following attribute descriptions.
|
|
Edits the specified attributes of a NAS share. |
|
|
Enter the name of the share to edit. You must use alphanumeric characters for the share name. |
|
|
Edit the description for the share. |
|
|
Change share permissions to either read-write (rw) or read-only (ro). Note: If a CIFS/SMB share's permissions are changed, users who are currently logged on the share will not see the changes until they log off and log in again, or until CIFS/SMB service is restarted |
|
|
For CIFS/SMB share only, restarts the CIFS/SMB service. Caution: If CIFS/SMB service is restarted, users who are currently logged on to CIFS/SMB shares may experience disconnection and/or I/O disruption. In addition, backup jobs connected to CIFS/SMB shares may fail I/O. |
|
|
If you specify |
|
|
For NFS only, squashes (maps) NFS client users to a nobody user.
Note: When files are replicated from a share with |
|
|
For NFS only, the anonymous user ID. This ID is usually 4294967294 on 32-bit systems or 65534 on 16-bit systems. If not specified, the default ID is 4294967294. |
|
|
For NFS only, the anonymous group ID. This ID is usually 4294967294 on 32-bit systems or 65534 on 16-bit systems. If not specified, default ID is 4294967294. |
|
|
For CIFS/SMB shares only, client file/directory names are treated as case-insensitive and case-preserved. File/directory names will be saved in the original character case as is, and all search will be performed in a case-insensitive manner. Use this option in the following situations:
After the
Note: After specifying the |
|
|
If specified, the CLI executes the command without prompting for confirmation. |
This command copies files directly on the DXi without the need to move the data between the DXi and the client requesting the copy. This feature leverages deduplicated data and avoids retrieving and storing a copy of the file over the network.
Use this command for making a restore point copy of a rolling full image, before updating that image with the latest incremental changes.
For example, when using Oracle RMAN's Rolling Forward Image Copy Backups on a DXi NAS (NFS or SMB) share, a copy of the current backup image can be made quickly and efficiently on the DXi using this feature. The copy can then be added to the RMAN catalog via scripted commands on the Oracle server, before the next set of incremental changes are made to the image.
Note: Server Side Copy (SSC) is only available for RMAN disk backups on DXi NAS shares. It is not available for RMAN sbt backups (RMAN plug-in with Application Specific shares).
Command
syscli --copy path --name <sharename> --source <path> [--destname <sharename>] --dest <path> [--terse]
Review the following attribute descriptions.
|
|
Copies the specified file or directory in a NAS share. |
|
|
Enter the name of the NAS share to be copied. You must use alphanumeric characters for the share name. |
|
|
Enter the path to the directory or file to be copied. |
|
|
The NAS share to copy the directory or file to. If not specified, the copy is made to the source share. |
|
|
Enter the path to copy to in the destination share. |
|
|
If specified, output will only be shown if an error occurs. |
Enable the allowlinks attribute for a single share by entering the share name OR for all shares. When the allowlinks attribute is enabled, the share supports hard links. By default, all shares are created the with allowlinks attribute disabled. If you enable the attribute, it cannot be disabled.
Note: If you enable hard link support (‑‑enable allowlinks) for an NFS share, replication cannot be enabled for the share; likewise, if you enable replication for the share, hard link support is disabled.
Command
syscli ‑‑enable allowlinks {‑‑share <sharename>} | ‑‑all
Delete one or more existing NAS shares. You must enter the NAS share name to delete a share.
When a share is deleted, all connections to the share are severed and all data stored on it is removed permanently. Any scheduled replications will be removed.
Command
syscli ‑‑del share (‑‑name <sharename>)
Delete all NAS shares on your DXi system.
Command
syscli ‑‑deleteall share [‑‑proto {cifs|nfs|app_specific}] [‑‑namematch <pattern>] [‑‑sure]
Review the following attribute descriptions
|
|
Deletes all NAS shares. |
|
|
If you use this option, deletes only shares of the specified protocol type. |
|
|
If you use this option, only shares whose names match the specified pattern are deleted. The wild characters
|
|
|
If specified, the CLI executes the command without prompting for confirmation. |
