LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting quota (https://www.linuxquestions.org/questions/linux-newbie-8/setting-quota-4175457466/)

project.linux.proj 04-09-2013 04:26 AM

setting quota
 
Hi,

I want to setup quota on /data/COMP. I have Redhat 6.3 Etnerprise server. Below is the /etc/fstab entry given. The volume is a LVM.


========/etc/fstab========

/dev/mapper/vg-LogVo /data ext4 defaults,usrquota,grpquota 1 2

Getting below message while setting quota on

$ sudo quotaon -vug /data/COMP/
quotaon: Mountpoint (or device) /data/COMP not found or has no quota enabled.


Can anybody give me steps to acheive this. I want to allocate 100 GB space on this folder for all users.

Thanks,

cbtshare 04-09-2013 05:10 AM

you also have quotas set to use /data, then you want to run quotas on /data/COMP.Put in the fstab /data/COMP then remount the drive and then

#quotacheck -cugm /data/COMP

1)set the relevant quotas
#setquota -u or setquota -g

2)Then turn on quotas
#quotaon -a /data/COMP

project.linux.proj 04-09-2013 05:11 AM

Thanks for replying. I want to allocate /data/Comp 500 G and /data/Comp2 200 G. Is it possible . if yes May I know the /etc/fstab entry for the same.

project.linux.proj 04-09-2013 06:23 AM

Can anybody help me on this ?

chrism01 04-09-2013 08:23 AM

Read section 7 here http://www.linuxtopia.org/online_boo...ion/index.html.
You can only set quotas on filesystems/partitions/mount-points; you cannot set quotas per dir.
In your case this means /data, not /data/COMP.
Quotas may be set per user or per group.

project.linux.proj 04-10-2013 04:01 AM

Thanks Chris , you were right.


All times are GMT -5. The time now is 01:40 PM.