On a Linux system, any entry containingroot@host [~]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0) /tmp on /var/tmp type none (rw,noexec,nosuid,bind) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
usrquotais quota-enabled. The example above shows that the device known as
/dev/mapper/VolGroup00-LogVol00 onuses quotas.
On a FreeBSD system, any entry containingdocfbsd1# mount /dev/ad0s1a on / (ufs, local, with quotas) devfs on /dev (devfs, local) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) procfs on /proc (procfs, local)
with quotasis quote-enabled. The example above shows that the device known as
mountcommand, please visit the mount man page.
/etc/fstab. fstab (file systems table) is a system configuration file that maps devices to their respective mount points within a system. This description is accurate for both Linux and FreeBSD systems. To display the contents of /etc/fstab, use the cat command:
This command will print the file output in the command line interface.cat /etc/fstab
On a Linux system, if
usrquotais printed next to a particular entry in the fstab file, quotas are enabled for that particular device. The example above shows that the device known as
On a FreeBSD system, if
userquotasis printed next to a particular entry in the fstab file, quotas are enabled for that particular device. The example above shows that the device known as
|Device||The physical device on which data is stored.|
|Mountpoint||The path to the device's data storage location. The mount point is a physical location in the partition that functions as the root of the filesystem.|
|FStype|| The type of file system that is mounted. On Linux systems,
|Options||The options with which the file system is mounted. These options include whether or not quotas are enabled and whether or not programs can be executed on the device. For the purpose of fixing quotas, this column is the most important. You should examine this column to ensure that quotas are enabled for the device with which you are working.|
In this command, mount point represents the mount point for the file system you wish to remount. The -o argument allows you to pass the mount utility an option. Here, the remount option is passed, causing the mount utility to immediately remount the file system.mount -o remount mount point
/etc/fstab, confirm that the quota files are located in the root directory ( /) and that each file is greater than 0 bytes. To proceed, you can use the ls command with a wildcard.
Linux:The above example uses ls to list the contents of the root directory ( /). The -l flag gives ls' output in long listing format. This long listing format shows the file's permissions, which user owns the file, which group owns the file, the size of the file in bytes, and the date the file was last modified. If these files do not exist, you can use the /scripts/initquotas utility to create them. If these files exist and the size of each file is greater than 0 bytes, you can move on to the following step.root@host [/]# ls -l /*.user -rwxr--r-- 1 root root 13312 Apr 26 16:39 /aquota.user* -rwxr--r-- 1 root root 32 Apr 19 16:26 /quota.user*FreeBSD:root@host [/]# ls -l /*.user -rwxr--r-- 1 root wheel 13312 Apr 26 16:39 /aquota.user* -rwxr--r-- 1 root wheel 32 Apr 19 16:26 /quota.user*
This command, when paired with the -a argument, will print all of the file systems listed in /etc/mtab with read/write and quota options enabled.repquota -a
disablequotacacheparameter is set to
0. You can use the following command to do so:
The grep utility allows you to search for a string. In the command above, grep is used to search for diablequotacache in the /var/cpanel/cpanel.config file. To learn more about the grep utility, please visit the die.net's grep manual page.grep 'disablequotacache' /var/cpanel/cpanel.config
If theroot@host [~]# grep 'disablequotacache' /var/cpanel/cpanel.config disablequotacache=0
disablequotacacheparameter is set to
1, open the cpanel.config file with your preferred text editor and change the value to
0. Don't forget to save the file. If you are still experiencing problems with quotas, you can always use our ticket system to submit a ticket. Virtuozzo quotas documentation.