This command creates a view, which is a resource location exposed to data clients. A view can be exposed to NFSv3, NFSv4.1 or SMB clients or to both NFSv3 and SMB clients or to both NFSv3 and NFSv4 clients.
Usage
object command subcommand --path PATH [--protocols NFS|SMB|NFS4|NFS,SMB|NFS,NFS4] [--alias ALIAS] [--share SHARE] [--policy-id ID] [--create-dir]
Required Parameters
|
Specifies a path to a file system directory to be exposed to clients. It can be a directory that was already created by a client inside an exposed parent directory, or it can be a new directory, in which case you must specify the --create_dir option to create the directory. Example: --path /a/b/c |
Options
|
Specifies which protocol(s) the view will be exposed to. Enter the value as a comma separated list of supported protocols. Supported protocols are NFS (NFSv3), NFS4 (NFSv4.1) and SMB. Examples:
|
|
For NFSv3 exports, specifies an alternative shorter name for the path that can be used alternatively when mounting. Optional and relevant only if the view is exposed to NFS. An alias must begin with a forward slash ("/") and must consist of only ASCII characters. |
|
Specifies the SMB share name. Required if the view is exposed to SMB. The name cannot include the following characters: /\:|<>*?" |
|
Specifies which view policy to apply. If unspecified, the default policy (ID 1) is used. |
|
Creates a directory at the specified path. Include this option of the directory does not already exist. |
Example
This example creates a view of the pre-existing /dev
directory, with an NFS export, using the default view policy.
vcli: admin> view create --path /dev --protocols NFS
This example creates a multiprotocol view of a directory at the /home/users/devteam
path using a non default view policy.
vcli: admin> view create --path /home/users/devteam --protocols NFS,SMB --alias /devteam --share devteamusers --policy-id 2 --create-dir
Comments
0 comments
Article is closed for comments.