Oracle® ZFS Storage Appliance 管理指南,发行版 2013.1.5.0

退出打印视图

更新时间: 2016 年 2 月
 
 

使用 CLI 克隆快照

  1. 要克隆快照,请使用 clone 命令。此命令将您置于一个未提交的共享资源上下文中,该上下文与用于创建共享资源的上下文相同。在此处,您可以根据需要调整属性,然后再提交更改以创建克隆。
    
    clownfish:shares default/builds snapshots> select today
    clownfish:shares default/builds@today> clone testbed
    clownfish:shares default/testbed (uncommitted clone)> get
                        aclinherit = restricted (inherited)
                           aclmode = discard (inherited)
                             atime = true (inherited)
                          checksum = fletcher4 (inherited)
                       compression = off (inherited)
                            copies = 1 (inherited)
                        mountpoint = /export/testbed (inherited)
                             quota = 0 (default)
                          readonly = false (inherited)
                        recordsize = 128K (inherited)
                       reservation = 0 (default)
                    secondarycache = all (inherited)
                            nbmand = false (inherited)
                          sharesmb = off (inherited)
                          sharenfs = on (inherited)
                           snapdir = hidden (inherited)
                             vscan = false (inherited)
                          sharedav = off (inherited)
                          shareftp = off (inherited)
                        root_group = other (default)
                  root_permissions = 777 (default)
                         root_user = nobody (default)
                        quota_snap = true (default)
                  reservation_snap = true (default)
    clownfish:shares default/testbed (uncommitted clone)> set quota=10G
                             quota = 10G (uncommitted)
    clownfish:shares default/testbed (uncommitted clone)> commit
    clownfish:shares default/builds@today>
    
  2. 此命令还支持一个可选参数(第一个参数),此参数是将在其中创建克隆的项目。默认情况下,将在要克隆的共享资源所属的项目中创建克隆。