Working with Shares > Shares in the CLI
The shares CLI is under shares
Navigation
You must first select a project (including the default project) before selecting a share:
clownfish:> shares
clownfish:shares> select default
clownfish:shares default> select foo
clownfish:shares default/foo> get
Properties:
aclinherit = restricted (inherited)
aclmode = discard (inherited)
atime = true (inherited)
casesensitivity = mixed
checksum = fletcher4 (inherited)
compression = off (inherited)
compressratio = 100
copies = 1 (inherited)
creation = Mon Oct 13 2009 05:21:33 GMT+0000 (UTC)
mountpoint = /export/foo (inherited)
normalization = none
quota = 0
quota_snap = true
readonly = false (inherited)
recordsize = 128K (inherited)
reservation = 0
reservation_snap = true
secondarycache = all (inherited)
nbmand = false (inherited)
sharesmb = off (inherited)
sharenfs = on (inherited)
snapdir = hidden (inherited)
snaplabel = project1:share1
utf8only = true
vscan = false (inherited)
sharedav = off (inherited)
shareftp = off (inherited)
space_data = 43.9K
space_unused_res = 0
space_snapshots = 0
space_available = 12.0T
space_total = 43.9K
root_group = other
root_permissions = 700
root_user = nobody
Share Operations
A share is created by selecting the project and issuing the filesystem or
lun command. The properties can be modified as needed before committing the
changes:
clownfish:shares default> filesystem foo
clownfish:shares default/foo (uncommitted)> get
aclinherit = restricted (inherited)
aclmode = discard (inherited)
atime = true (inherited)
checksum = fletcher4 (inherited)
compression = off (inherited)
copies = 1 (inherited)
mountpoint = /export/foo (inherited)
quota = 0 (inherited)
readonly = false (inherited)
recordsize = 128K (inherited)
reservation = 0 (inherited)
secondarycache = all (inherited)
nbmand = false (inherited)
sharesmb = off (inherited)
sharenfs = on (inherited)
snapdir = hidden (inherited)
snaplabel = project1:share1
vscan = false (inherited)
sharedav = off (inherited)
shareftp = off (inherited)
root_group = other (default)
root_permissions = 700 (default)
root_user = nobody (default)
casesensitivity = (default)
normalization = (default)
utf8only = (default)
quota_snap = (default)
reservation_snap = (default)
custom:int = (default)
custom:string = (default)
custom:email = (default)
clownfish:shares default/foo (uncommitted)> set sharenfs=off
sharenfs = off (uncommitted)
clownfish:shares default/foo (uncommitted)> commit
clownfish:shares default>
A share can be destroyed using the destroy command from the share context:
clownfish:shares default/foo> destroy
This will destroy all data in "foo"! Are you sure? (Y/N)
clownfish:shares default>
A share can be renamed from the project context using the rename command:
clownfish:shares default> rename foo bar
clownfish:shares default>
A share can be moved between projects from the project context using the
move command:
clownfish:shares default> move foo home
clownfish:shares default>
User and group usage and quotas can be managed through the users or
groups commands after selecting the particular project or share. For more
information on how to manage user and group quotas, see the Space Management section.
Shares > Shares CLI Properties
The following properties are available in the CLI, with their equivalent in the BUI.
Properties can be set using the standard CLI commands get and
set. In addition, properties can be inherited from the parent project by using
the unset command.
Table 12-5 Shares > Shares CLI Properties
|
|
|
|
aclinherit
|
inherited
|
|
Access
|
aclmode
|
inherited
|
|
Access
|
atime
|
inherited
|
|
General
|
casesensitivity
|
create time
|
|
Static
|
checksum
|
inherited
|
|
General
|
compression
|
inherited
|
|
General
|
compresratio
|
read-only
|
|
Static
|
copies
|
inherited
|
|
General
|
creation
|
read-only
|
-
|
-
|
dedup
|
inherited
|
|
General
|
exported
|
inherited, replication packages only
|
|
General
|
fixednumber
|
LUN local
|
|
Protocols
|
initiatorgroup
|
LUN local
|
|
Protocols
|
logbias
|
inherited
|
|
General
|
lunumber
|
LUN local
|
|
Protocols
|
lunguid
|
read-only, LUN local
|
|
Protocols
|
mountpoint
|
inherited
|
|
General
|
nbmand
|
inherited
|
|
General
|
nodestroy
|
inherited
|
|
General
|
normalization
|
create time
|
|
Static
|
origin
|
read-only
|
|
Static
|
quota
|
space management
|
|
General
|
quota_snap
|
space management
|
|
General
|
readonly
|
inherited
|
|
General
|
recordsize
|
inherited
|
|
General
|
reservation
|
space management
|
|
General
|
reservation_snap
|
space management
|
|
General
|
root_group
|
filesystem local
|
|
Access
|
root_permissions
|
filesystem local
|
|
Access
|
root_user
|
filesystem local
|
|
Access
|
rstchown
|
inherited
|
|
General
|
secondary cache
|
inherited
|
|
General
|
shadow
|
create time
|
|
Static
|
sharedav
|
inherited
|
|
Protocols
|
shareftp
|
inherited
|
|
Protocols
|
sharenfs
|
inherited
|
|
Protocols
|
sharesmb
|
inherited
|
|
Protocols
|
snapdir
|
inherited
|
|
Snapshots
|
snaplabel
|
inherited
|
|
Snapshots
|
space_available
|
read-only
|
|
Usage
|
space_data
|
read-only
|
|
Usage
|
space_snapshots
|
read-only
|
|
Usage
|
space_total
|
read-only
|
|
Usage
|
space_unused_res
|
read-only
|
|
Usage
|
sparse
|
LUN local
|
|
General
|
targetgroup
|
LUN local
|
|
Protocols
|
utf8only
|
create time
|
|
Static
|
volblocksize
|
create time
|
|
Static
|
vscan
|
inherited
|
|
General
|
|