Author Topic: Xfs disk quota setup  (Read 416 times)

0 Members and 1 Guest are viewing this topic.

Xfs disk quota setup
« 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

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?

Google Hangouts: