Control Web Panel

WebPanel => CentOS Configuration => Topic started by: tiagocaus on April 27, 2020, 04:31:25 PM

Title: Xfs disk quota setup
Post by: tiagocaus on April 27, 2020, 04:31:25 PM
I have a server at digitalocean.

I am trying to configure `disk quota setup`, but without success! because the instructions I found on the forum are confusing!

Server information:

Your disk status from the file /etc/fstab

Code: [Select]
#
# /etc/fstab
# Created by anaconda on Thu Aug  8 12:37:33 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff /        xfs     defaults        0 0
/swapfile   swap    swap    sw  0   0

Your Partition scheme, output of the command df -h

Code: [Select]
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        896M     0  896M   0% /dev
tmpfs           920M     0  920M   0% /dev/shm
tmpfs           920M  105M  815M  12% /run
tmpfs           920M     0  920M   0% /sys/fs/cgroup
/dev/vda1        50G   34G   17G  67% /
tmpfs           184M     0  184M   0% /run/user/0


How should you proceed to check?

- /etc/fstab current:

Code: [Select]
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff /  xfs   defaults   0 0
change to?:

Code: [Select]
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff /  xfs   defaults,usrquota,grpquota   0 0
OR

Code: [Select]
/dev/mapper/centos_root-home / xfs defaults 0 0
change to?:

Code: [Select]
/dev/mapper/centos_root-home / xfs defaults,usrquota,grpquota 0 0

I ask this, because inside the /etc/fstab file, there is no /dev/mapper/centos_root-home.

This /dev/mapper/centos_root-home file doesn't exist either!


Could someone tell me the correct procedure for xfs disks?








Title: Re: Xfs disk quota setup
Post by: rcschaff on April 28, 2020, 01:23:24 AM
https://www.interworx.com/support/faq/enabling-quotas-centos7/
Title: Re: Xfs disk quota setup
Post by: pipoy on April 30, 2020, 05:57:27 PM
https://www.interworx.com/support/faq/enabling-quotas-centos7/

This worked.

Title: Re: Xfs disk quota setup
Post by: salehfauzan on July 15, 2020, 07:01:14 PM
and this work for me (kvm - xfs)
https://www.mysterydata.com/how-to-enable-xfs-disk-quota-in-centos-and-cwp-panel/