quota problem (vzquota + xfs_quota)

xkuba

New Member
Nov 13, 2009
19
0
1
Hi,

I'm mounting (--bind) xfs filesystem into container. I've tried to setup project (tree) quotas on this xfs filesystem. But the xfs tools are reporting double usage numbers:

xfs_quota> df -h
Filesystem Size Used Avail Use% Pathname
/dev/md0 931.4G 11.6G 919.8G 2% /mnt/data
/dev/md0 931.4G 23.2G 919.8G 3% /mnt/data/test

This is on proxmox without any container running. PVE 1.5, kernel 2.6.18.

When I tried it on server with containers already running and using vzquota for /var/lib/vz then xfs_quota is reporting even stranger things - I can't see projects but I do see vzquota stuff:

xfs_quota> df -h
Filesystem Size Used Avail Use% Pathname
/dev/md0 931.4G 23.1G 908.3G 3% /mnt/md0
/dev/md0 931.4G 23.1G 908.3G 3% /var/lib/vz/root/117/mnt/external
/dev/md0 931.4G 23.1G 908.3G 3% /var/lib/vz/root/118/mnt/external
...

Note, that /var/lib/vz is NOT on /dev/md0, it's an ext3 filesystem on /dev/mapper/pve-data (default proxmox).

Anyone managed to get working vzquota and xfs_quota on one system? Can someone confirm this strange behaviour? XFS project quota (accounting) can be setup like this:

Code:
mount -o prjquota /dev/md0 /mnt/md0
mkdir /mnt/md0/test
echo 11:/mnt/md0/test >> /etc/projects
echo test:11 >> /etc/projid
xfs_quota -x -c 'project -s test' /mnt/md0

Then copy someting to dir test a run xfs_quota and type df.

Is there any other possibility how to run this setup? I'd like to run stock proxmox (so with ext3) but let containers to have data on mounted xfs. And I'd like to use quotas on both filesystems. Is it possible?

I can think of two other ways: either use ext3 for both storages and then use vzquota or use xfs for both and use xfs_quota. Are both possible? Which one is recommended?

Thanks,

Kuba