Go to main content
Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.0

Exit Print View

Updated: July 2017
 
 

Cloning a Snapshot (CLI)


Note -  Cloning is a licensed feature. For details, refer to the "Oracle Software License Agreement ("SLA") and Entitlement for Hardware Systems with Integrated Software Options" and the Licensing Information User Manual for the software release.

Use the following procedure to make a clone of an existing snapshot of a filesystem or LUN.


Note -  Clones of projects are not supported.
  1. Go to the appropriate filesystem, LUN, or project and type snapshots.
    hostname:shares myproject/demo_share> snapshots
    hostname:shares myproject/demo_share snapshots>
  2. Select the snapshot you want to clone.
    hostname:shares myproject/demo_share snapshots> select snap1
  3. Use the clone command, optionally followed by the name of the project in which you want to create the clone.

    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.

  4. Use the get command to view properties.
    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)
  5. Use the set command to adjust properties.
    hostname:shares myproject/demo_clone (uncommitted clone)> set quota=10G
                             quota = 10G (uncommitted)
  6. Use the commit command to commit the changes and create the clone.
    hostname:shares myproject/demo_clone (uncommitted clone)> commit
    hostname:shares myproject/demo_share@demo_clone>

Related Topics