Code: Select all
dd if=/dev/zero of=/srv/loop bs=1 count=1 seek=5368709120
losetup -f /srv/loop
vgextend vg0 /dev/loop0
lvcreate -s -n home-snapshot /dev/vg0/home -L 5G
Looks like it's creating a file of zeros, then using losetup to make that into a loop device and then adding that to LVM as a new hard drive. But wheres this info being stored?