The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem With Quotas

Discussion in 'General Discussion' started by Yogesh Singh, Nov 10, 2014.

  1. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    I have tried everything but none of the solution is working so contacting support. Allow me to explain my issue.

    I updated to the latest version of cPanel which is v11.46.0 (build 12) the next day it was available. Since then i am having problem with quotas, the quotas are showing unlimited for all accounts. I have tried to rebuild Quota from Server Configuration >> Initial Quota Setup but no luck. It shows the below results:

    Code:
    Installing Default Quota Databases......Done
    journaled quota support: kernel supports, user space tools supports (available)
    checking out /home/backup/
    checking out /backup
    checking out /backup
    Warning : Your system does not have a separate filesystem for backups. This may cause performance degradation during the backup process.
    /dev/md1 (already configured quotas = 1).
    Quotas will not be enabled on /home to prevent performance degradation.
    /dev/md2 (already configured quotas = 0).
    Updating Quota Files......
    quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
    quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
    
    ....Done
    Quotas have been enabled and updated.
    Reading package Starter
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 100 M
    Reading package Power
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 25600 M
    Reading package Prox
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 15360 M
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 25600 M
    Reading package Advanced
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 1024 M
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 0 M
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 100 M
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 1024 M
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected.
    Resetting quota for xxxxx to 100 M
    Now, I have also tried (reference http://forums.cpanel.net/f5/frustrating-quota-error-centos-6-2-xen-260462.html) i.e.

    To check to see if "/dev/root" exists: ll /dev/root
    If it does not exist, try linking "/dev/xvda" to it via: ln -s /dev/xvda /dev/root
    Then, ran the following command: # /scripts/fixquotas

    And, followed this too: /http://www.daftspunk.com/code/fix-for-file-system-quotas-devroot-symlink-breaks-linode-centos-6-x

    But no luck. Please help.
     
  2. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Are you using a VPS under Xen? Could be CentOS 6.6 update. Since that came in the same timerange than 11.46 release.

    I got your error on a cpanel dnsonly too. What do you get with uname -a ?
     
  3. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    Its a dedicated server from OVH. uname -a shows below information:

    Linux hostname.domain.com 3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:2
    4 CET 2014 x86_64 x86_64 x86_64 GNU/Linux
     
  4. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    Also, i am receiving this email notification daily.

    Sub: Output from your job 45

    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    repquota: Cannot stat() mounted device /dev/root: No such file or directory

    Not sure what is happening. Any help is highly appreciated.
     
    #4 Yogesh Singh, Nov 11, 2014
    Last edited: Nov 11, 2014
  5. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    What OS? It looks to me not like a plain CentOS 6.X installation.

    It looks more like a OVH dedicated with a OVH custom kernel.

    You should ask OVH about there custom kernel and problems with CentOS 6.6 (if that is what you are running).
    I don't see a widespread problem related to cpanel but to kernel flavour and used OS.

    The vanilla kernel for CentOS 6 is currently 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    Thank you for taking interest in solving this issue.

    For cat /etc/stab
    Code:
    cat: /etc/stab: No such file or directory
    For mount
    Code:
    rootfs on / type rootfs (rw)
    /dev/root on / type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    devtmpfs on /dev type devtmpfs (rw,relatime,size=32968872k,nr_inodes=8242218,mode=755)
    none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    devpts on /dev/pts type devpts (rw,relatime,mode=600)
    /dev/md2 on /home type ext4 (rw,relatime,data=ordered)
    tmpfs on /dev/shm type tmpfs (rw,relatime)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    /dev/loop0 on /tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/loop0 on /var/tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/root on /home/virtfs/earpeace/lib type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/lib type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/bin type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/bin type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/sbin type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/sbin type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/opt type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/opt type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/lib64 type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/lib64 type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/usr type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/var type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/var/spool type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/var type ext3 (ro,nosuid,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/var/log type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/var/spool type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/etc/mail type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/var/log type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/loop0 on /home/virtfs/earpeace/tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/loop0 on /home/virtfs/earpeace/var/tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/root on /home/virtfs/mmaol/etc/mail type ext3 (rw,nosuid,noexec,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    devtmpfs on /home/virtfs/earpeace/dev type devtmpfs (rw,nosuid,noexec,relatime,size=32968872k,nr_inodes=8242218,mode=755)
    /dev/root on /home/virtfs/earpeace/usr/sbin type ext3 (ro,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/loop0 on /home/virtfs/mmaol/tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/root on /home/virtfs/earpeace/usr/local/cpanel/3rdparty/mailman type ext3 (ro,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/loop0 on /home/virtfs/mmaol/var/tmp type ext3 (rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=writeback)
    /dev/root on /home/virtfs/earpeace/usr/local/cpanel/3rdparty/mailman/logs type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/usr/local/cpanel/3rdparty/mailman/locks type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/earpeace/usr/local/cpanel/3rdparty/mailman/lists type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    devtmpfs on /home/virtfs/mmaol/dev type devtmpfs (rw,nosuid,noexec,relatime,size=32968872k,nr_inodes=8242218,mode=755)
    /dev/root on /home/virtfs/earpeace/usr/local/cpanel/3rdparty/mailman/qfiles type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr/sbin type ext3 (ro,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/md2 on /home/virtfs/earpeace/home/earpeace type ext4 (rw,relatime,data=ordered)
    /dev/root on /home/virtfs/mmaol/usr/local/cpanel/3rdparty/mailman type ext3 (ro,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr/local/cpanel/3rdparty/mailman/logs type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr/local/cpanel/3rdparty/mailman/locks type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr/local/cpanel/3rdparty/mailman/lists type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/root on /home/virtfs/mmaol/usr/local/cpanel/3rdparty/mailman/qfiles type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=writeback,jqfmt=vfsv0,usrjquota=quota.user)
    /dev/md2 on /home/virtfs/mmaol/home/mmaol type ext4 (rw,relatime,data=ordered)
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  9. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    My fault, apologies for wasting your time. Please find the required results below:

    Code:
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    /dev/md1        /       ext3    errors=remount-ro,usrjquota=quota.user,jqfmt=vfs                                                                             v0      0       1
    /dev/md2        /home   ext4    defaults        1       2
    /dev/sda3       swap    swap    defaults        0       0
    /dev/sdb3       swap    swap    defaults        0       0
    /dev/sdc3       swap    swap    defaults        0       0
    proc            /proc   proc    defaults                0       0
    sysfs           /sys    sysfs   defaults                0       0
    tmpfs           /dev/shm        tmpfs   defaults        0       0
    devpts          /dev/pts        devpts  defaults        0       0
     
    #9 Yogesh Singh, Nov 13, 2014
    Last edited: Nov 13, 2014
  10. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    Any suggestion?
     
  11. Yogesh Singh

    Yogesh Singh Member

    Joined:
    Nov 10, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ghaziabad, INDIA
    cPanel Access Level:
    Root Administrator
    Anything else you need?

    Also, OVH said:
     
  12. Adrian Costin

    Adrian Costin Registered

    Joined:
    Nov 19, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    cPanel Access Level:
    DataCenter Provider
    First, regarding the following error:

    Code:
    repquota: Cannot stat() mounted device /dev/root: No such file or directory
    Please do a:

    Code:
    ls -l /dev/root
    and make sure it's a link to "md1". If that's not the case then that needs to be fixed.

    I also see that your /home partition (/dev/md2) doesn't have quota activated. You need to edit /etc/fstab and add the quota parameters for /dev/md2 exactly as /dev/md1. The final line should read like this:

    Code:
    /dev/md2        /home   ext4    errors=remount-ro,usrjquota=quota.user,jqfmt=vfs        1       2
    After you edit the line you need to remount the partition using these options like this:

    Code:
    mount -o remount,usrjquota=quota.user /dev/md2
    Then check the mount command and verify that /dev/md2 is now mounted with the quota options. If it does, run /scripts/fixquotas again and check if you still receive errors.
     
    #12 Adrian Costin, Nov 19, 2014
    Last edited by a moderator: Nov 19, 2014
  13. jhio

    jhio Member

    Joined:
    Nov 3, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi!! thank you for your post. It helped me to solve the same issue. I have a question 'tough..
    You said to write down the same mounting options for '/' to '/home' , so my new fstab looks like this:

    Code:
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    /dev/sda2       /           ext3    errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0      1       1
    /dev/sda3       /home   ext4    errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0       1       2
    /dev/sda4       swap    swap    defaults        0       0
    proc            /proc   proc    defaults                0       0
    sysfs           /sys    sysfs   defaults                0       0
    tmpfs           /dev/shm        tmpfs   defaults,noexec,nosuid,nodev,noatime    0       0
    devpts          /dev/pts        devpts  defaults        0       0
    /usr/tmpDSK             /tmp                    ext3    loop,noexec,nosuid,nodev,noatime 0 0
    Is there any consideration about mounting /home as 'errors=remount-ro' ?

    Thanks.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The use of "errors=remount-ro" indicates it will remount as read-only if the system encounters errors. You are welcome to change that value, but cPanel/WHM and services will already not function if the primary partition (/) is in read-only mode.

    Thank you.
     
  15. tomidjx

    tomidjx Registered

    Joined:
    Nov 14, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, I've a similar problems as above.
    My output for cat /etc/fstab is:
    Could you please give advice?
    Thanks
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you elaborate on the specific issue you are facing?

    Thank you.
     
  17. tomidjx

    tomidjx Registered

    Joined:
    Nov 14, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,
    in my cPanel in the List Account page I get Unlimited as a value on the "Quota" column, although I've set a specific quota value per each account.
    Furthermore, some accounts shows 0 on the "disk used" column (still on the list account page), some other show a very low value (such as 3MB or so), which I believe are not correct.

    This is a fairly new install of cPanel (version 11.52.0 build 22), installed few weeks ago.
    Centos 6.5

    I tried to run # /scripts/fixquotas and i got this out put:
    cat /etc/fstab give this output:
    # mount give this output:
    Thanks for your attention
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page