openvz vzdump error

I am using vzdump tool which make use of LVM to do snapshot of the VPS which ensure that there is data consistency during the backup as the VPS is online while the backup is performed.

A small issues just happen today which took me a while to figure how to resolve the issues.

While the vzdump is performing a backup of one of my VPS, i hit with this error

Feb 21 01:33:32 INFO: tar: ./boot: Warning: Cannot savedir: Input/output error

The first impression is that the disk might have issues, but after 5 mins of verifying of the physical disk’s health, I have notice that it is due to the LVM snapshot created during the backup.

The default size that vzdump create for the logical volume is only 500MB, you need to increase to a higher diskspace provided your Volume Group has enough free space.

nano -w /usr/bin/vzdump

Edit 500m to a higher diskspace as needed.

run_command (\*LOG, “$lvcreate –size 500m –snapshot –name vzsnap /dev/$lvmvg/$lvmlv”);

Hope this helps … :)

Leave a comment