Cannot find quota file in lxc, Centos 7.4

oren

New Member
Sep 5, 2017
4
0
1
47
Hello all,

we have this problem i hope someone can help us with:
(on Centos 6 it dose work with no problems)

root@server ~]# /usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
quotaoff: Cannot find quota file on / [/dev/loop3] to turn quotas on/off.
quotaoff: Cannot find quota file on / [/dev/loop3] to turn quotas on/off.
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...
quotaon: Cannot find quota file on / [/dev/loop3] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/loop3] to turn quotas on/off.​

[root@server /]# /sbin/quotacheck -cavug
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

the conf is:
rootfs: local:104/vm-104-disk-1.raw,acl=0,quota=1,size=150G
arch: amd64
cores: 8
cpulimit: 8
memory: 4096
nameserver: 8.8.8.8 8.8.4.4onboot: 1
ostype: centos
rootfs: local:104/vm-104-disk-1.raw,acl=0,quota=1,size=150G
swap: 2048

pveversion -v
proxmox-ve: 4.4-111 (running kernel: 4.4.128-1-pve)
pve-manager: 4.4-24 (running version: 4.4-24/08ba4d2d)
pve-kernel-4.4.117-2-pve: 4.4.117-110
pve-kernel-4.4.44-1-pve: 4.4.44-84
pve-kernel-4.4.128-1-pve: 4.4.128-111
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-2~pve4+2
libqb0: 1.0.1-1
pve-cluster: 4.0-55
qemu-server: 4.0-115
pve-firmware: 1.1-12
libpve-common-perl: 4.0-96
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.9.1-9~pve4
pve-container: 1.0-106
pve-firewall: 2.0-33
pve-ha-manager: 1.0-41
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.8-2~pve4
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80
 
also wanted to add:

[root@server ~]# quotacheck -cmug /
quotacheck: error (1) while opening /dev/loop3

BTW no one have an idea?
 
looks like a reboot didnt help me.

Only CentOS 7 has this issue. I know it was working before so some CentOs update must have caused this for LXC.
 
Last edited:
Think I solved it.
I thought about it a bit and I knew it worked before so it must have been some update from CentOS side.

I decided to install an old version of CentOS 7 quota file. Current new version is quota-4.0.17 and I decided to install quota-4.0.14 from :
http://vault.centos.org/7.4.1708/os/x86_64/Packages/ using rpm -i command. Note you have to uninstall quota-nls and quota first on the container and then reinstall using rpm -i thereafter for quota-nls and then quota

And it now works perfectly hopefully.
 

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!