OpenVZ Forum


Home » General » Support » XFS project quota (prjquota)
XFS project quota (prjquota) [message #36367] Fri, 12 June 2009 16:04 Go to next message
scorp is currently offline  scorp
Messages: 1
Registered: June 2009
Location: Italy
Junior Member
Hi,

someone have managed to use xfs_quota for openvz containers? It is possibile?

http://linux.die.net/man/8/xfs_quota

I tried to limit the container private folder, but I am getting alot of:

xfs_quota: skipping special file /home/vz/private/101/bin/bzegrep
xfs_quota: skipping special file /home/vz/private/101/bin/pidof
xfs_quota: skipping special file /home/vz/private/101/bin/tcsh
xfs_quota: skipping special file /home/vz/private/101/bin/mt
xfs_quota: skipping special file /home/vz/private/101/bin/csh
xfs_quota: skipping special file /home/vz/private/101/lib64
[...]

And I am thinking that quota won't work.

Thanks.
Re: XFS project quota (prjquota) [message #37353 is a reply to message #36367] Fri, 04 September 2009 09:57 Go to previous messageGo to next message
a1bert is currently offline  a1bert
Messages: 9
Registered: October 2007
Location: .cz
Junior Member
I do have working project quota on debian etch with 2.6.18-14-fza-686.

you should disable openvzquota (DISK_QUOTA=no)
Re: XFS project quota (prjquota) [message #37371 is a reply to message #37353] Fri, 04 September 2009 16:16 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

can you describe how setup your xfs project quota, using OpenVZ containers ...

Bye,
Thorsten
Re: XFS project quota (prjquota) [message #37374 is a reply to message #37371] Fri, 04 September 2009 17:15 Go to previous messageGo to next message
a1bert is currently offline  a1bert
Messages: 9
Registered: October 2007
Location: .cz
Junior Member
I am restricting home directories for webhosting guest. It's quiet long since I have set it up so it's possible that following is not complete but try it and post your results...

ALL project quota stuff is managed from VE0, webhosting guest's private and root dir is on /data/v2/

disable vz quota in /etc/vz/vz.conf:

DISK_QUOTA=no


mount xfs with pquota:

/dev/yourdevice on /data/v2 type xfs (rw,noatime,nodiratime,logbufs=8,pquota)


/etc/projects:
2000:/data/v2/private/2002//home/www.server1.com
2001:/data/v2/private/2002//home/www.server2.com
2005:/data/v2/private/2002//home/www.server3.com
2006:/data/v2/private/2002//home/www.server4.com
2010:/data/v2/private/2002//home/www.server5.com


/etc/projid:
www.server1.com:2000
www.server2.com:2001
www.server3.com:2005
www.server4.com:2006
www.server5.com:2010


enabling quota for specific directory:
/usr/sbin/xfs_quota -x -c 'project -s  2010'
/usr/sbin/xfs_quota -x -c 'limit -p bsoft=500M bhard=520M 2010'


Re: XFS project quota (prjquota) [message #37376 is a reply to message #37374] Fri, 04 September 2009 17:30 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

are you setup the prjquota via the general action scripts, via global vps.mount and vps.umount ?

Bye,
Thorsten
Re: XFS project quota (prjquota) [message #37379 is a reply to message #37376] Fri, 04 September 2009 19:16 Go to previous message
a1bert is currently offline  a1bert
Messages: 9
Registered: October 2007
Location: .cz
Junior Member
no, my xfs volumes are mounted at boot via fstab in VE0, but I cannot see any difference when using vps.mount, just be sure to use pquota mount option, not prjquota (as I can remember, there were some inaccuracies in documentation and I am not sure that prjquota mount option worked for me)
Previous Topic: Scaling UBC values: Why?
Next Topic: Problems with my VPS please help?
Goto Forum:
  


Current Time: Sun Aug 11 18:44:37 GMT 2024

Total time taken to generate the page: 0.04896 seconds