Removing the snapshot

Snapshot should be removed as soon as possible after you have completed working with your data.  Active snapshots (even if unmounted) consume resources and degrade performance.  In addition, if the snapshot becomes full it is dropped (inaccessible) - something you definitely do not want to happen while it is mounted!

Removing the snapshot does not affect the original volume.  Any changes that were made in the snapshot are lost, and the original volume remains unchanged.

To remove the snapshot, first make sure it is not mounted:

cd /
umount /snap

If you are unable to unmount the snapshot, diagnose the problem as you would any other unmount problem:

  • Make sure no shells have their working directory within the snapshot.
  • Make sure no processes were launched with a working directory within the snapshot.
  • Use 'fuser' and/or 'lsof' to further diagnose what is using the mount point.

Once the snapshot is no longer mounted, remove the snapshot using the 'lvremove' command:

lvremove /dev/vg/fs-snap
Do you really want to remove active logical volume fs-snap? [y/n]: y
Logical volume "fs-snap" successfully removed

Any space used by the snapshot is returned to the volume group, and the system is ready to take another snapshot!