08-03-2017
Limit directory Size in AIX
Hello
I have a disk mounted on my AIX server and inside the disk, I want to create 3 directories with max size limit, so that the directories can be limited to pre-defined size.
Eg: My total disk size is 350 GB and I want to limit dir1 to max of 100 GB, dir 2 to 75 GB and dir 3 to 60 GB and the rest 115 GB will be unallocated to directories and will be used for future usage.
Is there anyway to achieve this, without creating mutiple SAN disks.
Env: AIX 7.1
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I limit size of a file to 1 MB or something like that under Linux? (4 Replies)
Discussion started by: _hp_
4 Replies
2. Solaris
I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file..
ie max size of file is 10 mb.. and if any new data written to file the oldest data removed..
How can I do this?
I am on solaris 9 x86 (3 Replies)
Discussion started by: frustrated1
3 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have a problem writing or copying a file 2GB or larger to either the second or third disk on my C8000. I've searched this forum and found some good information on this but still nothing to solve the problem.
I'm running hpux 11i, JFS3.3 and disk version 4 (from fstyp) on all 3 disks.
... (2 Replies)
Discussion started by: HaidoodFaulkauf
2 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to limit a certain folder size(e.g. Documents, Desktop)?
:) (2 Replies)
Discussion started by: tisdmin
2 Replies
5. UNIX for Dummies Questions & Answers
Hi, I am not root, but I need to limit the size of my directory, so that it cannot contain more than 200M of stuff inside. Is this possible?
Also, how can I see the total size of that directory? If I do ls -ltrd, it does not give me the size of all the files inside the directory. And if I do df... (6 Replies)
Discussion started by: JamesByars
6 Replies
6. Linux
Hello
I want to limit the size of a directory;
so a user cant copy more staff inside it then 5 Giga for example..
eg. /nfs/temp/jhon size can not increase more that 5Gb
I havnt found anything on the net. Is there a way to do it? (2 Replies)
Discussion started by: jredx
2 Replies
7. UNIX for Advanced & Expert Users
Hi
i configured log rotate for a specific file.
/var/log/sauer
i configured create a file in logrotate.d
# cat /etc/logrotate.d/sauer
#this is a logrotate configuration file for msu_ng logs
/var/log/sauer {
rotate 5
size=1M
daily
compress
... (5 Replies)
Discussion started by: modcan
5 Replies
8. Shell Programming and Scripting
Hi All,
I want to store 32KB of file in Oracle DB into CLOB field. I am not able to insert more than 32KB of file into CLOB. So i want to put a limit on the file size. I am using k shell.
My file size will dynamically increase its size, i want to check the file size if it is more than 32KB... (1 Reply)
Discussion started by: rajeshorpu
1 Replies
9. UNIX for Dummies Questions & Answers
Hey everyone
I'm trying to limit the size a directory can be under Solaris 10. I can find plenty of guides to do it for user home directories, ut what I'm after is an absolute limit, regardless of the user.
For example:
I want /export/example/ to never pass say 5 GB, no matter what user is... (3 Replies)
Discussion started by: goodvikings
3 Replies
10. Shell Programming and Scripting
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies
LEARN ABOUT XFREE86
fs_setvol
FS_SETVOL(1) AFS Command Reference FS_SETVOL(1)
NAME
fs_setvol - Set quota and messages for a volume containing a file or directory
SYNOPSIS
fs setvol [-path <dir/file path>+]
[-max <disk space quota in 1K units>]
[-offlinemsg <offline message>] [-help]
fs setv [-p <dir/file path>+]
[-ma <disk space quota in 1K units>]
[-o <offline message>] [-h]
fs sv [-p <dir/file path>+]
[-ma <disk space quota in 1K units>]
[-o <offline message>] [-h]
DESCRIPTION
The fs setvol command sets the quota (maximum possible size) of the read/write volume that contains each directory or file named by the
-path argument. To associate a message with the volume which then appears in the output of the fs examine command, include the -offlinemsg
argument.
To display all of the settings made with this command, use the fs examine command. The fs listquota command reports a fileset's quota, and
the fs quota command the percent of quota used.
To set quota on one volume at a time, use the fs setquota command.
CAUTIONS
Currently, the maximum size of a volume is 2 terabytes (2^31 bytes).
OPTIONS
-path <dir/file path>+
Names each file or directory for which to set the host volume's quota and offline message. Partial pathnames are interpreted relative
to the current working directory, which is also the default value if this argument is omitted.
Specify the read/write path to the file or directory, to avoid the failure that results from attempting to change a read-only volume.
By convention, the read/write path is indicated by placing a period before the cell name at the pathname's second level (for example,
/afs/.abc.com). For further discussion of the concept of read/write and read-only paths through the filespace, see the fs mkmount
reference page.
-max <disk space quota in 1K units>
Sets the maximum amount of file server disk space the volume can occupy. Provide a positive integer to indicate the number of one-
kilobyte blocks (1024 is one megabyte). A value of 0 sets an unlimited quota, but the size of the disk partition that houses the volume
places an absolute limit on the volume's size.
If the -path argument is omitted (so that the command sets the quota of the volume housing the current working directory), the -max
switch must be provided.
-offlinemsg
Associates a message with the volume which then appears in the output of the fs examine command. Its intended use is to explain why the
volume is currently offline.
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command imposes a 6500 kilobyte quota on the volumes mounted at the home directories /afs/abc.com/usr/smith and
/afs/abc.com/usr/pat:
% cd /afs/abc.com/usr
% fs setvol -path smith pat -max 6500B<>
PRIVILEGE REQUIRED
The issuer must belong to the system:administrators group.
SEE ALSO
fs_examine(1), fs_listquota(1), fs_mkmount(1), fs_quota(1), fs_setquota(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_SETVOL(1)