Dan Nelson wrote:

In the last episode (Mar 09), Skylar Thompson said:


I'm having some problems getting quotas enabled on a FreeBSD
4.11-RELEASE box. I already have quotas enabled on two filesystems,
and need to extend that to a third (presently unquota'd) filesystem.
I added "userquota,groupquota" to the line in /etc/fstab for the
filesystem, touched the files quota.user and quota.group, and
rebooted. The sytem came back up fine, but hung after a few minutes
of normal activity. I rebooted, and the same thing happened. Turning
of the quotas on just that filesystem solved the problem. Has anyone
else had problems like this?



The entire system hung how? Did the cursor stop flashing? If you
switch to another vty and try to log in, does it let you enter your
username and then hang? If so, hit ^T and tell us what's in the square
brackets.



The system is still running and accepting NFS traffic on a separate filesystem (/clients), but all disk I/O on the filesystem I'm enabling on (/usr) is stopped.

Also, running "quotacheck /filesystem" is a better way to create the
quota files than touching them. It ensures that existing files on the
filesystem are correctly accounted for.



OK. The handbook should be clearer on this. Where it says:

===

For finer control over your quota startup, there is an additional configuration variable available. Normally on bootup, the quota integrity of each file system is checked by the quotacheck(8) <http://www.FreeBSD.org/cgi/man.cgi?query=quotacheck&sektion=8> program. The quotacheck(8) <http://www.FreeBSD.org/cgi/man.cgi?query=quotacheck&sektion=8> facility insures that the data in the quota database properly reflects the data on the file system. This is a very time consuming process that will significantly affect the time your system takes to boot. If you would like to skip this step, a variable in /etc/rc.conf is made available for the purpose:

check_quotas="NO"


===

And:

===

At this point you should reboot your system with your new kernel. /etc/rc will automatically run the appropriate commands to create the initial quota files for all of the quotas you enabled in /etc/fstab, so there is no need to manually create any zero length quota files.

===

there should be changes to mention that /etc/rc will only create the files with check_quota enabled, and also that creating zero-length files is not only unnecessary, but also dangerous.

In any case, I have more downtime scheduled early Friday morning, so I can see if using quotacheck solves my problems.

--
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to