Quota Error

I have a error that recently started. When creating a new domain during the process it failed with the following error

Error: setquota: Mountpoint (or device) /home not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.

/home does exist with a lot of domains. The only change we recently made was backing up the original location of /home and moving it to a new, larger partition.

Chris

Status: 
Active

Comments

Howdy -- quotas would need to be setup and enabled on that new larger partition you're using for /home.

If you go into Webmin -> System -> Disk Quotas, look for /home, and if it says "Enable Quotas" next to it, you'd want to click that.

Then, go into Virtualmin -> Limits and Validation -> Check Disk Quotas, and click "Check Now", which will recalculate all the quotas on /home.

Also, go to System Settings on the left menu and click "Re-Check Configuration", and make sure it reports that quotas are active on /home .

Disk quotas for /home are enabled.

I followed both steps, checking disk quotas and re-checking the Virtualmin configuration, both of which completed without error. The Re-check confirmed that quotas were enabled for home

When creating a new domain I still have the same error above.

Chris

Edit--

Oh, and the quota reporting is totally off. If I go to Administration Options > Disk Usage > Overview, for most sites it's <= 1% of the allowed disk quota. Clicking on Home directory or By sub-server shows an the correct disk usage

Hmm, one last thing before we go bug Jamie for ideas...

It's possible the quotas are enabled, but in some sort of odd state.

If we disable them, then re-enable them -- that may resolve the quota problems, as the quota metadata files should be re-created at that point.

You can disable quotas by going into Webmin -> System -> Disk Quotas, and clicking "Disable Quotas" next to /home.

Once that's complete, click "Enable Quotas".

Then, go back to Virtualmin -> Limits and Validation -> Check Disk Quotas, and click "Check Now" again.

Does that correct the problem you're seeing?

Eric,

As always, thanks for the help. Unfortunately when I go to Webmin > System > Disk Quotas there is no option to disable quotas for /home

What option does it show next to /home? Is it showing "Enable Quotas"?

Yes, it is showing Enable Quotas. I click on that and it doesn't change

What is the output of the command "mount" on your system?

/dev/xvda2 on / type ext3 (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/xvda1 on /mnt/boot type ext2 (rw,errors=remount-ro)
/dev/xvdh1 on /usr type ext3 (rw)
/dev/xvdg1 on /var type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/mapper/storage-data on /home type ext3 (rw)

Great, thanks!

And next, could you paste in the full output that you receive when running System Settings -> Re-Check Config?

Checking Configuration

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

    Your system has 7.50 GB of memory, which is at or above the Virtualmin recommended limit of 256 MB.

    BIND DNS server is installed, and the system is configured to use it.

    Mail server Postfix is installed and configured.

    Apache is installed.

    Webalizer is installed.

    Apache is configured to host SSL websites.

    MySQL is installed and running.

    ProFTPd is installed.

    Logrotate is installed.

    SpamAssassin and Procmail are installed and configured for use.

    ClamAV is installed and assumed to be running.

    The System and Server Status module is installed and checking on schedule.

    Plugin DAV Login is installed OK.

    Plugin AWstats reporting is installed OK.

    Plugin Mailman is installed OK.

    Plugin Protected web directories is installed OK.

    Using network interface eth0 for virtual IPs.

    IPv6 addresses are available, using interface eth0.

    Default IP address for virtual servers is 10.0.122.76.

    External IP address for DNS records is set to xx.xx.xx.xx, which matches the detected external address.

    Both user and group quotas are enabled for home and email directories.

    All commands needed to create and restore backups are installed.

    Resource limits are supported and configured correctly.

    The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

Also,

If I try to change a domain's plan, e.g., quota, it fails with this: Changing disk quota .. .. Administration user failed! : setquota: Mountpoint (or device) /home not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. at /usr/share/webmin/web-lib-funcs.pl line 1360.

Eric, Jamie, any other information I can provide you? I'm kind of dead in the water where new domains are concerned. Thanks

Sorry for the delay, we've been discussing some ideas regarding what might be going wrong.

Could I log into your system to take a look?

If that's okay, you can either email your root login information to eric@virtualmin.com, or you can enable the Virtualmin Remote Support module.

What specifically are you looking for? Forgive my hesitancy, we're on a live system.

What about re-installing quotas? Would that have any affect on the current data?

Well, we aren't really sure what the issue is, so we'd just be looking to troubleshoot the issue directly.

I can toss out a few things you can try though --

First, quotas don't appear to be enabled in your /etc/fstab file. You'd want to add "usrquota,grpquota" to the options in your /etc/fstab entry for /home, and then remount the /home partition.

Then, you could try enabling quotas on /home with this command:

/sbin/quotaon -p /home

I'm curious if the quotas appear to be working at that point. If not, did you see any errors when running the above commands? Also, what is the output of the "mount" command now?

Wow, thanks Eric. That was really helpful - we totally overlooked the obvious.

I verified that the /home directory did not have quotas enabled. Even though FSTAB was setup correctly, the /etc/fstab file was never run because we never rebooted the server and we had mounted the new /home directory manually without specifying quotas. I ran the below command to resolve the issue.

mount -o remount /dev/storage/data

Now, when you initiate a 'mount' command the below results are outputted revealing quotas are indeed now enabled:

/dev/xvda2 on / type ext3 (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/xvda1 on /mnt/boot type ext2 (rw,errors=remount-ro)
/dev/xvdh1 on /usr type ext3 (rw)
/dev/xvdg1 on /var type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/mapper/storage-data on /home type ext3 (rw,grpquota,usrquota)

Again, many thanks.