PDA

View Full Version : Help with installing quota?


onastvar
27th April 2008, 21:23
I have setup CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server)

http://howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig-p4

When I issue commands 4 & 5 i get following errors

1) touch /aquota.user /aquota.group (OK)
2) chmod 600 /aquota.* (OK)
3) mount -o remount / (OK)
4) quotacheck -avugm (ERROR 1)
5) quotaon -avug (ERROR 2)

quotacheck -avugm

quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings.../

quotaon -avug

quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

This is my "/etc/fstab"

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

Any help would be appreciated

Thanks
onastvar

Leszek
27th April 2008, 22:10
Quota gives errors like that only once durring setup.
Everything should be ok.
Just test it and see if it works.
repauota -a
will show You what limits users have.

onastvar
27th April 2008, 22:24
When I issued command
repquota -a I got the following:

repquota: Quota file not found or has wrong format.

How could I go about fixing this?

Thanks

onastvar
27th April 2008, 22:51
I followed instruction from http://forums.rimuhosting.com/forums/showthread.php?t=122

I changed 1 to 0 of 1st line in "/etc/fstab"

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1 (changed from 1 to 0)

Then I issued following commands

mount -o remount /
quotacheck -acguvm
quotaon -avug

It works now...
Thanks!