1834836 Members
2208 Online
110070 Solutions
New Discussion

Limit subdirectory size

 
Eugene Vinokur
New Member

Limit subdirectory size

I need to create limit for the subdirectory under /var filesystem.
How may limit size of the /var/audit directory
till 20MB, because I have only 50MB available on the /var filesystem?
Thank you in advance.
Eugene
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: Limit subdirectory size

Rather than limiting the size of the directory, which I'm not sure you could do,why not make another LVOL of the size you want, 20MB, and mount it as /var/audit?

By the way, 50 MB seems a bit small for your /var LVOL.
Shannon Petry
Honored Contributor

Re: Limit subdirectory size

You can also setup quotas to perform most of these tasks. You may have to be a bit creative with how the directories are setup to have quotas work the way you want though.

Some people think that quotas enforce limits on all users when enabled. However if the Soft and Hard limits are not set, then you are unlimited in your use. Also, you can setup the actions that occur if the quotas are exceeded. Either nagging the user, or disabeling logins untill they get their SH?? together.

Read up a bit, and repost if you can get quotas working. man on quota should get you started though.....

Regards,
Shannon
Microsoft. When do you want a virus today?