Sponsored Content
Operating Systems Linux Red Hat How do i find free space in my unix? Post 302388543 by govindts on Wednesday 20th of January 2010 06:37:56 PM
Old 01-20-2010
How do i find free space in my unix?

Hello, I wanted to calculate free space in my unix file system. Here is my direction. I can use df -h command to get the below output.
Code:
Filesystem            Size  Used Avail Use% Mounted on
===================================================

/dev/vx/dsk/edcdg/data01vol
                       59G   51G  7.2G  88% /data01
/dev/vx/dsk/edcdg/data02vol
                       59G   52G  6.9G  89% /data02
/dev/vx/dsk/edcdg/data03vol
                       59G   52G  6.7G  89% /data03
/dev/vx/dsk/edcdg/data04vol
                       59G   51G  7.2G  88% /data04
/dev/vx/dsk/edcdg/data05vol
                       59G   49G  9.8G  84% /data05
/dev/vx/dsk/edcdg/data06vol
                       59G   50G  8.9G  85% /data06
/dev/vx/dsk/edcdg/data07vol
                       59G   53G  6.1G  90% /data07
/dev/vx/dsk/edcdg/data08vol
                       59G   52G  6.8G  89% /data08
/dev/vx/dsk/archdg/arch01vol
                       59G  489M   55G   1% /dbArch
/dev/vx/dsk/workdg/work01vol
                      176G   40G  128G  24% /work
/dev/vx/dsk/orasysdg/orasysvol1
                       51G   33G   18G  65% /orasys
/dev/vx/dsk/undodg/undovol1
                       51G  8.1G   41G  17% /undo
/dev/vx/dsk/redodg/redovol1
                       21G  820M   19G   5% /redo01
/dev/vx/dsk/redodg/redovol2
                       21G  820M   19G   5% /redo02
/dev/vx/dsk/redodg/redovol3
                       21G  820M   19G   5% /redo03

===============================================

In each file system, in the AVAIL column, i need to minus 10% and find the grand total. That will be the free space in my server..


How do i do this? I thought of moving this whole output to excel file and deduct 10% from Avail column. But i am not able to move the unix output to excel with correct format.

Last edited by Scott; 01-20-2010 at 07:44 PM.. Reason: Added code tags
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Does unix ever misreport free space?

Hi all, Does unix ever misreport free space? We're having a problem running a utility, and the error message looks for all the world like the utility has no free space for its work files: HOST ERROR(D10681C). No space left on device. But the device itself shows ample free space. ... (3 Replies)
Discussion started by: JustKen
3 Replies

2. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies

3. Shell Programming and Scripting

display free space on a unix server

I need to display the amount space avalible on a unix server in an html webpage, which will automatically update every hour. I am able to do so using a javascript in a windows based server. How would i go about doing this in a unix server. Any help, suggestions, anything would be great. thanks. (3 Replies)
Discussion started by: davwel
3 Replies

4. UNIX for Dummies Questions & Answers

How to find the free space & usage of the particular directory in Hp-Unix?

How to find the free space & usage of the particular directory in Hp-Unix? I want to see the usage in % (2 Replies)
Discussion started by: bobprabhu
2 Replies

5. Shell Programming and Scripting

find the free space of a particular directory

Hi Guys, I want to find the free space of a particular directory,, Regards, Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies

6. UNIX for Dummies Questions & Answers

free space, used space in ftp

Is possible to see how much available space there is on a ftp server and how much is used through ftp ? how ? free space: used space: thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

7. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

8. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

9. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies
df_ufs(1M)						  System Administration Commands						df_ufs(1M)

NAME
df_ufs - report free disk space on ufs file systems SYNOPSIS
df -F ufs [generic_options] [-o i] [directory | special] DESCRIPTION
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. OPTIONS
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. FILES
/etc/mnttab list of file systems currently mounted ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu, SUNWxcu4 | +-----------------------------+-----------------------------+ SEE ALSO
df(1M), fsck(1M), fstyp(1M), tunefs(1M), mnttab(4), attributes(5), ufs(7FS), NOTES
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). SunOS 5.11 25 Feb 2005 df_ufs(1M)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy