vzdump sparse files issue

Robertas

New Member
May 5, 2016
19
0
1
31
vzdump doesn't correctly handle sparse files.

I have 459G sparse file, that happens because I've implemented SSO based on FreeIPA, and users usually have high user id, and lastlog creates sparse file which gets as big as 459G.
Code:
ipadmin@proxy:/var/log$ ls -slh lastlog
16K -rw-r--r-- 1 root root 459G Jul 28 13:58 lastlog

As you can see file is actually only 16K but reports 459G

What FreeIPA user id look like:

Code:
ipadmin@proxy:~$ id
uid=1687600003(ipadmin) gid=1687600003 groups=1687600003


So what happens, my storage only has about 200G free space, and because rsync runs without --sparse option it will copy it as a regular file, which means storage runs out of space.

Is there an option to add additional rsync args to the /etc/vzdump.conf or other options to work around that?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!