Follow

fs.export.create  

ROLE: Admin, Pool Admin

Description

Create a new filesystem export.

The following parameters accept values up to 910241024*1024 byte: maximum_write_size, maximum_read_size, preferred_write_size, preferred_readdir_size.

Syntaxfs.export.create fs={FS|SNAP} export_path=STR [internal_path=STR] [copy_permissions_from=EXPORT] [squash_all_users=YESNO] [anonymous_gid=INT] [anonymous_uid=INT] [maximum_write_size=SIZE] [maximum_read_size=SIZE] [preferred_write_size=SIZE] [preferred_read_size=SIZE] [preferred_readdir_size=SIZE] [privileged_port=YESNO] [snapshot_directory_visible=YESNO] [character_encoding=Character Encoding]
ArgumentsfsName of an existing filesystem or snapshot
maximum_write_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
anonymous_uidAn integer number
anonymous_gidAn integer number
squash_all_usersEither yes or no
copy_permission_fromName of an existing export
internal_pathA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
export_pathAny sequence of characters
compressionEither yes or no
maximum_read_sizeThe character set of clients using the NFS export
character_encodingThe character encoding
snapshot_directory_visibleEither yes or no
privileged_portA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
preferred_readdir_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
preferred_write_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
Examplefs.export.create fs=fs1 export_path=/fs/
Export /fs/ created
ExampleSetting the visibility of the snapshot directory to the export. By default, the directory is visible.
fs.export.create fs=fs-1 export_path=/no_visibility_settings
Export "/no_visibility_settings" created
ExampleSetting the visibility of the snapshot directory to the export. In this example, the export is set not to see the directory.
fs.export.create fs=fs-1 export_path=/invisible snapshot_directory_visible=no
Export "/invisible" created



fs.export.delete  

ROLE: Admin, Pool Admin

Description

Delete filesystem export. 

Syntaxfs.export.delete export_path=EXPORT[,EXPORT,...]
Argumentsexport_pathName of an existing export (multiple values, separated by commas)
Example
fs.export.delete export_path=/fs/
Export /fs/ deleted



fs.export.disable  

ROLE: Admin, Pool Admin

Description

Disable filesystem export.

Syntaxfs.export.disable export_path=EXPORT
Argumentsexport_pathName of an existing export 
Example
fs.export.disable export_path=/fs/
Export /fs/ disabled



fs.export.enable  

ROLE: Admin, Pool Admin

Description

Enable filesystem export.

Syntaxfs.export.enable export_path=EXPORT
Argumentsexport_pathName of an existing export 
Example
fs.export.enable export_path=/fs/
Export /fs/ enabled



fs.export.modify  

ROLE: Admin, Pool Admin

Description

Modify existing filesystem export.

The following parameters accept values up to 910241024*1024 byte: maximum_write_size, maximum_read_size, preferred_write_size, preferred_readdir_size.  

Syntaxfs.export.modify export_path=EXPORT [copy_permissions_from=EXPORT] [squash_all_users=YESNO] [anonymous_gid=INT] [anonymous_uid=INT] [maximum_write_size=SIZE] [maximum_read_size=SIZE] [preferred_write_size=SIZE] [preferred_read_size=SIZE] [preferred_readdir_size=SIZE] [privileged_port=YESNO] [snapshot_directory_visible=YESNO]
Argumentsexport_pathName of an existing filesystem or snapshot
maximum_read_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
maximum_write_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
anonymous_uidAn integer number
anonymous_gidAn integer number
squash_all_usersEither yes or no
copy_permission_fromName of an existing export
preferred_write_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
snapshot_directory_visibleEither yes or no
privileged_portEither yes or no
preferred_readdir_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
preferred_write_sizeA positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000
Examplefs.export.modify export_path=/fs/ copy_permissions_from=/fs1/
Export /fs/ modified



fs.export.query  

ROLE: All Roles 

Description

List existing filesystem exports.

Syntaxfs.export.query [export_path=EXPORT[,EXPORT,...]] [internal_path=STR[,STR,...]] [fs={FS|SNAP}[,{FS|SNAP},...]]
Argumentsinternal_pathAny sequence of characters (multiple values, separated by commas)
export_pathName of an existing export (multiple values, separated by commas)
fsName of an existing filesystem or snapshot (multiple values, separated by commas)
Example
Running the command for a filesystem.
fs.export.query name=FS1010
EXPORT PATH       INTERNAL PATH  FILESYSTEM  TYPE        ENABLED PERMISSIONS
/export/FS1010_a  /              FS1010      FILESYSTEM  yes     1
/export/FS1010_b  /              FS1010      FILESYSTEM  yes     1  
ExampleRunning the command for the same filesystem, with detailed output.
fs.export.query name=FS1010 --detailed

EXPORT PATH                     /export/FS1010_a
Internal Path                   /
Filesystem                      FS1010
Type                            Filesystem
Enabled                         yes
Anongid                         65534
Anonuid                         65534
Squash All Users                no 
Max Wsize                       1048576
Max Rsize                       1048576
Pref Wsize                      65536
Pref Rsize                      65536 
Pref Readdir Size               32768
Privileged Ports Only           no
32Bit File ID                   no
Snapshot Directory Visible      yes


EXPORT PATH                     /export/FS1010_b
Internal Path                   /
Filesystem                      FS1010
Type                            Filesystem
Enabled                         yes
Anongid                         65534
Anonuid                         65534
Squash All Users                no 
Max Wsize                       1048576
Max Rsize                       1048576
Pref Wsize                      65536
Pref Rsize                      65536 
Pref Readdir Size               32768
Privileged Ports Only           no
32Bit File ID                   no
Snapshot Directory Visible      yes



Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:32:00 UTC

Comments