Go to main content
Oracle® ZFS Storage Appliance 관리 설⁠명⁠서, 릴⁠리⁠스 OS8.6.x

인쇄 보기 종료

업데이트 날짜: 2016년 9월
 
 

스키마 만들기(CLI)

  1. 스키마 컨텍스트로 이동합니다(shares schema).
  2. "contact"라는 새 등록 정보를 만듭니다(create contact).
  3. 등록 정보에 대한 설명을 설정합니다(set description="Owner Contact").
  4. 등록 정보의 유형을 설정합니다(set type=EmailAddress).
  5. 변경사항을 커밋합니다(commit).
  6. 기존 공유 또는 프로젝트로 이동합니다.
  7. "custom:contact" 등록 정보를 설정합니다.
예 16  스키마 예

스키마 컨텍스트는 Shares(공유) > Schema(스키마)에서 찾을 수 있습니다.

carp:> shares schema
carp:shares schema> show
Properties:

NAME          TYPE          DESCRIPTION
owner         EmailAddress  Owner Contact

각 등록 정보는 스키마 컨텍스트의 하위 항목이며, 등록 정보의 이름을 토큰으로 사용합니다. 등록 정보를 만들려면 create 명령을 사용합니다.

carp:shares schema> create department
carp:shares schema department (uncommitted)> get
                          type = String
                   description = department
carp:shares schema department (uncommitted)> set description="Department Code"
                   description = Department Code (uncommitted)
carp:shares schema department (uncommitted)> commit
carp:shares schema> 

특정 등록 정보의 컨텍스트 내에서 표준 CLI 명령을 사용하여 필드를 설정할 수 있습니다.

carp:shares schema> select owner
carp:shares schema owner> get
                          type = EmailAddress
                   description = Owner Contact
carp:shares schema owner> set description="Owner Contact Email"
                   description = Owner Contact Email (uncommitted)
carp:shares schema owner> commit

정의된 사용자정의 등록 정보는 "custom:<property>"라는 이름으로 다른 등록 정보와 마찬가지로 액세스할 수 있습니다.

carp:shares default> get
...
             custom:department = 123-45-6789
                  custom:owner = 
...
carp:shares default> set custom:owner=bob@corp
                  custom:owner = bob@corp (uncommitted)
carp:shares default> commit