0

I am having one RHEL 7 installed machine with following xfs partitions.

  1. /
  2. /swap
  3. /boot

i did not create /home drive while creating partitions.

now i want to apply quota and not able to fine entries for '/home' drive in fstab file.

/home is resides in / (root) directory

please guide me how can i apply quota.

Aneesh

anil
  • 15
  • 6
  • You would need to create a new partition, mount the partition to a temporary directory, copy the home directory to the temporary directory, amend fstab to reflect the new dedicated home partition and then reboot. You would then be able to set the quotas as required. – Raman Sailopal Jul 06 '17 at 12:35
  • If you're using BTRFS, you can make /home a subvolume, which would allow you to mount it as its own subtree without affecting your partition structure. However, chances are you're using XFS, which is the CentOS 7 default. – Spooler Jul 19 '17 at 16:39

2 Answers2

0

You can do that using following link https://help.directadmin.com/item.php?id=557

user1389735
  • 166
  • 6
0

As it states in RHEL 7 documentation (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/ch-disk-quotas.html) Disk Quotas are enabled on a filesystem, not on a folder inside a filesystem.

So, if you want quotas on only /home, then it needs to be its own partition/filesystem. If you want to avoid showing /home is fstab, but still have quotas, then you need to enable quota on the partition that contains it (/ in this case).

Joe
  • 1,043
  • 8
  • 11