Skip to main content

setupquota

Setup Disk Quotas

This tool will  help you to automatically setupset up disk quotas on your eenos server. Eenos support supports disk quotas on ext4 and xfs file systems only.

Command:

/usr/local/eenos/scripts/setupquota

Command Options:

# /usr/local/eenos/scripts/setupquota
Copyright(c) 2020-2022, eenos.com
Setup Disk Quotas - Automatic Disk quota configuration 

Usage: /usr/local/eenos/scripts/setupquota <option> [value] 
Options:
        -a, --auto                      -   To setup automatic disk quota
        -m <mount> , --mount <mount>    -   To enable quota on disk mount point        

Automatic Quota Setup

To detect available disk  partitions and  setup disk quota automaticallyautomatically, use the following command,

Command:

/usr/local/eenos/scripts/setupquota --auto

Enable Quota On a Disk Mount

You can enable disk quota on the new disk  partition which is  already mounted using the following command,

Command:

/usr/local/eenos/scripts/setupquota --mount <mount path>

Example:

Enable disk quota on /home2

/usr/local/eenos/scripts/setupquota --mount /home2

Sometimes you may need to reboot the server to enable disk quota on the root partition (/) . Some servers need xfs quota enabled on the boot loader prompt.  You can also setupset up the disk quota in the generic linux Linux way.