Can we create snapshot of a cached logical volume?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7.1 (or later)

Issue

  • Can we create snapshot of a cached logical volume?. See man 7 lvmcache for more details on the cache feature of LVM.

Resolution

Snapshot for cached type logical volumes are supported since RHEL 7.5. Update to packages, later to or mentioned in the errata : https://access.redhat.com/errata/RHEA-2018:0853 for the same. These packages have been tested to create snapshot for cached type logical volumes.

Root Cause

Creating snapshot of cached type logical volume was not supported until RHEL 7.5.

# lvcreate --snapshot --name=my_backup --size=500G /dev/vg01/mylv
  Snapshots of cache type volume vg01/mylv is not supported.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments