Linux – Why does activation of LVM partition with large snapshot take a long time

linuxlvm

After creating a large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged).

What does the activation involve and why does it take so much time to activate a LVM snapshot?

Best Answer

A snapshot contains the differences between the original and the "mirrored" device. For being able to use both of them, it is necessary to map these differences to the "original" device (in memory). This is the more time-consuming, the fuller the "difference device" becomes.

Related Question