LXC Inodes

matthew

Renowned Member
Jul 28, 2011
210
5
83
I am installing Directadmin on LXC container. How do I insure there are enough inodes available? As I recall on openvz you could specify this. Also, how can you specify the number of users a container is allowed to have? I believe under Openvz this was called UGID?
 
I am assuming that is the *.raw file under images? In past with openvz you could over subscribe disk space. If I set container for 2TB but it only used 80GB on disk I would have that space to use elsewhere when that container did not use it. Is that not the case anymore? That was nice.

Also, if I have container set to only 100GB can I later expand it too 500GB of space? If so will inodes expand as well later?

Thanks.
 
I think that .raw file is sparse, so it doesn't take so much space on disk.
If you want easy growing the container disk size, use ZFS. PVE4 integrated ZFS beautifully.
 
You can use pct resize later on. Eg.
Code:
pct resize 100 rootfs +200G
increases the ct's root disk by 200 gigs
 
I see this.

ls -la /var/lib/vz/images/100
-rw-r----- 1 root root 214748364800 Oct 20 09:45 vm-100-disk-1.raw

Does that mean when I create a 200GB container it will take up 200GB disk space?

Strange that when I look at backup it looks like this.

ls -ls /backups/dump
163936 -rw-r--r-- 1 root root 167869472 Oct 19 17:25 vzdump-lxc-100-2015_10_19-17_24_44.tar.gz

Stranger yet.

du -h /var/lib/vz/images/100
707M /var/lib/vz/images/100
 
Last edited:

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!