Sponsored Content
Top Forums Shell Programming and Scripting Capacity of directory... Pulling hair out :-) Post 302329411 by fpmurphy on Saturday 27th of June 2009 10:06:50 AM
Old 06-27-2009
Code:
But I still do not understand how to figure out the capacity of the folder from the return or how to take that and turn it into a percentage.

As Jim Mcnamara there is no concept of "capacity of a folder" in Unix or GNU/Linux. For starters Unix and GNU/Linux has directories not folders. And unlike Windows/DOS FAT12 or FAT16 there is no inherent limitation on the number of files in a directory. Unless you are using quotas (and generally only large organizations use quotas) the best you can do is determine the capacity of the filesystem on which the directory resides and the amount of free or allocated space on that filesystem.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

i'm pulling my hair out getting a solaris 8 box to work as a caching name server

i've gone through the sun docs as well as a Solaris Network Admin book. while the book is fair, it lacks detail and i'm sure there are things it's missing on getting a caching only name server working. as for the sun docs... what it has is really miserable. i can't make anything out of it. ... (4 Replies)
Discussion started by: xyyz
4 Replies

2. AIX

How to increase capacity?

Hello everybody, is a very simple question how can I increase the capacity of a disk wich is on a DS4300?, I have done the procedure on the Storage Manager but the space is the same on the AIX (5.3) , what should I do to obtain the new ammount of disk space? (16 Replies)
Discussion started by: GermanSkull
16 Replies

3. AIX

capacity planning on aix

Hi All, What do you usually use for capacity planning on AIX? Any idea will do? Thanks in advance, itik (1 Reply)
Discussion started by: itik
1 Replies

4. Shell Programming and Scripting

Monitor capacity of directory

Good morning. I have been attempting to find a way to monitor the capacity of a directory so that when it reaches 80% or higher I can send an event. I was able to find a script that does this for the whole drive by I can not seem to figure out how to do this for just a single directory. ... (1 Reply)
Discussion started by: LRoberts
1 Replies

5. Shell Programming and Scripting

Filesystems using more than 75% capacity

i need to write a shell script for printing the list of filesystems whose disk utilization is more than 75%...i tried using df -h along with awk but cud'nt make the combination work.....:wall: when we do df -h then the filesystems which are using more than 75% capacity shud be printed according to... (11 Replies)
Discussion started by: xtatic
11 Replies

6. Shell Programming and Scripting

Can't Commit Directory... is this guy pulling my leg?

Hello, I hired a coder a couple weeks ago to develop 3 small modules for a popular CMS. I created Github repos for each module so as to manage the code and allow others to download it at will. The CMS in question is structured in such a way that each module is housed in its own... (2 Replies)
Discussion started by: fern
2 Replies

7. AIX

TSM capacity

Dears, The TSM storage that we have is already configured to backup some Application,directories & logs or let's say backup different path from 15 servers, I want to add more Items to be backuped by this storage, how to be confirmed if that possible or not? I mean how do we know the capacity of... (7 Replies)
Discussion started by: arm
7 Replies

8. AIX

Directories getting 100% capacity

I am new to using AIX but ive ran into issues with 100% full and then rebooting and having a socket error repeating over and over. My question is, what can I do besides just monitoring to ensure I dont run into these issues? Scripts? anything? Thanks (3 Replies)
Discussion started by: terry.berger
3 Replies

9. AIX

FS capacity

can anyone tell me how to reduce Fs capacity by using echo zero. (3 Replies)
Discussion started by: nkchand
3 Replies
vdf(8)							      System Manager's Manual							    vdf(8)

NAME
vdf - Display disk information for AdvFS domains and filesets SYNOPSIS
/sbin/advfs/vdf [-k] [-l] domain | domain#fileset OPTIONS
Display disk blocks as 1024-byte blocks instead of the default of 512-byte blocks. When the -l option is specified, the default informa- tion for both the domain and filesets is reformatted to show the relationships between them. For example, any domain metadata displayed is the total metadata shared by filesets in the domain. OPERANDS
The full path name of an AdvFS file domain. When a domain argument is specified, the default display contains information about the number of disk blocks allocated to the domain, the number of disk blocks in use by the domain, and the number of disk blocks that are available to the domain. The name of an AdvFS fileset in an AdvFS file domain. When a domain#fileset argument is specified, the default display contains information about the number of disk blocks allocated to the fileset, the number of disk blocks in use by the fileset, and the number of disk blocks that are available to the fileset. This information is in the same format as that displayed by the df command. DESCRIPTION
The vdf utility is a script that reformats output from the showfdmn, showfsets, shfragbf, and df utilities in order to display information about the disk usage of AdvFS file domains and filesets. In addition, the utility computes and displays the sizes of metadata files in a domain or fileset. NOTES
The disk space used by clone filesets is not calculated. If clone filesets are present in the specified domain, the utility displays the following warning message: Clone fileset(s) in this domain; totals may not be accurate RESTRICTIONS
You must be the root user to use this command. The command cannot be used on filesets that are NFS mounted. All filesets in a domain must be mounted in order to calculate the disk usage of the domain. EXIT STATUS
The utility returns a value of 0 (zero) on successful completion. It returns a value of 1 on failure. EXAMPLES
The following example shows the summary information for a fileset named testfs in a domain named test. The output is the same as for the df command: # vdf test#testfs Filesystem 512-blocks Used Available Capacity Mounted on test#testfs 60000 20800 39200 35% /mnt The following example shows the summary information for a domain named usr_domain where the number of blocks used for meta- data and data equal 89% of the domain's capacity: # vdf usr_domain Domain 512-blocks Metadata Used Available Capacity usr_domain 65536 11219 47549 6768 89% The following example shows a detailed display of the domain that contains the fileset test#testfs. There are two filesets in the domain; each has a quota limit of 60,000 blocks: # vdf -l test#testfs Domain 512-blocks Metadata Used Available Capacity test 266240 5824 29128 231288 13% Fileset QuotaLimit Used Available Capacity testfs 60000 20800 39200 35% testfs2 60000 8328 51672 14% The following example shows a detailed display of a fileset that is the only fileset in the domain and that the fileset has a quota limit that is greater than the domain can hold: # vdf -l test#testfs Domain 512-blocks Metadata Used Avail- able Capacity test 266240 5824 29128 231288 13% Fileset QuotaLimit Used Available Capacity testfs 300000 20800 231288 8% FILES
SEE ALSO
Commands: df(1), showfdmn(8), showfsets(8), shfragbf(8) Files: advfs(4) vdf(8)
All times are GMT -4. The time now is 01:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy