LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2011, 12:36 PM   #1
necktweaker
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
XFS project quota problem


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
 
Old 05-15-2018, 04:11 AM   #2
philippe12112
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
Lightbulb xfs_quota project flag

if you setup your project quota it isnt on by default/activated this can be done by following these steps
1. sudo xfs_quota -x (-x is for expert mode for the admin commands)
2. project -s project name or number

if it still doesnt work for you please mail me: philippevdijk63@gmail.com

Last edited by philippe12112; 05-15-2018 at 04:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XFS: xfs_quota don't wanr me a message when bsoft quota is reached mgumbau Linux - General 0 08-10-2009 08:56 AM
XFS problem? Berticus Linux - Newbie 1 03-17-2009 11:44 PM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 03:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
kdebase not recognizing XFree86-xfs package as xfs mikeyt_333 Linux - Software 1 08-17-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration