« Home | Signals, really cool! » | Logging server load to /var/log/messages » | Splitting a file in GNU/Linux » | Useful Kernel manipulation commands » | Saturation of open files in the system » | Set up Auto-Logout for root user » | 20 Linux System Monitoring Tools Every SysAdmin Sh... » | How to send email from the Linux command line » | Installing rrdtool using yum on CentOS » | How to configure TCP/IP filtering in Windows 2000 » 

Wednesday, July 21, 2010 

Enable quota in the server

If quotas are not enabled for the partition, the following error will occur while doing a quotacheck in the server. In case of Cpanel server, /scripts/initquotas will throw the following error.


/scripts/initquotas
Quotas are now on
Updating Quota Files......
        quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
        quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
....Done

You need  to follow the steps given below:

$ touch /quota.user /quota.group
$ chmod 600 /quota.*
$ mount -o remount /
$ quotaoff -a
$ vi /etc/fstab
 ( open 'fstab' file and add usrquota,grpquota to the partition where you want to have quota on. That is, for example, add the entry like:
/dev/ubd0 / ext3 defaults,noatime,usrquota,grpquota 1 0 )
$ quotaon -a

Then you can execute the script successfully without any errors. You can run a quotacheck in the server. In Cpanel server, you can run
initquotas without any errors.

 http://kb.bobcares.com/

Add to Google

The Author

  • Nick Perrydoo
  • Spawn at Philippines
My profile

Links


Read Ons

Article of the Day

This Day in History

Today's Birthday

In the News

Quotation of the Day

Word of the Day


Powered by Blogger
and Blogger Templates
© Copyright 2006 Ba-zoo-ra - All Rights Reserved.