OpenVZ Forum


Home » General » Support » OpenVZ Container and Diskspace (Diskspace issue)
OpenVZ Container and Diskspace [message #52094] Mon, 22 June 2015 12:08 Go to previous message
hvhimbee is currently offline  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!

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding VPSes RAM usage with vzlist?
Next Topic: vzctl on vanilla Linux 4.1.1 results in "Refusing to run"
Goto Forum:
  


Current Time: Mon Jul 29 02:16:57 GMT 2024

Total time taken to generate the page: 0.02706 seconds