I've been spending most of the day reading up on vmdump snapshots and I'm still a little confused.
Here's how my PVE1.3 server is configured
Now, I understand why I can't simply do
vzdump --snapshot 100
as the dump file will be written to /var/lib/vz/dump (I don't know why this is made the default location) which is in the same logical volume as the VM to back up.
However, if I do
vzdump --snapshot --dumpdir /var/tmp 100
The snapshot LV created is the same size as /var/lib/vz, even though it's supposed to default to 1024MB. Everything appears to run/complete successfully, but I'm not confident that it's working as it should.
What am I missing here?
Here's how my PVE1.3 server is configured
#pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name pve
PV Size 930.83 GB / not usable 2.77 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 238293
Free PE 1022
Allocated PE 237271
PV UUID KtjxRZ-yLhZ-GS10-fI46-qLXO-eINc-h822gC
# lvdisplay
--- Logical volume ---
LV Name /dev/pve/swap
VG Name pve
LV UUID Gjw3iC-0zc3-c9Mk-bS7R-0NUY-3KLZ-e4C7hM
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Name /dev/pve/root
VG Name pve
LV UUID L4vesU-ziK4-oAdE-QAAq-RRYm-dfTz-KC2LJT
LV Write Access read/write
LV Status available
# open 1
LV Size 96.00 GB
Current LE 24576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Name /dev/pve/data
VG Name pve
LV UUID yZ2dag-MQxH-F29J-xVL3-ZHRd-95oN-X1tH04
LV Write Access read/write
LV Status available
# open 1
LV Size 826.84 GB
Current LE 211671
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 95G 8.7G 82G 10% /
tmpfs 11G 0 11G 0% /lib/init/rw
udev 10M 2.7M 7.4M 27% /dev
tmpfs 11G 0 11G 0% /dev/shm
/dev/mapper/pve-data 814G 406G 409G 50% /var/lib/vz
/dev/sda1 496M 85M 387M 18% /boot
Now, I understand why I can't simply do
vzdump --snapshot 100
as the dump file will be written to /var/lib/vz/dump (I don't know why this is made the default location) which is in the same logical volume as the VM to back up.
However, if I do
vzdump --snapshot --dumpdir /var/tmp 100
The snapshot LV created is the same size as /var/lib/vz, even though it's supposed to default to 1024MB. Everything appears to run/complete successfully, but I'm not confident that it's working as it should.
What am I missing here?