I'm learning to do backup database with LVM snapshot. While on it, I found some behavior of snapshot that I can't get it.
Here is my setup:
1 Physical Volume and Volume Group from it with size 1.95T (cl).
3 Logical Volume from vg-cl.
LV root: 70G
LV home: 1.5T
LV swap: 8G
Then I create a snapshot volume, origin is LV home with this command:
lvcreate --size 100M --snapshot --name snap /dev/cl/home
After that, I mount the snapshot volume to a directory.
mount -o nouuid /dev/cl/snap /snap
Then df -h
, showing both /dev/mapper/cl-home & /dev/mapper/cl-snap have size 1.5T.
I'm assuming cl-snap have same size with cl-home is normal. But wonder why it able to mount, since my physical volume max only 2T? Where is extra 1T come from?