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 /scripts/dumpquotas

Discussion in 'General Discussion' started by scottralf, Aug 20, 2011.

  1. scottralf

    scottralf Registered

    Joined:
    Aug 20, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm trying to get the usage for all users and get to know that /scripts/dumpquotas will do the job. Unfortunately, there was no output when I'm running /scripts/dumpquotas. I've been looking for solutions through Google and some of the forums but no luck at the moment. Appreciate if anyone could help out.

    Thanks.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You can check the following:

    Code:
    repquota -a
    Also, there is a cache file of this usage at /var/cpanel/repquota.cache location:

    Code:
    cat /var/cpanel/repquota.cache
     
  3. apai

    apai Registered

    Joined:
    Sep 27, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I am having the same problem as well. This is what in return.

    Code:
    # repquota -a
    *** Report for user quotas on device /dev/sda7
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      --  547768       0       0          10214     0     0       
    named     --      12       0       0              3     0     0       
    
    
    *** Report for user quotas on device /dev/sdb1
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      --  959240       0       0          28854     0     0       
    mysql     --   24372       0       0            310     0     0       
    #508      --   11092       0       0             17     0     0       
    
    
    *** Report for user quotas on device /dev/sda2
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 5148072       0       0         197366     0     0       
    bin       --   30964       0       0            255     0     0       
    nobody    --       0       0       0              3     0     0       
    abrt      --       8       0       0              1     0     0       
    cpanel    --      40       0       0             10     0     0       
    cpanelroundcube --      40       0       0              2     0     0       
    mailman   --   40956       0       0           2280     0     0       
    mailnull  --       4       0       0              1     0     0       
    tomcat    --   16732       0       0           1000     0     0       
    #1488     --    6460       0       0            547     0     0       
    #1000     --     656       0       0             53     0     0       
    
    
    *** Report for user quotas on device /dev/sda3
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      --  591660       0       0           3611     0     0       
    daemon    --      12       0       0              3     0     0       
    lp        --       8       0       0              2     0     0       
    rpc       --       4       0       0              2     0     0       
    abrt      --      12       0       0              3     0     0       
    postfix   --      16       0       0             27     0     0       
    qpidd     --      40       0       0              9     0     0       
    haldaemon --       8       0       0              2     0     0       
    ntp       --       8       0       0              2     0     0       
    avahi     --       8       0       0              3     0     0       
    rpcuser   --      20       0       0              6     0     0       
    named     --      44       0       0             10     0     0       
    cpanel    --      40       0       0             12     0     0       
    cpanelhorde --      20       0       0              6     0     0       
    cpanelphpmyadmin --      12       0       0              4     0     0       
    cpanelphppgadmin --      12       0       0              4     0     0       
    cpanelroundcube --      20       0       0              6     0     0       
    mailman   --       0       0       0              1     0     0       
    mailnull  --     188       0       0             47     0     0       
    dovecot   --       4       0       0              1     0     0       
    cpaneleximfilter --       8       0       0              3     0     0       
    cpanellogin --      72       0       0             13     0     0       
    cpanellogaholic --       8       0       0              3     0     0 
    Code:
    cat /var/cpanel/repquota.cache
    cat: /var/cpanel/repquota.cache: No such file or directory
    
    Thank you.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you happen to be on a VPS that is using Virtuozzo or OpenVZ? If so, have you ensured that second level quotas are enabled for that VPS? You would want to contact the VPS provider to ask about that.
     
  5. apai

    apai Registered

    Joined:
    Sep 27, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Tristan,

    Nope, it was on a dedicated hardware.

    Thank you.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you have any of the /var/cpanel/repquota files?

    Code:
    [root@pride2 /var/cpanel] # ls -lah repquota*
    -rw------- 1 root root  12K Sep 30 20:16 repquota.cache
    -rw------- 1 root root 2.0K Sep 30 20:16 repquota.datastore
    -rw------- 1 root root 3.0K Sep 30 07:04 repquotamap.datastore
    Next, could you try running /scripts/initquotas on the machine? It is going to take awhile, so please ensure to do it at a slow time for the server.

    Can we also see the contents for /etc/fstab and mount?

    Code:
    cat /etc/fstab
    mount
     
  7. apai

    apai Registered

    Joined:
    Sep 27, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Tristan,

    Issue solved. Able to run /scripts/dumpquotas now.

    Thank you.
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Great to hear. Was it fixed by running /scripts/initquotas or something else?
     
  9. apai

    apai Registered

    Joined:
    Sep 27, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Tristan,

    I was my own mistake. This is a new server with cPanel, dumpquotas works as soon as I migrate account from the old server. Normally /scripts/dumpquotas works without the need to migrate user in but don't know why this server failed to do so. Thanks for the support again.

    Cheers.
     
Loading...

Share This Page