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

Exit Print View

Updated: July 2017
 
 

Removing a Snapshot Schedule (CLI)

Use the following procedure to delete an automatic snapshot schedule for a filesystem, LUN, or project.

  1. Go to and select the project or share.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
  2. Enter snapshots automatic.
    hostname:shares myproject/demo_share> snapshots automatic
    hostname:shares myproject/demo_share snapshots automatic>

    You can use the list command to view a list of the automatic snapshot schedules for this share or project.

    hostname:shares myproject/demo_share snapshots automatic> list
    Properties:
              convert = false
    
    Automatics:
    
    NAME           FREQUENCY   DAY   HH:MM KEEP
    automatic-000  day         -     00:00    4
  3. If you want to keep existing automatic snapshots taken with this schedule, set the convert property to true.

    If you keep this property as convert = false, automatic snapshots taken with this schedule will be discarded when you destroy the schedule.

    hostname:shares myproject/demo_share snapshots automatic> set convert=true
                                 convert = true
    hostname:shares myproject/demo_share snapshots automatic> commit

    You can use the list command to view the change.

    hostname:shares myproject/demo_share snapshots automatic> list
    Properties:
              convert = true
    
    Automatics:
    
    NAME           FREQUENCY   DAY   HH:MM KEEP
    automatic-000  day         -     00:00    4
  4. Use the destroy command followed by the name of the automatic snapshot schedule you want to destroy.

    You are asked to confirm.

    hostname:shares myproject/demo_share snapshots automatic> destroy automatic-000
    This will destroy "automatic-000". Are you sure? (Y/N)
  5. Type Y to confirm.
    This will destroy "automatic-000". Are you sure? (Y/N)  Y