OpenVZ Container and Diskspace [message #52094] |
Mon, 22 June 2015 12:08 |
hvhimbee
Messages: 7 Registered: August 2013
|
Junior Member |
|
|
Hi,
I have a server with LVM partitions for eacht openvz container.
I have a LVM partition of 10 GB with a container with diskspace of 10G
Recently I was getting error messages when copying files to the container using sftp.
In the logs: it said write failed. I checked the file permissions and they were ok.
I checked the diskspace with the df -h command and it returned:
/dev/ploop12570p1 9.8G 3.6G 5.8G 38% /
So I am only using 38% of the available space.
I couldn't find the problem. When I tried to update apt using apt-get update, I received and error message that the disk was full.
That was strange since df -h was showing only 38% diskspace usage.
I extended the LVM volume using LVEXTEND.
I set the new diskspace of the container using vzctl set 1 -diskspace 15G --save
and I did resize2fs to adjust the filesystem.
After doing this, I could copy files again to the container.
I checked df -h again, and I got this ouput:
/dev/ploop32515p1 15G 3.2G 11G 23% /
So again I am getting a lot of free space but I am not sure that the free space shown is correct.
Anybody got the same problem? Anybody knows what I can do to solve this?
In the /etc/vz/conf/1.conf file, I've set disk_quota=no.
Thanks for the reply!
|
|
|
|
|
|
|
|
|
|
|