LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Suse - quota users home folder (https://www.linuxquestions.org/questions/linux-newbie-8/suse-quota-users-home-folder-747802/)

siskyline 08-15-2009 02:57 PM

Suse - quota users home folder
 
Hello.

I have a small problem what I think can be solved but I am unsure what action to take.

I want to quota each user in my LDAP server there is ~1000 users, I have two current ideas to implament.

I understand that quotas only apply to file systems so,

1..
I create a "virtual filesystem" and also a mounting point for the user. this has worked great on my tests, but I am unsure if having 1000+ mounting points will be a problem.

2..
My home file is placed on a differant partition (/dev/sda3) so it is possible to apply a quota to this.

but when I goto set a quota for a user in option 2 it tells me that 2752 blocks have been taken, but this is a new user. so I can only come to the conclusion this will not work because it is quoting the hole home drive and not just the files of the user I am setting the quota for.

Is there any advice on what actions to take or documentation on a differant way to tackle this?

Thank you for your time,
Simon

kbp 08-16-2009 10:46 AM

Hi Simon,

Could you please provide the steps you are using to enable and manage quotas ?

thanks,


kbp

siskyline 08-16-2009 09:38 PM

Hi,

Thanks fot the reply.

1) Packages have been installed
2) # quotacheck -cug /home - to create quota files
3) # edquota -f /home sosuser2 - add user sosuser2 to quota

Within the quota file it then tells me

Disk quotas for user sosuser2
Filesystem blocks soft hard
/dev/sda3 2752 0 0

4) If I was to continue I would of set the soft and hard limit for the user sosuser2 under soft and hard.
5) Save the file and enjoy quotas

I hope that helps you on the process I have taken, if you need any more information please ask.

Thanks,
Simon

vishesh 08-16-2009 11:20 PM

Issue quotaon command
root#quotaon /home

thnks

kbp 08-17-2009 01:15 AM

Hi Simon,

Another question... did you edit the /etc/fstab entry for /home to add usrquota,grpquota mount options ?

A quick google turned up this if you would like to compare your steps:

http://souptonuts.sourceforge.net/quota_tutorial.html


cheers

kbp

siskyline 08-17-2009 09:46 AM

hi,

sorry that i forgot to add that in to the process. Yes i do edit that file.
I have also missed out quota on as stated in another post.

My main consern is where the space taken comming from if it is a new user. My assumtion was the quota only showed usage to that user. When i view the folder of the user the file size is 0

do you think there would be a problem having over a thousand mount point on a system.

Thanks again,
simon

centosboy 08-17-2009 09:55 AM

Quote:

Originally Posted by siskyline (Post 3644636)
Hello.

I have a small problem what I think can be solved but I am unsure what action to take.

I want to quota each user in my LDAP server there is ~1000 users, I have two current ideas to implament.

I understand that quotas only apply to file systems so,

1..
I create a "virtual filesystem" and also a mounting point for the user. this has worked great on my tests, but I am unsure if having 1000+ mounting points will be a problem.

2..
My home file is placed on a differant partition (/dev/sda3) so it is possible to apply a quota to this.

but when I goto set a quota for a user in option 2 it tells me that 2752 blocks have been taken, but this is a new user. so I can only come to the conclusion this will not work because it is quoting the hole home drive and not just the files of the user I am setting the quota for.

Is there any advice on what actions to take or documentation on a differant way to tackle this?

Thank you for your time,
Simon

it will work.
blocks are always bound to be already used, because of existing directories created by default when adding the user that would have already have taken that space.


All times are GMT -5. The time now is 05:59 PM.