Backup file size

joeleo

Active Member
Apr 24, 2009
51
1
26
I have a ovz container of about 3gig and after running a snapshot backup I see the backup file size having 62gig. Wondering why the backup file is so large of a file? I would imagine it would be even much smaller than the 3gig vm space with the compression of the backup.
The backup was run on proxmox 3.0... below is the ouput:


root@vs:/home# vzdump --compress lzo --dumpdir /home/backup 110

INFO: starting new backup job: vzdump 110 --dumpdir /home/backup --compress lzo
INFO: Starting Backup of VM 110 (openvz)
INFO: CTID 110 exist mounted running
INFO: status = running
WARNING: UNLOCKED /var/lib/vz/lock/103.lck (stale lock by PID 601451)
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-hn-0')
INFO: Logical volume "vzsnap-hn-0" created
INFO: creating archive '/home/backup/vzdump-openvz-110-2013_07_06-17_34_04.tar.lzo'
INFO: Total bytes written: 71044812800 (67GiB, 43MiB/s)
INFO: archive file size: 62.60GB
INFO: Finished Backup of VM 110 (00:27:27)
INFO: Backup job finished successfully
root@vs:/home

BTW, I resorted to taking the above backup from command line as doing it via Proxmox GUI didn't work for me. Choosing local storage option field didn't show anything. I could not select a local storage? Thanks in advance for any feedback!

--Joe
 
looking to get some feedback on the above post - appreciate any feedback!

--joe
 
when LVM2 snapshot, the destination of the backup must be outside the LVM volume that contains the VM you are backing up (i.e. if your VM is in /pve/data that is mounted as /var/lib/vz, you can't save the backup in /var/lib/vz/dump
http://pve.proxmox.com/wiki/Backup_and_Restore

I don't know if this is the problem, but from what I read here, you can't backup to the directory that the VM is mounted.
I think to have the backup available in the GUI, you must have a separately mounted volume for backup. I think. I'm very new to Proxmox, so don't quote me. I'm just reading the forums.
 
tell more about your mount points (/home/backup), partitioning, lvm setup.
 
tell more about your mount points (/home/backup), partitioning, lvm setup.

@tom, please tell me what command you need and I can send you the output. I did a regular install so proxmox have default partition. Does the default install sets up LVM?
 
Here's my lvdisplay output:

root@hn:~# lvdisplay
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID 1mgGFA-pmvA-eWGn-RusD-0po8-BONW-1HW5dY
LV Write Access read/write
LV Creation host, time proxmox, 2013-06-26 17:49:50 -0700
LV Status available
# open 1
LV Size 7.00 GiB
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID pdGTJz-DHX2-qcly-TRnW-cJzX-dCp4-aDiuML
LV Write Access read/write
LV Creation host, time proxmox, 2013-06-26 17:49:50 -0700
LV Status available
# open 1
LV Size 96.00 GiB
Current LE 24576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/pve/data
LV Name data
VG Name pve
LV UUID iiH8MI-c8W0-7jM9-9yWM-w22l-grt7-58xEd4
LV Write Access read/write
LV Creation host, time proxmox, 2013-06-26 17:49:50 -0700
LV Status available
# open 1
LV Size 346.27 GiB
Current LE 88644
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2