Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: OpenVZ-legacy
-
Component/s: Containers::Userspace
-
Security Level: Public
-
Environment:Operating System: All
Platform: All
-
External issue URL:
-
External issue ID:912
Description
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).
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).