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 - Javilonas

Pages: [1]
1
CentOS Configuration / Re: How to setup user quotas ?
« on: August 08, 2015, 06:05:56 AM »
try by checking all users quota

Code: [Select]
repquota -a -s

I don't get any output from that command, no errors, no messages, it just goes to next line, as [root@myuser]#

what output should i get? cwp let me set up quotas and select/modify  packages when creating an account.
I did "setup disk quotas" in admin panel and get message 
"Quota Configuration file /usr/local/cwp/.conf/quota_part.conf Already Exist!"

however the warning message remain when i do login in admin.

if i try to open quota_part.conf (with nano) there's nothing inside, just "/"

I had a second (and 3rd) look at this 3d, and tried to follow avery clues to fgure out what to do.

1) i tried to yum install quotas and got this output:
Package 1:quota-3.17-21.el6_5.x86_64 already installed and latest version
Nothing to do
2 ) i tried to edit /etc/fstab
and got this output:
# /etc/fstab
# Created by anaconda on Sun Mar  9 13:40:48 2014
#
# 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
#
/dev/xvda       /               ext4    noatime,errors=remount-ro       0 1
/dev/xvdb       none            swap    sw                              0 0
tmpfs                   /dev/shm                tmpfs   nodev,nosuid,noexec,mode=1777        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
/proc                    /proc                   proc    defaults        0 0

I'm not sure how i should replace default as indicated by the administrator.
Apparently in the new version it should be all set from the admin panel, and i tried, to no avail so far.

Any useful advice will be very welcome.

Replace:
Quote
/dev/xvda       /               ext4    noatime,errors=remount-ro       0 1

for:
Quote
/dev/xvda      /        ext4    noatime,errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0     0       1

Then do not forget:
Quote
ln /dev/root /dev/xvda

mount -o remount /
quotacheck -avugm
quotaon -avug

repquota -a

Pages: [1]