PDA

View Full Version : How do I fix quotas?


rhood
04-12-2005, 07:22 AM
On a DSM server running DSM 3 on RedHat Enterprise 3, all users are showing up as using 0 MB of disk space.

How can I resolve this, is there a script I need to run?

LeeJ
04-12-2005, 07:39 AM
Run the command below.
mount

You should then see output similar to the below.
/dev/hda5 on /tmp type ext3 (rw,noexec,usrquota,grpquota)
/dev/hda3 on /usr type ext3 (rw,usrquota,grpquota)
/dev/hda2 on /var type ext3 (rw,usrquota,grpquota)

You are specifically looking for the "usrquota,grpquota" entries. If they are not there send in a support request and we will turn on quotas for you manually.

If quotas are already on running the command below will resolve the problem.
/usr/local/dsm/bin/php /usr/local/dsm/int/quotarepair

ChOoB
03-17-2006, 07:30 AM
I have make trouble i check if i was have that files and i don't have.

i did the "/usr/local/dsm/bin/php /usr/local/dsm/int/quotarepair"
and that creat 2 files aquota.user and aquota.group both are empty.

during the quotarepair runned i go that message "setquota: Quota file not found or has wrong format."

What i can do ?

Thx

LeeJ
03-17-2006, 10:50 AM
Please post the output of the mount command as requested above.

ChOoB
04-19-2006, 12:01 AM
[root@juddy root]# tail -20 /etc/fstab


/dev/md1 / ext3 defaults,usrquota,grpquota 1 1
/dev/md0 /boot ext3 defaults,usrquota,grpquota 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/md2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

Jeremy
04-28-2006, 05:16 AM
I believe NOT SURE!! but you need /home in the partitions scheme for quotes to work.

The way it looks like your system is setup is all on / (root directory).

Having /home on its own partition is always a good idea in case you mess up a setting and make your server unbootable, you will have all your uses data still there! unless the drive gos flop :)

ChOoB
05-01-2006, 08:43 AM
But 6 month ago the quotas HDD was working and i didn't have formated my server.
How i can resolve that?

Jeremy
05-03-2006, 03:14 PM
type

quota -v

paste the out put.