OpenVZ Forum


Home » General » Support » Inconsistent free space after resizing ve
Inconsistent free space after resizing ve [message #34216] Mon, 15 December 2008 08:07 Go to next message
ildegiron is currently offline  ildegiron
Messages: 3
Registered: December 2008
Junior Member
Hi!
I resized a ve which was originally set at 1GB, via:
$ sudo vzctl set 101 --diskspace 2G:2G --save
$ sudo vzctl set 101 --diskinodes 1000000:1200000 --save
$ sudo vzctl set 101 --quotatime 600 --save

But from within the ve the allocated space is reported as
$ df -h
F.system Size Used Avail.Usage% Mounted
simfs 2.0G 469M 327M 59% /
tmpfs 247M 0 247M 0% /lib/init/rw
tmpfs 247M 0 247M 0% /dev/shm

$ df -i
F.system Inodes Used Free Usage% Mounted
simfs 1000000 21623 978377 3% /
tmpfs 63117 2 63115 1% /lib/init/rw
tmpfs 63117 1 63116 1% /dev/shm

There's plenty of real space in my vz partition. Also no quotas have been set for this ve.
Re: Inconsistent free space after resizing ve [message #34217 is a reply to message #34216] Mon, 15 December 2008 08:36 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

So, the problem is that (469M + 327M != 2G ).
could you please tell the exact kernel version, vzctl version, and the exact template your VE is based on (where have you got it?), and also "ls -l /etc/mtab", "cat /etc/mtab", "cat /proc/mounts"
Re: Inconsistent free space after resizing ve [message #34247 is a reply to message #34217] Tue, 16 December 2008 16:44 Go to previous messageGo to next message
ildegiron is currently offline  ildegiron
Messages: 3
Registered: December 2008
Junior Member
Hi!

Thanks for your fine reply. This is what I got.
My distro:
Debian Etch.

Kernel:
http://download.openvz.org/kernel/branches/2.6.18/current/co nfigs/kernel-2.6.18-i686.config.ovz

As reported by uname -r
2.6.18-1-openvz #1 Thu Jan 3 00:31:31 CST 2008 i686

vzctl version:
3.0.11
Copyright (C) 2000-2005 SWsoft.

Template:
http://download.openvz.org/template/precreated/debian-4.0-i3 86-minimal.tar.gz

ls -l /etc/mtab
lrwxrwxrwx 1 root root 12 2008-12-14 01:34 /etc/mtab -> /proc/mounts

cat /etc/mtab
simfs / simfs rw 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0

cat /proc/mounts
simfs / simfs rw 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0

Regards
Re: Inconsistent free space after resizing ve [message #34256 is a reply to message #34247] Wed, 17 December 2008 17:11 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

your vzctl and possibly vzquota are rather old.
Do you have a chance upgrade them?
Re: Inconsistent free space after resizing ve [message #34260 is a reply to message #34256] Wed, 17 December 2008 18:50 Go to previous message
ildegiron is currently offline  ildegiron
Messages: 3
Registered: December 2008
Junior Member
Hello.

My server is running Debian Etch. Packages vzctl and vzquota are up to date for this setup --stable--. So it seems that in order to update both I would need to recompile/patch the kernel, but I won't be able to try it until next week. I'll post any results then.

Thanks.
Previous Topic: Hidden process for init (PID 1)?
Next Topic: Vzctl chkpnt/restore Kills my Screen Session
Goto Forum:
  


Current Time: Sun Jun 16 00:20:18 GMT 2024

Total time taken to generate the page: 0.03632 seconds