CLI에서 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(공유) > Shares(공유) CLI 등록 정보
다음 등록 정보를 CLI에서 사용할 수 있으며 BUI에서 해당되는 등록 정보를 사용할 수 있습니다. 표준 CLI 명령 get 및 set을 사용하여 등록 정보를 설정할 수 있습니다. 또한 부모 프로젝트에서 unset 명령을 사용하여 등록 정보를 상속할 수 있습니다.
표 12-5 Shares(공유) > Shares(공유) CLI 등록 정보
|
|
|
|
aclinherit
|
inherited
|
|
Access
|
aclmode
|
inherited
|
|
Access
|
atime
|
inherited
|
|
General
|
casesensitivity
|
create time
|
|
정적
|
checksum
|
inherited
|
|
General
|
compression
|
inherited
|
|
General
|
compresratio
|
read-only
|
|
정적
|
copies
|
inherited
|
|
General
|
creation
|
read-only
|
-
|
-
|
dedup
|
inherited
|
|
General
|
exported
|
inherited, replication packages only
|
|
General
|
fixednumber
|
LUN 로컬
|
|
프로토콜
|
initiatorgroup
|
LUN 로컬
|
|
프로토콜
|
logbias
|
inherited
|
|
General
|
lunumber
|
LUN 로컬
|
|
프로토콜
|
lunguid
|
read-only, LUN local
|
|
프로토콜
|
mountpoint
|
inherited
|
|
General
|
nbmand
|
inherited
|
|
General
|
nodestroy
|
inherited
|
|
General
|
normalization
|
create time
|
|
정적
|
origin
|
read-only
|
|
정적
|
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
|
|
정적
|
sharedav
|
inherited
|
|
프로토콜
|
shareftp
|
inherited
|
|
프로토콜
|
sharenfs
|
inherited
|
|
프로토콜
|
sharesmb
|
inherited
|
|
프로토콜
|
snapdir
|
inherited
|
|
Snapshots
|
snaplabel
|
inherited
|
|
Snapshots
|
space_available
|
read-only
|
|
사용량
|
space_data
|
read-only
|
|
사용량
|
space_snapshots
|
read-only
|
|
사용량
|
space_total
|
read-only
|
|
사용량
|
space_unused_res
|
read-only
|
|
사용량
|
sparse
|
LUN 로컬
|
|
General
|
targetgroup
|
LUN 로컬
|
|
프로토콜
|
utf8only
|
create time
|
|
정적
|
volblocksize
|
create time
|
|
정적
|
vscan
|
inherited
|
|
General
|
|