PDA

View Full Version : quotas on Debian woody


gareth
04-26-2005, 03:37 PM
Hi

Is anyone else (sucessfully) using quotas on their unixshell account?

I have updated my fstab...

hyperion:/# cat /etc/fstab
/dev/sda1 / ext3 grpquota,usrquota,dev,suid,exec 0 1

Trying to turn quotas on results in...

hyperion:/# quotaon -a
quotaon: using //quota.group on /dev/sda1 [/]: Invalid argument
quotaon: Maybe create new quota files with quotacheck(8)?
quotaon: using //quota.user on /dev/sda1 [/]: Invalid argument
quotaon: Maybe create new quota files with quotacheck(8)?

My quota files are called...
hyperion:/# l | grep quota
-rw------- 1 root root 8192 Apr 26 10:05 aquota.group
-rw------- 1 root root 7168 Apr 26 10:20 aquota.user

Has anyone else seen this before? It seems to be looking for quota.group, and quota.user when mine are prefixed with the letter a.

Any info much appreciated :)


Gareth

matta
04-26-2005, 04:23 PM
It's a difference between quota versions in userland the kernel. The kernel supports both version 1 and 2 quota formats. You might want to try adding "-F vfsold" to all of your quota commands.

matta
04-26-2005, 04:24 PM
I didn't even look at the error... simply running quotacheck with v2 files (the default) should work. Something like "quotacheck -avugmfc" should suffice.

gareth2
04-28-2005, 05:03 PM
Hi

Thanks for the reply.

Running quotacheck -avugmfc...

hyperion:~# quotacheck -avugmfc
quotacheck: Scanning /dev/sda1 [/] done
quotacheck: Checked 1531 directories and 24241 files

Which is cool, and when I run repquota -av to check how many files the user gareth has, it shows...

hyperion:~# repquota -av
*** Report for user quotas on device /dev/sda1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 193376 0 0 25746 0 0
daemon -- 8 0 0 3 0 0
man -- 204 0 0 18 0 0
mail -- 24 0 0 6 0 0
news -- 4 0 0 1 0 0
gareth -- 32 0 0 9 0 0

Statistics:
Total blocks: 7
Data blocks: 1
Entries: 6
Used average: 6.000000

If I log in as 'gareth', create some files, and run repquota -av again, the new files created are not showed in the 'used' column. Running quotacheck -avugmfc again, then running repquota -a does show the increased usage.

It's almost like quotas are enbaled but not turned on :-S

My quota files in / are still showing as aquota.user and aquota.group - is this right?

Running quotaon -a still produces

If anyone has any suggestions, I'd be very grateful.

Thanks



gareth2
...formerly gareth :p

(does anyone know why an email never arrives from this forum after submitting a forgot password request?!?)

cmtech
04-30-2005, 12:06 PM
Submit the password request a few times and it works. I had to do it about six times and it arrived a couple of hours later.