How to enable User and Group Disk Quota on CentOS 7 / RHEL 7

10 Responses

  1. Mk says:

    Tnq..Good article…

  2. Dany says:

    Remarkable article.
    What happened when grace period for soft quota is reached?

  3. vikas says:

    informative indeed.. easy to understand

  4. Paul Whitney says:

    What about troubleshooting? I added entries to fstab, remounted, and when I do the grep still shows “noquota”

  5. Santosh says:

    Excellent info. let me know, how can we assign inodes and inodes calculation

  6. Bruce says:

    What would happen if you added quota to /home when its still part of /? Would the quota only affect that specific directory or the whole root file system?

  7. Buddhika Karunanayaka says:

    Dear Pradeep,

    I got following output when edit fstab and after remount

    cat /etc/fstab
    /dev/mapper/centos_ns2-home /home xfs defaults,usrquota,grpquota 1 2

    [[email protected] ~]# mount -o remount /home
    [[email protected] ~]# mount | grep /home
    /dev/mapper/centos_ns2-home on /home type xfs (rw,relatime,attr2,inode64,noquota)

    [[email protected] ~]# quotacheck -cugv /home
    quotacheck: Mountpoint (or device) /home not found or has no quota enabled.
    quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

    What is the reason pls expalin in order to activate quota

    • Pradeep Kumar says:

      Hi Buddhika,

      Steps mentioned in tutorial is for ext4/ext3 file system but you are trying these steps on xfs file system that’s why you are getting errors.

      We will shortly write an article on XFS quota.

Leave a Reply to Santosh Cancel reply

Your email address will not be published. Required fields are marked *