System Administration Guide: Devices and File Systems

ProcedureHow to Delete a UFS Snapshot

You can delete a snapshot either by rebooting the system or by using the fssnap -d command. When you use this command, you must specify the path of the file system that contains the UFS snapshot.

  1. Become superuser or assume an equivalent role.

  2. Identify the snapshot to be deleted.


    # /usr/lib/fs/ufs/fssnap -i
    
  3. Delete the snapshot.


    # fssnap -d /file-system
    Deleted snapshot 1.
  4. If you did not use the -o unlink option when you created the snapshot, manually delete the backing-store file.


    # rm /file-system/backing-store-file
    

Example 26–3 Deleting a UFS Snapshot

The following example shows how to delete a snapshot and assumes that the -o unlink option was not used.


# fssnap -i
    0    /export/home
    1    /export
   # fssnap -d /export
 Deleted snapshot 1.
# rm /var/tmp/snapshot1