Web Hosting Talk







View Full Version : How to disable quotas on backup drive?


nogi
10-26-2003, 11:57 PM
A partition used for backups has quotas enabled. This data will count against the users' quota and are probably the reason why wrong disk quotas is reported by WHM. Does anybody here know how to disable quotas for the backup drive? Can I do it via ssh and if so, how should it be done?

Thanks
John

salad
10-27-2003, 02:04 AM
man quotaoff ( may have to do
man quotaon )
man fstab

nogi
10-27-2003, 06:56 AM
Thanks salad. If I cd to the /backup drive and do it from there will it only happen to the backup drive? I'm not sure how linux filesystems are working.

cd /backup /sbin/quotaoff -a doesn't do anything - wrong reporting continues, and /scripts/fixquotas turns quota support on again. I wonder what cPanel meant by suggestion that I disable quota support on the backup drive - according to what they say quotas aren't reported correctly because data, for an account at the backup drive, are counted with as well. This is strange because I've never experienced that problem on any of the other servers and quotas are on there. Could someone please be the kindest person on WHT today and lend me a helping hand ;)

John

salad
10-27-2003, 08:19 AM
note: original post edited

The command you ran
/sbin/quotaoff -a
will turn off quotas on ALL filesystems.

First:
/sbin/quotaon -a ( you should probably just reboot ).

Then:
cat /etc/fstab
and see which filesystems have quotas enabled.

If '/backup' isn't listed than it's a directory on the root '/' filesystem and it's inheriting the quota from that.

If it is listed: ( I'm guessing now that it's not) , then you do:
/sbin/quotaoff /backup

If it isn't listed:
you'll need to do your backups to
another direcotory on a different partition with enough room ( or create a separate partition for '/backups').
the df command
will describe your partitions and the space they take up. Really backups should be on a separate disk and also to a remote facility...