Ubuntu Pro quotaon -avug

Discussion in 'General' started by Donno, Jun 21, 2021.

  1. Donno

    Donno Member

    I am testing ispconfig on Ubuntu Pro using perfect-server-ubuntu-20.04 installation guide.

    and i cannot get Quota to work :

    Code:
    mount -o remount /
    quotacheck -avugm
         quotacheck: Scanning /dev/root [/] done
         quotacheck: Checked 19045 directories and 94713 files
    quotaon -avug
        quotaon: using //quota.group on /dev/root [/]: No such process
        quotaon: Quota format not supported in kernel.
        quotaon: using //quota.user on /dev/root [/]: No such process
       quotaon: Quota format not supported in kernel.
    I have also installed sudo apt install linux-image-extra-virtual with no success finding the quota modules. find /lib/modules/`uname -r` -type f -name '*quota_v*.ko*'

    uname -r = 5.4.0-1044-gcp

    Any help will be appreciated ?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What is Ubuntu Pro? Where did you get it and how was it installed?
    Is this running on some virtual host where quota is not supported on clients?
     
  3. Donno

    Donno Member

    https://ubuntu.com/blog/tag/ubuntu-pro

    Yes it is installed on a VM.

    I am sure there should be a way ?
     
    Last edited: Jun 21, 2021
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    The best is to ask Google Cloud themselves.
     
  5. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    i had the same issue on aws with ec2 instances of ubuntu.
    as you've found out, the default images have been modified a bit, and some bits just aren't there. like you, on aws, just installing linux-image-extra virtual was not enough to restore the missing kernel pieces.

    i had to remove the aws kernel image and install linux-image-generic, so i would assume you would need to do the same with google's kernel image.

    here's the instructions for doing it on aws ec2, obviously you'll need to change the kernel image being removed to be whatever googles' one is. also, unless you're willing to completely restart from scratch, i would suggest making a snapshot copy of your current vm and test it on there, there's no guarantee the linux-image-generic kernel will boot properly on GCP, i've never tried it.
    https://www.howtoforge.com/community/threads/ubuntu-18-04-aws-ec2-disk-quotas.79445/
     
    till and ahrasis like this.
  6. Donno

    Donno Member

    Haha the only way to ask google is google search

    Yes i did change the kernel but unfortunately the instance did not boot again and this will defeat the purpose. Google has extra modules for the kernel called linux-modules-extra-gcp accidentally came a crossed it while searching up on there kernel build (Ubuntu Pro).

    Here are the steps to get Quota working in Ubuntu Pro :
    Code:
    sudo apt-get -y install quota quotatool
    sudo apt install linux-image-extra-virtual
    sudo apt-get install linux-modules-extra-gcp
    reboot
    quotaoff -a
    quotacheck -avugm
    quotaon -avug
     
    Th0m, ahrasis, till and 1 other person like this.

Share This Page