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

Exit Print View

Updated: July 2017
 
 

Viewing Snapshots and Schedules (CLI)

Use the following procedure to view the snapshots and automatic snapshot schedules of a particular filesystem, LUN, or project.

  1. Go to shares and select the project or share.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
    hostname:shares myproject/demo_share>
  2. Enter snapshots.
    hostname:shares myproject/demo_share> snapshots
    hostname:shares myproject/demo_share snapshots>
  3. View the snapshots or snapshot schedules using the appropriate commands.
    1. Enter list to view a list of the snapshots of this share or project.
      hostname:shares myproject/demo_share snapshots> list
      demo_snap1
      demo_snap2
      hostname:shares myproject/demo_share snapshots>

      You can select a snapshot and use the list command to see the following properties:

      • creation - the date and time of creation of the snapshot in UTC format

      • numclones - the number of clones of the snapshot

      • isauto - whether the snapshot was created manually (false) or with an automatic snapshot schedule (true)

      • pool - what storage pool the snapshot is in

      • canonical_name - the location of the snapshot

      • shadowsnap - whether the snapshot was taken during shadow migration (true) or not (false)

      • space_unique - the amount of unique space the snapshot uses

      • space_data - the total amount of space the snapshot references

      hostname:shares myproject/demo_share snapshots> select demo_snap1
      hostname:shares myproject/demo_share snapshots demo_snap1> list
      Properties:
                 creation = Thu Jan 22 2015 20:19:49 GMT+0000(UTC)
                numclones = 1
                   isauto = false
                     pool = pool1
           canonical_name = pool1/local/myproject/demo_share@demo_snap1
               shadowsnap = false
             space_unique = 0
               space_data = 31K
    2. Enter automatic and use the list command to view a list of the automatic snapshot schedules of this share or project.
      hostname:shares myproject/demo_share snapshots> automatic
      hostname:shares myproject/demo_share snapshots automatic> list
      Properties:
                convert = false
      
      Automatics:
      
      NAME           FREQUENCY   DAY   HH:MM KEEP
      automatic-000  day         -     00:00    4
      automatic-001  month       01    00:00   12