PDA

View Full Version : Enabling quota on NFS-mounted drives


catdude
3rd October 2007, 21:55
My user directories are all under /its/isp/hosted, which is NFS-mounted from a NAS appliance. I'm now trying to enable quotas on this drive but I'm having no luck. Can anyone direct me to some documentation that shows how to enable quotas over NFS? My attempts with Google and Howtoforge have lead me to pages that don't seem to apply directly.

falko
4th October 2007, 16:39
Take a look here: http://www.faqs.org/faqs/sgi/faq/admin/section-68.html

What's in your /etc/fstab?

catdude
4th October 2007, 16:45
Take a look here: http://www.faqs.org/faqs/sgi/faq/admin/section-68.html

What's in your /etc/fstab?

On the ISPConfig machine?
proc /proc proc defaults 0 0
/dev/cciss/c0d0p1 / ext3 defaults,errors=remount-ro 0 1
/dev/cciss/c0d0p9 /home ext3 defaults 0 2
/dev/cciss/c0d0p8 /tmp ext3 defaults 0 2
/dev/cciss/c0d0p5 /usr ext3 defaults 0 2
/dev/cciss/c0d0p6 /var ext3 defaults 0 2
/dev/cciss/c0d0p7 none swap sw 0 0
/dev/hda /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 rw,hard,intr,usrquota,rsize=16384,wsize=16384 0 0
192.168.200.52:/webhost/hosts /its/isp/hosted nfs rw,hard,intr,rsize=16384,wsize=16384 0 0

On the NFS server (NAS appliance)? Not sure. I've e-mailed the engineer that runs that device and asked him.

mlz
4th October 2007, 18:57
Might want to turn usrquota on...

catdude
4th October 2007, 19:06
Might want to turn usrquota on...

That has to be done on the NFS server, right? When I try to add usrquota to the options in fstab on the ISPConfig server I get error messages. The engineer running the NAS box I'm NFS-mounting from tells me that usrquota is turned on at the NAS box, but I'm waiting for him to verify that for me.

mlz
4th October 2007, 20:58
If I remember correctly, it must be done on the mounting machine, and the quota files created on the master.

catdude
4th October 2007, 21:38
If I remember correctly, it must be done on the mounting machine, and the quota files created on the master.

If it has to be done on the mouting machine, then I'm not finding the correct syntax. I've tried using a line like:
192.168.200.52:/webhost/hosts /its/isp/hosted nfs rw,hard,intr,usrquota,rsize=16384,wsize=16384 0 0

but "mount" complains that "usrquota" is an unrecognized option and dies. I've also tried "quota" and "quotas" (found from other Google results) with the same result.

falko
5th October 2007, 14:05
If it has to be done on the mouting machine, then I'm not finding the correct syntax. I've tried using a line like:
192.168.200.52:/webhost/hosts /its/isp/hosted nfs rw,hard,intr,usrquota,rsize=16384,wsize=16384 0 0

but "mount" complains that "usrquota" is an unrecognized option and dies. I've also tried "quota" and "quotas" (found from other Google results) with the same result.Try
192.168.200.52:/webhost/hosts /its/isp/hosted nfs rw,hard,intr,usrquota,rsize=16384,wsize=16384,usrq uota,grpquota 0 0

Make sure that the quota package is installed and that you configure quota on /its/isp/hosted as shown at the end of http://www.howtoforge.com/perfect_setup_debian_etch_p3 .