Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rajanm99

Pages: [1]
1
CentOS Configuration / Re: How to setup user quotas ?
« on: March 09, 2019, 12:56:29 PM »
I have managed to fix the quota in CentOS 7 +CWP - xfs formatted.

Code: [Select]
mount | grep ' / '
If the result is: /dev/vda1 on / type xfs (rw,relatime,attr2,inode64,noquota)

Then

Code: [Select]
nano /etc/default/grub

Add to the end of line of GRUB_CMDLINE_LINUX=
Code: [Select]
rootflags=uquota,gquota
Before
Code: [Select]
GRUB_CMDLINE_LINUX="console=tty0 crashkernel=auto console=ttyS0,115200"
After
Code: [Select]
GRUB_CMDLINE_LINUX="console=tty0 crashkernel=auto console=ttyS0,115200 rootflags=uquota,gquota"

Rebuild the grub config:
Code: [Select]
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
grub2-mkconfig -o /boot/grub2/grub.cfg

Then update the fstab

Code: [Select]
nano /etc/fstab
Change from
Code: [Select]
UUID=5f18...a0a / xfs defaults        0 0To
Code: [Select]
UUID=5f18...a0a / xfs defaults,usrquota,grpquota        0 0
Reboot

Now login to the cwp and update each package and check while saving (Update quota for all users using this package, also disables inode limits !)

Pages: [1]