Bugzilla – Bug 912
vzsplit ignores effective blocksize when calculating ds_pve (DISKSPACE)
Last modified: 2015-04-01 14:46:10 EDT
Created attachment 652 [details]
patch to honour actual blocksize
vzsplit calculates the wrong DISKSPACE parameter for a VE if the blocksize of the underlying filesystem does not match (the recommended) 1024 bytes block size.
On many Linux distros the default block size for ext2/ext3 filesystems is 4096 bytes. If you stick to the default, the DISKSPACE parameter vzsplit issues is 4 times too small.
The attached patch fixes this in a quick and dirty way (assuming DISKSPACE is always measured in 1 Kb blocks in the vps.conf).
Thanks for the bug report and the fix!
Fixed in GIT:
Will be available in vzctl >= 3.0.24
Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.