03-05-2009
reading the df manpage will also help. It displays the amount of space used.
10 More Discussions You Might Find Interesting
1. Programming
hi, everyone
Can anybody tell me how to get free blocks and total blocks of filesystem in c.
I am working on a hp-unix
Thanks in advance. (8 Replies)
Discussion started by: mika
8 Replies
2. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
3. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
4. Solaris
Hi all,
currently , my root filesystem already reach 90 ++%
I already add more cylinder in the root partition as below
Part Tag Flag Cylinders Size Blocks
0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300
1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies
5. Shell Programming and Scripting
Hey guys I am learning Linux and I am working on script for a college class project to check usage of file system. I pulled this from a different site but have to tweak it a little to work but I still get errors. Here is what I got so far.
ALERT=5
function main_prog() {
while read output;... (1 Reply)
Discussion started by: jcsx6245
1 Replies
6. Shell Programming and Scripting
Hi All,
I need to display the output of rah "df -m" only for the filesysytems those are touching or crossing 80%. Im using SuSE Linux box and the output of original rah command is-
/dev/NODE0001
557900 446681 83319 75% /db2fs/NODE0001
/dev/NODE0002
... (5 Replies)
Discussion started by: NARESH1302
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies
8. AIX
Dear all,
We are facing prolem when we are going to mount AIX filesystem, the system returned the following error
0506-307The AFopen call failed
: A file or directory in the path name does not exist.
But when we ls filesystems in the /etc/ directory it show
-rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies
9. Solaris
I have a query someone may be able to shed some light on...
We have a Solaris 10 OS Sun V490 server Sparc.
I have a SAN attached EMC Clarrion LUN which we have app data stored on.
Pseudo name=emcpower0a
CLARiiON ID=CK200070300470
Due to storage requirements - I need to migrate this... (4 Replies)
Discussion started by: ru4n1
4 Replies
10. Shell Programming and Scripting
I want to see top 5 users,who have occupied most amount of disk space in a filesystem.
But not sure how to do it.
I can get the usage for a particular user
find . -user user -type f exec df -h {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }'
But how to get without specifying any user... (6 Replies)
Discussion started by: rka
6 Replies
df_ufs(1M) df_ufs(1M)
NAME
df_ufs - report free disk space on ufs file systems
SYNOPSIS
df -F ufs [generic_options] [ -o i] [directory | special]
df displays the amount of disk space occupied by ufs file systems, the amount of used and available space, and how much of the file sys-
tem's total capacity has been used.The amount of space reported as used and available is less than the amount of space in the file system;
this is because the system reserves a fraction of the space in the file system to allow its file system allocation routines to work well.
The amount reserved is typically about 10%; this can be adjusted using tunefs(1M). When all the space on the file system except for this
reserve is in use, only the superuser can allocate new files and data blocks to existing files. When the file system is overallocated in
this way, df might report that the file system is more than 100% utilized.If neither directory nor special is specified, df displays infor-
mation for all mounted ufs file systems.
The following options are supported:
generic_options Options supported by the generic df command. See df(1M) for a description of these options.
-o Specify ufs file system specific options. The available option is:
i Report the number of used and free inodes. This option can not be used with generic_options.
/etc/mnttab list of file systems currently mounted
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu, SUNWxcu4 |
+-----------------------------+-----------------------------+
df(1M), fsck(1M), fstyp(1M), tunefs(1M), mnttab(4), attributes(5), ufs(7FS),
df calculates its results differently for mounted and unmounted file systems. For unmounted systems, the numbers reflect the 10% reserva-
tion. This reservation is not reflected in df output for mounted file systems. For this reason, the available space reported by the generic
command can differ from the available space reported by this module.
df might report remaining capacity even though syslog warns filesystem full. This issue can occur because df only uses the available frag-
ment count to calculate available space, but the file system requires contiguous sets of fragments for most allocations.
If you suspect that you have exhausted contiguous fragments on your file system, you can use the fstyp(1M) utility with the -v option. In
the fstyp output, look at the nbfree (number of blocks free) and nffree (number of fragments free) fields. On unmounted filesystems, you
can use fsck(1M) and observe the last line of output, which reports, among other items, the number of fragments and the degree of fragmen-
tation. See fsck(1M).
25 Feb 2005 df_ufs(1M)