1753821 Members
8832 Online
108805 Solutions
New Discussion юеВ

Space limit on Directory

 
SOLVED
Go to solution
Griselda Sanchez
Frequent Advisor

Space limit on Directory

Hi.
Is possible to configure space limit on directories (not a file systems)?
Thanks
4 REPLIES 4
Rodney Hills
Honored Contributor

Re: Space limit on Directory

As far as I am aware. You can turn on quota on a file system.

-- Rod Hills
There be dragons...
G. Vrijhoeven
Honored Contributor
Solution

Re: Space limit on Directory

Hi,

Yes and No...
quotas must be turned on a filesystem level ( /etc/fstab), but when turned on you can edit qoutas on user home dirs ( edqouta command)
If you do not want it on a home dir but just a regular dir i can only think of a seperate lvol.

HTH,

Gideon
Griselda Sanchez
Frequent Advisor

Re: Space limit on Directory

And exits any quotas for users (a specific user cannot put any file bigger than X size) ?
thanks
Sridhar Bhaskarla
Honored Contributor

Re: Space limit on Directory

Hi,

Quota can be used upon filesystem per user basis. Look at 'man 5 quota' for more information. A snippet of it is

//Disk quotas can be used by the system administrator to limit the
number of files and file blocks owned by a user on a per-file-system
basis. Separate limits can be established for both the number of
files (inodes) and the number of 1-Kbyte blocks for each user. A soft
(preferred) and a hard limit are established.//

Keeping the above in mind, you cannot limit a user based on a single file size. If the file size exceeds the 'remaining quota' then the user cannot keep that file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try