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

인쇄 보기 종료

업데이트 날짜: 2016년 9월
 
 

스냅샷 일정 제거(CLI)

파일 시스템, LUN 또는 프로젝트에 대한 자동 스냅샷 일정을 삭제하려면 다음 절차를 수행합니다.

  1. 프로젝트 또는 공유로 이동하고 선택합니다.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
  2. snapshots automatic을 입력합니다.
    hostname:shares myproject/demo_share> snapshots automatic
    hostname:shares myproject/demo_share snapshots automatic>

    list 명령을 사용하면 이 공유 또는 프로젝트에 대한 자동 스냅샷 일정 목록을 볼 수 있습니다.

    hostname:shares myproject/demo_share snapshots automatic> list
    Properties:
              convert = false
    
    Automatics:
    
    NAME           FREQUENCY   DAY   HH:MM KEEP
    automatic-000  day         -     00:00    4
  3. 이 일정으로 작성된 기존 자동 스냅샷을 유지하려면 convert 등록 정보를 true로 설정합니다.

    이 등록 정보를 convert = false로 유지하면 이 일정을 삭제할 때 이 일정으로 작성된 자동 스냅샷이 삭제됩니다.

    hostname:shares myproject/demo_share snapshots automatic> set convert=true
                                 convert = true
    hostname:shares myproject/demo_share snapshots automatic> commit

    list 명령을 사용하여 변경사항을 볼 수 있습니다.

    hostname:shares myproject/demo_share snapshots automatic> list
    Properties:
              convert = true
    
    Automatics:
    
    NAME           FREQUENCY   DAY   HH:MM KEEP
    automatic-000  day         -     00:00    4
  4. destroy 명령 뒤에 삭제하려는 자동 스냅샷 일정의 이름을 입력합니다.

    확인을 요청하는 메시지가 표시됩니다.

    hostname:shares myproject/demo_share snapshots automatic> destroy automatic-000
    This will destroy "automatic-000". Are you sure? (Y/N)
  5. Y를 입력하여 확인합니다.
    This will destroy "automatic-000". Are you sure? (Y/N)  Y