Hello,
I am currently trying to set up project quotas on an XFS filesystem. I have run into a few problems and I am hoping that I can get some help here.
Below is the relevant information, and the error I am getting:
Code:
[root@storage ~]# uname -a
Linux storage.acecomputers.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@storage ~]# cat /etc/mtab
/dev/sda3 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
/dev/sdb1 /data xfs rw,pquota 0 0
[root@storage ~]# cat /etc/projects
# XFS Quota directory definition
#
# Format: uid(from prospero):/directory
506:/data/mturner
[root@storage ~]# cat /etc/projid
# XFS Quota projectid file
#
# Format: username:uid(from prospero)
mturner:506
[root@storage ~]# xfs_quota -x -c 'project -s mturner' /data
Setting up project mturner (path /data/mturner)...
Processed 1 /etc/projects paths for project mturner
[root@storage ~]# xfs_quota -x -c 'limit -p bhard=1024g bsoft=512g mturner' /data
xfs_quota: cannot set limits: Function not implemented
The drive I want the quotas on is /data (the red text in 'cat /etc/mtab'). When applying the 'pquota' flag, I added it to my /etc/fstab file and did 'umount' then 'mount' (instead of using the mount -o remount command).
xfs_quota recognizes the project name and can view the current usage by said project
Code:
[root@storage ~]# xfs_quota -x -c 'print'
Filesystem Pathname
/data /dev/sdb1
/data/mturner /dev/sdb1 (project 506, mturner)
[root@storage ~]# xfs_quota -x -c 'quot -p'
/dev/sdb1 (/data) Project:
9258675128 #0
102991180 mturner
Any help is appreciated.
Thanks