Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

スナップショットスケジュールの削除 (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