[linux-lvm] Snapshot behavior on classic LVM vs ThinLVM
L A Walsh
lvm at tlinx.org
Fri Apr 7 13:50:34 UTC 2017
Gionatan Danti wrote:
> I more concerned about lenghtly snapshot activation due to a big,
> linear CoW table that must be read completely...
What is 'big'? Are you just worried about the IO time?
If that's the case, much will depend on your HW. Are we talking
using 8T hard disks concatenated into a single volume, or in a
RAID1, or what? W/a HW-RAID10 getting over 1GB/s isn't
difficult for a contiguous read. So how big is the CoW table
and how fragmented is it? Even w/fragments, with enough spindles
you could still, likely, get enough I/O Ops where I/O speed shouldn't
be a critical bottleneck...
However, regarding performance, I used to take daily snapshots
using normal LVM (before thin was available) w/rsync creating a
a difference volume between yesterday's snapshot and today's content.
On a 1TB volume @ ~75% full, it would take 45min - 1.5 hours to
create. Multiplied by 8...backups wouldn't just be 'nightly'.
That was using about 12 data spindles.
Unfortunately I've never benched the thin volumes. Also,
they were NOT for backup purposes (those were separate using
xfsdump). Besides performance and reliability, a main reason
to use snapshots was to provide "previous versions" of files to
windows clients. That allowed quick recoveries from file-wiping
mistakes by opening the previous version of the file or
More information about the linux-lvm