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 next 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!

Re: OpenVZ Container and Diskspace [message #52095 is a reply to message #52094] Tue, 23 June 2015 07:52 Go to previous messageGo to next message
tburazin is currently offline  tburazin
Messages: 6
Registered: June 2015
Junior Member
Inodes maxed out?

Check with: df -i


blog.codeanywhere.com/tag/tommy-burazin
Re: OpenVZ Container and Diskspace [message #52096 is a reply to message #52095] Tue, 23 June 2015 11:54 Go to previous messageGo to next message
hvhimbee is currently offline  hvhimbee
Messages: 7
Registered: August 2013
Junior Member
df -i gave this result:

/dev/ploop12570p1 641280 15551 625729 3% /

So it doesn't seem to be maxed out
Re: OpenVZ Container and Diskspace [message #52097 is a reply to message #52094] Tue, 23 June 2015 18:30 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
maybe container ploop image file grewed itself?
what is the size of root.hdd file?

you can try compact size of ploop image file. check ploop or vzctl documentation
Re: OpenVZ Container and Diskspace [message #52098 is a reply to message #52094] Tue, 23 June 2015 21:23 Go to previous messageGo to next message
hvhimbee is currently offline  hvhimbee
Messages: 7
Registered: August 2013
Junior Member
Size of root.hdd

drwx------ 2 root root 4096 Jun 22 13:56 root.hdd
Re: OpenVZ Container and Diskspace [message #52099 is a reply to message #52094] Wed, 24 June 2015 15:31 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
so please show size of this folder
Re: OpenVZ Container and Diskspace [message #52100 is a reply to message #52098] Wed, 24 June 2015 18:42 Go to previous messageGo to next message
hvhimbee is currently offline  hvhimbee
Messages: 7
Registered: August 2013
Junior Member
root.hdd is inside the folder /vz/private

drwxr-xr-x 3 root root 4096 Jan 31 22:08 private
Re: OpenVZ Container and Diskspace [message #52101 is a reply to message #52094] Wed, 24 June 2015 19:12 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
so you can't report disk space usage of your ct ploop image file?
Re: OpenVZ Container and Diskspace [message #52102 is a reply to message #52101] Wed, 24 June 2015 20:44 Go to previous message
hvhimbee is currently offline  hvhimbee
Messages: 7
Registered: August 2013
Junior Member
You mean like this:

SMARTNAME DSPACE.H DSPACE
1 15354000 3348572

and inodes:

SMARTNAME DINODES.H DINODES
1 961920 15458

Or what do you mean?
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:32:33 GMT 2024

Total time taken to generate the page: 0.02722 seconds