• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Enable Quota on CentOS 6

Roberto Nunez

Basic Pleskian
Hello,
I find a problem with CentOS 6.2-6.3 because I can not enable quotas.

I read http://kb.parallels.com/en/768/, but it doesnt work.

I read http://www.centos.org/docs/5/html/D...h-disk-quotas.html#s1-disk-quotas-configuring AND
https://access.redhat.com/knowledge...x/6/html-single/Storage_Administration_Guide/

My /etc/fstab is:

/dev/mapper/VolGroup-lv_root / ext4 defaults,usrquota 1 1
UUID=dae3674a-f8bf-41a8-944e-a56bc8572bd3 /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc

[root@173 /]$ mount | grep quota
/dev/mapper/VolGroup-lv_root on / type ext4 (rw,usrquota)

[root@173 /]$ quotaon /dev/mapper/VolGroup-lv_root
quotaon: cannot find //quota.user on /dev/mapper/VolGroup-lv_root [/]
[root@173 /]$
[root@173 /]$ quotaon /
quotaon: Cannot find quota file on / [/dev/mapper/VolGroup-lv_root] to turn quotas on/off.

Can someone help me?
 
[root@173 /]$ quotacheck -c
Bad number of arguments.
Utility for checking and repairing quota files.
quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a

-u, --user check user files
-g, --group check group files
-c, --create-files create new quota files
-b, --backup create backups of old quota files
-f, --force force check even if quotas are enabled
-i, --interactive interactive mode
-n, --use-first-dquot use the first copy of duplicated structure
-v, --verbose print more information
-d, --debug print even more messages
-m, --no-remount do not remount filesystem read-only
-M, --try-remount try remounting filesystem read-only,
continue even if it fails
-R, --exclude-root exclude root when checking all filesystems
-F, --format=formatname check quota files of specific format
-a, --all check all filesystems
-h, --help display this message and exit
-V, --version display version information and exit

Bugs to [email protected]
[root@173 /]$ quotacheck -c /
quotacheck: Cannot guess format from filename on /dev/mapper/VolGroup-lv_root. Please specify format on commandline.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
 
Back
Top