Operating System - HP-UX
1834804 Members
2345 Online
110070 Solutions
New Discussion

Re: Is quota system for subdirectories possible ?

 
Ron Barak
Advisor

Is quota system for subdirectories possible ?

Hi All,

Could you please comment on the following ?


Can I create a 20 GB file system, mounted on /fs, where /fs would have subdirectories /fs/sd1, /fs/sd2, and /fs/sd3 with the following characteristics:

/fs/sd1 is guaranteed to always be at least 4 GB in size.
/fs/sd2 is guaranteed to always be at least 6 GB in size.


Namely, I want to know if a sort of a quota system for subdirectories is possible.

Thanks,
Ron.
5 REPLIES 5
Amit Kureel
Advisor

Re: Is quota system for subdirectories possible ?

Hi Ron,

I can think of a very simple solution :

1) Create 3 filesystems :

(i) /fs 10GB
(ii) /fs/sd1 4GB
(iii) /fs/sd2 6GB
with mount points of sd1 and sd2 are on /fs

2) Create a directory sd3 in /fs

3) I think that should work gor you.

Amit Kureel
amit_kureel@yahoo.com

Helen French
Honored Contributor

Re: Is quota system for subdirectories possible ?

Disk quota is based on file system and not on directory or sub directory!

# man 5 quota
Life is a promise, fulfill it!
Shannon Petry
Honored Contributor

Re: Is quota system for subdirectories possible ?

I am one of them users of quotas, and believe firmly in them.

Mostly cuz I can get to them obnoxious users by setting their quota's to 1K ;)

Quotas are file system specific, and not directory. This is obvious as it's a mount option, and not a daemon.

Sometimes you have to be creative in your approach to making file systems, and how you mount them.

Good luck, and have fun
Shannon
Microsoft. When do you want a virus today?
Ron Barak
Advisor

Re: Is quota system for subdirectories possible ?

Hi Amit,

Your solution is indeed a very simple solution, but it misses my point in creating the large file system, with 3 subdirectories:
that point being that I want the subdirectories to be able to consume more than their guarantied allotted space, if needed.

For instance, /fs/sd1 is guaranteed to be at least 4 GB in size, but if it needs more than 4 GB, and there's free space on /fs (which is to be 20 GB in size), then I want /fs/sd1 to be able to grow beyond 4 GB (of course, still leaving /fs/sd2 at least 6 GB).

Bye,
Ron.

-----Original Message-----

Hi Ron,

I can think of a very simple solution :

1) Create 3 filesystems :

(i) /fs 10GB
(ii) /fs/sd1 4GB
(iii) /fs/sd2 6GB
with mount points of sd1 and sd2 are on /fs

2) Create a directory sd3 in /fs

3) I think that should work gor you.

Amit Kureel
amit_kureel@yahoo.com
Omar Senussi
Honored Contributor

Re: Is quota system for subdirectories possible ?

Hi Ron,
The point of the points system is to thank people who attempt to help.

Assigning 0 points is tantamount to a slap in the face.. not very nice!

For future reference, here is what the forum guidelins suggests:

How many points should I assign to replies?
Every response to your question is eligible to earn between 1-10 points. No need to worry about running out of points - when a truly awesome reply rolls in that deserves a 10, you will be able to assign it a 10! However, be careful to assign points based on the value that a reply truly provides. Use the following scale as a guideline:

o N/A: The answer was simply a point of clarification to my original question

o 1-3: The answer didn't really help answer my question, but thanks for your assistance!

o 4- 7: The answer helped with a portion of my question, but I still need some additional help!

o 8-10: The answer has solved my problem completely! Now I'm a happy camper!


Although assigning points is not mandatory, it is a key component of a strong, interactive community, and it is STRONGLY ENCOURAGED. Others have taken time to help you, so please take a moment to give them credit for their assistance!


Have anice day!.. and I hope someone out there will come up with the goods.
If you can keep your head whilst all around you are losing theirs... You haven't understood the situation!