Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


CentOS cPanel Quota Issue after XEN to KVM Upgrade SOLVED!
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

CentOS cPanel Quota Issue after XEN to KVM Upgrade SOLVED!

n1kkon1kko Member
edited November 2015 in Help

I'm having quota issues in cPanel showing Unlimited Quota & 0MB

/etc/fstab

/dev/sda        /       ext3    noatime,errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0      0       1
/dev/sdb       none            swap    sw                              0 0
/proc           /proc           proc    defaults                        0 0
tmpfs           /dev/shm        tmpfs   nodev,nosuid,noexec,mode=1777             0 0
devpts          /dev/pts        devpts  gid=5,mode=620                  0 0
sysfs           /sys            sysfs   defaults                        0 0

Ran /scripts/fixquotas with no sucess
quotacheck -avugm: Can't find filesystem to check or filesystem not mounted with quota option

Driving me insane!

Comments

  • jarjar Patron Provider, Top Host, Veteran

    OpenVZ? Have them enable quotas for the container at the host level.

  • Sorry should have mentioned it's KVM.

  • Did you already reboot or have done a remount of the root filesystem?

    Your fstab is also missing the "grpjquota=quota.group" part for group quotas.

  • n1kkon1kko Member
    edited November 2015

    I'll add "grpjquota=quota.group" thanks. Have done a remount.

  • ClouviderClouvider Member, Patron Provider

    @n1kko said:
    I'll add "grpjquota=quota.group" thanks. Have done a remount.

    And the result is ?

  • @Clouvider said:
    And the result is ?

    Same issue!

  • n1kkon1kko Member
    edited November 2015

    Does this look correct?

    /dev/sda        /       ext3    noatime,errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0       0    1 
  • miTgiBmiTgiB Member
    edited November 2015

    /dev/mapper/VolGroup00-LogVol01 / ext4 usrjquota=quota.user,jqfmt=vfsv0 1 1
    This is from a fairly recent KVM install of cPanel with working quota

  • @miTgiB said:
    /dev/mapper/VolGroup00-LogVol01 / ext4 usrjquota=quota.user,jqfmt=vfsv0 1 1
    This is from a fairly recent KVM install of cPanel with working quota


    Mine's same

    /dev/vda1  /   ext4    usrjquota=quota.user,jqfmt=vfsv0    1   1
  • if I remember correctly, there's a section to enable/disable quota, probably where the error is. with cpanel I would say everything to run your server can be configured within the ui.

  • @century1stop said:
    if I remember correctly, there's a section to enable/disable quota, probably where the error is. with cpanel I would say everything to run your server can be configured within the ui.

    +1, make sure its enabled in WHM.

    Thanked by 1century1stop
  • Try /scripts/fixquotas also!

  • @linuxthefish said:
    Try /scripts/fixquotas also!

    Tried that and nothing. Will check in WHM.

  • n1kkon1kko Member
    edited November 2015

    Running Initial Quota Setup in cPanel gives this:

    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    edquota: Cannot stat() mounted device /dev/root: No such file or directory
    No filesystems with quota detected
  • ln -s /dev/sda /dev/root
    quotacheck -a
    /scripts/fixquotas

  • n1kkon1kko Member
    edited November 2015

    Ok ran all them and this is what I get.

    ln -s /dev/sda /dev/root

    ln: failed to create symbolic link ‘/dev/root’: File exists

    quotacheck -a

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

    /scripts/fixquotas

    Installing Default Quota Databases......Done
    journaled quota support: kernel supports, user space tools supports (available)
    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/sda (already configured quotas = 1).
    Updating Quota Files......
        quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
        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.
  • n1kkon1kko Member
    edited November 2015

    Problem finally solved after nearly 2 days!

    I had my VPS updated from XEN to KVM with Linode which turns outbreaks quotas!

    The issue is that the symbolic link /dev/root is linking to /dev/xvda which has been replaced by /dev/sda so the symlink just needs to be replaced:

    rm /dev/root

    ln -s /dev/sda /dev/root

    Thanks for everyone's help.

    Thanked by 1linuxthefish
  • If it is KVM, your block device should be /dev/vda if virtio is enabled, you will get much better IO performance once you enable that

  • @miTgiB said:
    If it is KVM, your block device should be /dev/vda if virtio is enabled, you will get much better IO performance once you enable that.

    I will have to check that out. Thanks

Sign In or Register to comment.