许可声明:可以免费试用克隆功能,但若要在生产环境中使用,必须为该功能购买单独的许可证。在试用期后,必须为该功能获取许可证或将其停用。Oracle 保留随时审计许可合规性的权利。有关详细信息,请参阅 "Oracle Software License Agreement ("SLA") and Entitlement for Hardware Systems with Integrated Software Options"。
使用以下过程可生成文件系统或 LUN 的现有快照的克隆。
hostname:shares myproject/demo_share> snapshots hostname:shares myproject/demo_share snapshots>
hostname:shares myproject/demo_share snapshots> select snap1
默认情况下,将在要克隆的快照所属的项目中创建克隆。
hostname:shares myproject/demo_share@snap1> clone project1
您将进入一个未提交共享资源上下文。在此处,您可以根据需要调整属性,然后再提交更改以创建克隆。
hostname:shares myproject/demo_clone (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)
            hostname:shares myproject/demo_clone (uncommitted clone)> set quota=10G
                         quota = 10G (uncommitted)
            hostname:shares myproject/demo_clone (uncommitted clone)> commit hostname:shares myproject/demo_share@demo_clone>
要对克隆执行共享操作,请参见共享资源和项目。
要生成克隆的克隆,请参见生成克隆的克隆。
要查看特定快照的所有克隆,请参见查看快照的克隆 (CLI)。
要确定据以生成克隆的快照,请参见查看克隆源 (CLI)。