Use the following procedure to make a clone of an existing snapshot of a filesystem or LUN.
hostname:shares myproject/demo_share> snapshots hostname:shares myproject/demo_share snapshots>
hostname:shares myproject/demo_share snapshots> select snap1
By default, the clone is created in the same project as the snapshot being cloned.
hostname:shares myproject/demo_share@snap1> clone project1
You are placed into an uncommitted share context. From here, you can adjust properties as needed before committing the changes to create the clone.
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>
To perform share operations on a clone, see Shares and Projects.
To make a clone of a clone, see Cloning a Clone.
To view all the clones of a particular snapshot, see Viewing Clones of a Snapshot (CLI).
To determine the snapshot from which a clone was made, see Viewing a Clone Origin (CLI).
To make a clone of a snapshot in a replication package, see Cloning a Snapshot in a Replication Package (CLI)