使用以下过程可生成文件系统或 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)。
要创建复制数据包中某个快照的克隆,请参见克隆复制数据包中的快照 (CLI)