These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Enable Quotas not working ubuntu on the new forum.
Howdy
Enable Quotas will not enable for some reason
Here is the mount command
mount /dev/root on / type ext4 (rw,relatime,quota,usrquota,grpquota,stripe=256,data=ordered,usrquota,grpquota) devtmpfs on /dev type devtmpfs (rw,relatime,size=2011660k,nr_inodes=502915,mode=755) none on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600) none on /proc type proc (rw,nosuid,nodev,noexec,relatime) none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/fuse/connections type fusectl (rw,relatime) none on /sys/kernel/security type securityfs (rw,relatime) none on /run type tmpfs (rw,nosuid,noexec,relatime,size=402428k,mode=755) none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) none on /run/shm type tmpfs (rw,nosuid,nodev,relatime) /dev/md1 on /boot type ext4 (rw,relatime,errors=remount-ro,data=ordered)
Any ideas why? Cheers
Howdy,
Hmm... are you by chance using an OpenVZ-based VPS?
-Eric
Now than Eric no its a fully dedicated server. It's also a fresh install of Virtualmin
Yeah it looks like you should be all setup for quotas... do you receive any errors when attempting to enable them?
Also, if you go into System Settings -> Re-Check Config, does that discover any problems?
-Eric
Yea I get
Quotas are not enabled on the filesystem / which contains home directories under /home and email files under /home. Quota editing has been disabled.
Full check below if needed
Thanks for the info!
Do you receive any particular error when attempting to enable quotas?
-Eric
Nothing Eric it just looks like it is refreshing the page.
Hmm, one thing you could try is to restart the quotas.
To do that, run this command as root:
/etc/init.d/quota restart
Then restart Webmin:
/etc/init.d/webmin restart
After doing that, does that show quotas as being enabled, or allow you to enable them?
-Eric
Got this on the first command
Aha! We sometimes see that on Xen-based VPS's, I don't think I've seen that on a freshly installed dedicated server... that's odd!
However, it should be a simple fix.
The device /dev/root has to exist -- it should be a symlink to the partition your root filesystem resides on.
So if your root filesystem resides on /dev/sda1, /dev/root should be a symlink that points to /dev/sda1.
-Eric
I see would I fix this via some command Eric?
You can use the "ln" command to create a symlink. The exact command depends on the device your root filesystem resides on. Do you know what that is?
You can determine that with the "mount" command.
-Eric
No I don't know what that is Eric :( am new to all this. I ran mount on the first post is that what is needed?
Cheers
Aha! That is indeed what I wanted. Though there's something unusual about that...
If you run the command "cat /etc/fstab", what output does that show?
Thanks!
-Eric
Here you go Eric
So the problem I'm trying to sort out in my head here, is why your /etc/fstab file shows /dev/md6 as the device to use for the root filesystem... but when running mount, it's showing that it's mounted /dev/root.
I'm not sure if that would normally catch my attention, but in this particular case the quota script is saying that /dev/root doesn't even exist. So that's a bit puzzling!
However, we can try moving forward with setting up /dev/root as a symlink and see if that resolves the quota issue.
Before we do that though, I just wanted to be absolutely certain that this command returns an error about the file not existing:
ls -l /dev/root
Got this Eric
I'll also do all them commands again just to be safe ( I could of logged on wrong server or something silly like that)
Mount
cat /etc/fstab
Okay, something is still a little odd, but for getting quotas enabled, I do think creating a symlink would be the next step.
You can do that by running this command:
ln -s /dev/md6 /dev/root
After that, are you able to enable quotas?
-Eric
Well it did something Eric lol :P
/ (users) / (groups) New Linux Native Filesystem RAID device 6 User and Group Quotas Active Disable Quotas
Looks like it enabled.
Cheers for all the help Mike
Yup all working now Eric cheers!
Hey, have the same issue. I followed this thread up to post #18. Unfortunately
ln -s /dev/md6 /dev/root
didn't work. The error message said:ln: failed to create symbolic link '/dev/root': File exists
I still get the error message when I try to enable quotasFailed to turn on quotas : quotaon: using //aquota.user on /dev/vda1 [/]: No such process quotaon: Quota format not supported in kernel.
Anyone an idea? Thanks