Quotas are not enabled on the filesystem /

16 posts / 0 new
Last post
#1 Fri, 10/26/2012 - 15:32
PepinYaco

Quotas are not enabled on the filesystem /

I have a HP ProLiant ML310 G3 running Ubuntu 10.04 (clean install) and when I run the "Re-check configuration" script, I get this message:

"Quotas are not enabled on the filesystem / which contains home directories under /home and email files under /home. Quota editing has been disabled"

Can anyone tell me how to fix that, Please?

Under: Limits and Validation, the option "Check Disk Quotas" does not show there.

Thx guys

Fri, 10/26/2012 - 18:19
andreychek

Howdy,

Quotas should be enabled by default... what filesystem are you using there? You can determine that by running the command "mount" -- could you paste in that output?

-Eric

Fri, 10/26/2012 - 23:14
PepinYaco

I hope this is what you asked for, i open a terminal and typed mount, here is the outpot

marc@ns1:~$ mount
/dev/sda1 on / type ext4 (rw,grpquota,errors=remount-ro,usrquota)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
gvfs-fuse-daemon on /home/marc/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=marc)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sde1 on /media/A554-DE30 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)

Thx Eric

Sun, 10/28/2012 - 22:54
andreychek

Hmm, that's unusual... it looks like quotas are enabled, according to your mount output.

If you go into Webmin -> System -> Disk Quotas, does it give you an option to enable quotas?

-Eric

Mon, 10/29/2012 - 07:22
PepinYaco

Yes Eric, the option is there, but when i click on Enable Quotas, i get the following message: quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/

Here is whats on that pagr:

  • Filesyst /
  • type: New Native Filesystem
  • Mounted: Partition ID bla bla bla
  • status: User and Groups Inactive

Then i click on Enable Quotas and i get that error. Now, all works great (as far as I know( except for sending emails but another topic there).

its got to be some kind of wrong setting because i had this problem before on another system ( i was running my server of a laptop but now i moved to a real server i got for my self) and i gave access to Ronald to my server and he made that work, but he did not tell me what he did and I have not seen Ronald in a few months, hope hos well tho.

Wed, 10/31/2012 - 20:39
PepinYaco

any ideas Eric?

Thu, 11/01/2012 - 14:40
andreychek

Howdy,

It almost sounds like the quota files had been deleted. I'm not entirely certain how to resolve that particular issue... though a little Googling on the error "quotaon: Cannot find quota file on /" does present some ideas.

I think the simplest one would be to try re-creating them, which you can do with the following commands:

touch /aquota.user /aquota.group
chmod 600 /aquota.*

After that, try enabling them in Webmin again, and see if that does the trick.

-Eric

Thu, 11/01/2012 - 14:59
PepinYaco

Wow Eric thx for the help, i would try that asap, when I get home. Thx

Fri, 11/02/2012 - 17:06
PepinYaco

no luck on that command. What problems can this situation cause in my server?

Sat, 11/03/2012 - 05:07
Locutus

There's a command that specifically checks for damaged quota files and repairs them if necessary. I usually use that after e.g. copying /home to a new partition:

quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the filesystem (this step is omitted if option -c is specified). If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active filesystem is checked which is not advised).

Try this:

quotaoff / quotacheck -m / quotaon /

"-m" causes quotacheck to not try to remount the filesystem read-only, which it normally does to prevent processes from writing to it while it counts disk usage. You can't remount / read-only though while the system is booted.

Sat, 11/03/2012 - 11:56
Xencored

Ive had this alot, with ext4 on debain the only way I ever fixed it was to start over again. Not much help I know but it worked for me everytime. seems like just sometimes it don't like it.

Mike

Sat, 11/03/2012 - 13:38
PepinYaco

@ Vodkaholic this is the second time this happen on two different computers/server. It could be that Im using ext4 or maybe not, but both times I was stating with a fresh/clean install system.

@ Locutus Here is the ouput I got after running that on the terminal:


root@ns1:~# quotaoff /
quotaoff: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaoff: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
root@ns1:~# quotacheck -m /
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: lstat Cannot stat `//home/marc/.gvfs': Permission denied
Guess you'd better run fsck first !
exiting...
root@ns1:~# quotaon /
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
root@ns1:~#

My next step is to boot from a live usb and run a fsck to sda1 see if that does anything. Thank you guys for helping.

Sat, 11/03/2012 - 13:48
Xencored

Aye it was also after a clean "fresh" install for me also.

Sat, 11/03/2012 - 16:45
Locutus

Hmm, well for me, when fixing quotas after copying a /home, I always managed to do it with quotacheck.

You might try "quotacheck -avugimf" (all, verbose, user, group, interactive, no remount, force). If that still fails, try it twice, or delete /aquota.user first and then do an fsck.

Sat, 11/03/2012 - 18:50
PepinYaco

Here is the ouput of quotacheck -avugimf (still have not run the fsck)


root@ns1:~# quotacheck -avugimf
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda1 [/] quotacheck: lstat Cannot stat `//home/marc/.gvfs': Permission denied
Guess you'd better run fsck first !
exiting...
root@ns1:~#

Sun, 11/04/2012 - 03:44
Locutus

Well, as I suggested, you might want to delete the empty quota files (at least I'm assuming that the error message "truncated" refers to that) and run fsck. Also check what's up with "/home/marc/.gvfs" and see why quotacheck cannot access it.

I.e. fix all error messages that quotacheck gives you. :)