How to verify disk move and a sparce LVM question

SimonMcNair

Active Member
Jun 22, 2010
47
6
28
Hi,
I restored a .tgz from an older version of Proxmox on to local storage. I then moved it to local-LVM but it appears I forgot to tick the 'delete source' option.

This made me wonder. I can get an md5sum of the .raw file easilt enough, but please can someone tell me how I go about getting the md5sum of /dev/pve/vm-103-disk-1 ?

is it as simple as md5sum /dev/pve/vm-103-disk-1 ?

One last question. Does LVM take in to account sparce files in any way ? if I have a 200 gb sparce file that is only taking up 20gb can I still move it to a volume which is not big enough to contain the filesystem if it weren't sparce ?

TIA
Simon
 
According to https://dellboy:8006/pve-docs/chapter-pvesm.html#_lvm_thin_backend it appears that LVM-Thin is the same as sparce, but a sparce filesystem instead

More info at
http://man7.org/linux/man-pages/man7/lvmthin.7.html
and
http://atodorov.org/blog/2015/04/14/how-to-find-if-lvm-volume-is-thinly-provisioned/

This is verified by looking at:
Datacenter ->Storage, local-lvm Type (LVM-Thin = sparce)

or from a SSH terminal using the command 'lvs' and looking to see if the leftmost attribute is V,t or T (thin (V)olume, (t)hin pool, (T)hin pool data)