"Shares"(共享资源)">
"Shares"(共享资源)">
在 CLI 中使用 "Shares"(共享资源)> "Shares"(共享资源)
"Shares"(共享资源)">
共享资源 CLI 位于 shares 下
导航
在选择共享资源之前,必须首先选择一个项目(包括默认项目):
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
共享资源操作
可以通过选择项目并执行 filesystem 或 lun 命令来创建共享资源。在提交更改之前,可以根据需要对属性进行修改:
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>
可以在共享资源上下文中使用 destroy 命令来销毁共享资源:
clownfish:shares default/foo> destroy
This will destroy all data in "foo"! Are you sure? (Y/N)
clownfish:shares default>
可以在项目上下文中使用 rename 命令来重命名共享资源:
clownfish:shares default> rename foo bar
clownfish:shares default>
可以在项目上下文中使用 move 命令在项目之间移动共享资源:
clownfish:shares default> move foo home
clownfish:shares default>
在选择了特定项目或共享资源之后,可以通过 users 或 groups 命令来管理用户和组使用情况和配额。有关如何管理用户和组配额的更多信息,请参见空间管理一节。
"Shares"(共享资源)CLI 属性">
"Shares"(共享资源)CLI 属性">
"Shares"(共享资源)> "Shares"(共享资源)CLI 属性
下面显示了在 CLI 中提供的属性及其在 BUI 中对应的属性。可以使用标准 CLI 命令 get 和 set 来设置这些属性。此外,还可以使用 unset 命令从父项目中继承这些属性。
"Shares"(共享资源)CLI 属性">
"Shares"(共享资源)CLI 属性">
表 12-5 "Shares"(共享资源)> "Shares"(共享资源)CLI 属性
|
|
|
|
aclinherit
|
继承
|
|
Access(访问)
|
aclmode
|
继承
|
|
Access(访问)
|
atime
|
继承
|
|
General(常规)
|
casesensitivity
|
创建时
|
|
Static(静态)
|
checksum
|
继承
|
|
General(常规)
|
compression
|
继承
|
|
General(常规)
|
compresratio
|
只读
|
|
Static(静态)
|
copies
|
继承
|
|
General(常规)
|
creation
|
只读
|
-
|
-
|
dedup
|
继承
|
|
General(常规)
|
exported
|
继承,仅限复制包
|
|
General(常规)
|
fixednumber
|
LUN 本地
|
|
Protocols(协议)
|
initiatorgroup
|
LUN 本地
|
|
Protocols(协议)
|
logbias
|
继承
|
|
General(常规)
|
lunumber
|
LUN 本地
|
|
Protocols(协议)
|
lunguid
|
只读,LUN 本地
|
|
Protocols(协议)
|
mountpoint
|
继承
|
|
General(常规)
|
nbmand
|
继承
|
|
General(常规)
|
nodestroy
|
继承
|
|
General(常规)
|
normalization
|
创建时
|
|
Static(静态)
|
origin
|
只读
|
|
Static(静态)
|
quota
|
空间管理
|
|
General(常规)
|
quota_snap
|
空间管理
|
|
General(常规)
|
readonly
|
继承
|
|
General(常规)
|
recordsize
|
继承
|
|
General(常规)
|
reservation
|
空间管理
|
|
General(常规)
|
reservation_snap
|
空间管理
|
|
General(常规)
|
root_group
|
文件系统本地
|
|
Access(访问)
|
root_permissions
|
文件系统本地
|
|
Access(访问)
|
root_user
|
文件系统本地
|
|
Access(访问)
|
rstchown
|
继承
|
|
General(常规)
|
secondary cache
|
继承
|
|
General(常规)
|
shadow
|
创建时
|
|
Static(静态)
|
sharedav
|
继承
|
|
Protocols(协议)
|
shareftp
|
继承
|
|
Protocols(协议)
|
sharenfs
|
继承
|
|
Protocols(协议)
|
sharesmb
|
继承
|
|
Protocols(协议)
|
snapdir
|
继承
|
|
Snapshots(快照)
|
snaplabel
|
继承
|
|
Snapshots(快照)
|
space_available
|
只读
|
|
使用情况
|
space_data
|
只读
|
|
使用情况
|
space_snapshots
|
只读
|
|
使用情况
|
space_total
|
只读
|
|
使用情况
|
space_unused_res
|
只读
|
|
使用情况
|
sparse
|
LUN 本地
|
|
General(常规)
|
targetgroup
|
LUN 本地
|
|
Protocols(协议)
|
utf8only
|
创建时
|
|
Static(静态)
|
volblocksize
|
创建时
|
|
Static(静态)
|
vscan
|
继承
|
|
General(常规)
|
|