Go to main content

Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.8.0

退出打印视图

更新时间: 2018 年 11 月
 
 

删除快照调度表 (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