Help with installing quota?

Discussion in 'HOWTO-Related Questions' started by onastvar, Apr 27, 2008.

  1. onastvar

    onastvar Member

    Resolved: Help with installing quota?

    I have setup CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server)

    http://howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig-p4

    When I issue commands 4 & 5 i get following errors

    1) touch /aquota.user /aquota.group (OK)
    2) chmod 600 /aquota.* (OK)
    3) mount -o remount / (OK)
    4) quotacheck -avugm (ERROR 1)
    5) quotaon -avug (ERROR 2)

    Code:
    quotacheck -avugm
    quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
    quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
    quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings.../

    Code:
    quotaon -avug
    quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
    quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
    quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
    Please stop all programs writing to filesystem or use -m flag to force checking.

    This is my "/etc/fstab"

    /dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0

    Any help would be appreciated

    Thanks
    onastvar
     
    Last edited: Apr 27, 2008
  2. Leszek

    Leszek New Member

    Quota gives errors like that only once durring setup.
    Everything should be ok.
    Just test it and see if it works.
    Code:
    repauota -a
    will show You what limits users have.
     
    Last edited: Apr 27, 2008
  3. onastvar

    onastvar Member

    Quota file not found or has wrong format

    When I issued command
    Code:
    repquota -a
    I got the following:

    repquota: Quota file not found or has wrong format.

    How could I go about fixing this?

    Thanks
     
  4. onastvar

    onastvar Member

    RESOLVED > Help with installing quota?

    I followed instruction from http://forums.rimuhosting.com/forums/showthread.php?t=122

    I changed 1 to 0 of 1st line in "/etc/fstab"

    /dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1 (changed from 1 to 0)

    Then I issued following commands

    Code:
    mount -o remount /
    Code:
    quotacheck -acguvm
    Code:
    quotaon -avug
    It works now...
    Thanks!
     

Share This Page