Container disk size no longer than 550 GB.

JMoreno

Renowned Member
Oct 26, 2011
53
2
73
Dear all,

I would like to extend the disk capacity of a container. The container conf file is:
Code:
# PVE default config for 256MB RAM

ONBOOT="yes"
BOOTORDER="600"

# Primary parameters
NUMPROC="1024:1024"
NUMTCPSOCK="9223372036854775807:9223372036854775807"
NUMOTHERSOCK="9223372036854775807:9223372036854775807"
VMGUARPAGES="0:unlimited"

# Secondary parameters
KMEMSIZE="4880072704:5368709120"
OOMGUARPAGES="0:unlimited"
PRIVVMPAGES="unlimited"
TCPSNDBUF="9223372036854775807:9223372036854775807"
TCPRCVBUF="9223372036854775807:9223372036854775807"
OTHERSOCKBUF="9223372036854775807:9223372036854775807"
DGRAMRCVBUF="9223372036854775807:9223372036854775807"

# Auxiliary parameters
NUMFILE="9223372036854775807:9223372036854775807"
NUMFLOCK="9223372036854775807:9223372036854775807"
NUMPTY="255:255"
NUMSIGINFO="1024:1024"
DCACHESIZE="2440036352:2684354560"
LOCKEDPAGES="1310720"
SHMPAGES="9223372036854775807:9223372036854775807"
NUMIPTENT="9223372036854775807:9223372036854775807"
PHYSPAGES="0:2621440"

[COLOR=#ff0000]# Disk quota parameters
DISKSPACE="629145600:692060160"
DISKINODES="120000000:132000000"
#QUOTATIME="0"
#QUOTAUGIDLIMIT="0"[/COLOR]

# CPU fair sheduler parameter
CPUUNITS="500000"
CPUS="4"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-6.0-standard_6.0-4_i386"
ORIGIN_SAMPLE="pve.auto"
HOSTNAME="backuppc.my-domain.com"
NAMESERVER="172.16.0.31"
SEARCHDOMAIN="my-domain.com"
NETIF="ifname=eth0,mac=32:54:35:4B:35:05,host_ifname=veth406.0,host_mac=00:18:51:8E:33:9E"
FEATURES="nfs:on "
SWAPPAGES="0:2621440"
DESCRIPTION="Backup en disco local."

I am affraid I only get 550 GB, at maximum, independetly of the amount I specify (600 GB, 700 GB, ...).

Let me show you the hardware server disk occupation:
Code:
[COLOR=#0000ff]root@pmox3:~/backup# df -h[/COLOR]
Filesystem                   Size  Used Avail Use% Mounted on
udev                          10M     0   10M   0% /dev
tmpfs                        1.2G  392K  1.2G   1% /run
/dev/mapper/pve-root          95G   13G   78G  14% /
tmpfs                        5.0M     0  5.0M   0% /run/lock
tmpfs                        2.4G   47M  2.3G   2% /run/shm
[COLOR=#ff0000]/dev/mapper/pve-data         704G  528G  176G  76% /var/lib/vz[/COLOR]
/dev/cciss/c0d0p1            495M  144M  326M  31% /boot
/dev/fuse                     30M  100K   30M   1% /etc/pve
pmox12:/var/lib/vz/nfs/pmox  2.6T  2.6T   57G  98% /mnt/pve/sv-NFS
[COLOR=#ff0000]/var/lib/vz/private/406      550G  374G  176G  69% /var/lib/vz/root/406[/COLOR]
tmpfs                        5.0G     0  5.0G   0% /var/lib/vz/root/406/lib/init/rw
tmpfs                        5.0G     0  5.0G   0% /var/lib/vz/root/406/dev/shm

Finally, this is my environment:
Code:
[COLOR=#0000ff]root@pmox3:~/backup# pveversion --verbose[/COLOR]
proxmox-ve-2.6.32: 3.1-114 (running kernel: 2.6.32-26-pve)
pve-manager: 3.1-21 (running version: 3.1-21/93bf03d4)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-19-pve: 2.6.32-95
pve-kernel-2.6.32-22-pve: 2.6.32-107
pve-kernel-2.6.32-26-pve: 2.6.32-114
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1

I would appreciate any help you may provide me with.

Regards.
 
Hi Dietmar,

Thank you for your reply.

Yes, I wanted to extend 50 GB only. Indeed, you can see in the conf file I already gave 600 GB, but I only get 550 GB.

Regards.
 
Hi, I'm not an expert, but

how do you check free space inside CT, exactly? df -h?

[edit] sorry , I meant how do you check assigned disk size from inside CT

Marco
 
Last edited:
Yes, I am using "df -h".

You can use it from the container itself or from the hardware server. In second case, you will get the disk space usage of the hardware server and the running containers.
 
ok, I only have CT on shared storage (lots of free space), assigned 8GB to a CT but I get

Code:
/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      9.4T  5.4T  4.1T  57% /
none            512M  8.0K  512M   1% /dev
none            103M  988K  102M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            512M     0  512M   0% /run/shm

so I wonder what you get as "size"...

Marco
 
Hi Marco,

Let me provide you with (run from inside the container):

Code:
root@myserver:~# df -h
S.ficheros            Size  Used Avail Use% Montado en
/dev/simfs [COLOR=#ff0000]           550G  [/COLOR]374G  176G  69% /
tmpfs                 5,0G     0  5,0G   0% /lib/init/rw
tmpfs                 5,0G     0  5,0G   0% /dev/shm

Thank you very much.
 
It could be that the CT gets as "size" the sum

CT used space + HOST free space = "fake" size
eg:374G + 176G = 550G

no matter of what you set in conf (which is the maximum)

but not sure...

Marco
 
I believe it is not the case. If I set a 500 GB disk size, it reports the right value (ie 500 GB).

Regards.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!