Sponsored Content
Full Discussion: Calculating Disc Space
Special Forums Hardware Filesystems, Disks and Memory Calculating Disc Space Post 22476 by Docboyeee on Tuesday 4th of June 2002 02:39:54 PM
Old 06-04-2002
Thank you for the script, however, what I am looking for.. is the following:

I want to translate 1k blocks into kilobytes or megabytes.

Or rather I want to take the number and calculate the disk space in megabytes or gigabytes.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Calculating Disc Space

I need some help in determining disc space. I ran the following commands on my IBM RS6000 server and this is what I get # dfspace Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 19832 40% 1225 15% / /dev/hd2 802816 277256 66% ... (2 Replies)
Discussion started by: Docboyeee
2 Replies

2. Shell Programming and Scripting

Scripts for calculating size and remaining space of a directory automatically.

I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin. * POSIX and PERL are preferred. Can anyone help, please? (1 Reply)
Discussion started by: leonall
1 Replies

3. Filesystems, Disks and Memory

calculating disk space for growth

what's the best way to calculate the raw disk space in format. the system is a Solaris system using EMC disks- df -k will give me what's used plus available.Now I need the total disk space that the system is using/assigned. Which means I must inventory the raw disks in format. the system uses... (6 Replies)
Discussion started by: sholiver
6 Replies

4. Filesystems, Disks and Memory

Calculating Drive Space Increase

I trying to calculate drive space with RAID. I know the equation is: (n-1)/n * drive capacity but, when I use that my calculations don't come out when I compare to what I already know exists: I have 3 - 18.2gb SCSI drives that contain two logical drives C & D. Using the math, (3-1)/3 * 18.2... (1 Reply)
Discussion started by: JTalbot017
1 Replies

5. Filesystems, Disks and Memory

calculating the filesystem space

Hi, Just wanted to confirm that what Im doing is correct to calculate the space allocated to filesystem: >df -k . Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /test 48720000 9337904 81% 14846 1% /home The space allocated = 48720000/1024 =... (1 Reply)
Discussion started by: deepakgang
1 Replies

6. Shell Programming and Scripting

Calculating server space

I am Connected With 4 servers I want to check the free space available in each server HOW to do this ? Edit/Delete Message (3 Replies)
Discussion started by: pranabrana
3 Replies

7. Shell Programming and Scripting

Calculating server space

I am Connected With 4 servers I want to check the free space available in each server HOW to do this ? (8 Replies)
Discussion started by: pranabrana
8 Replies

8. Emergency UNIX and Linux Support

Calculating total space in GB for all files with typical pattern

Hi Experts, In a particular dir, I have many files *AJAY*. How can I get total size of all such files. I tried du -hs *AJAY* but it gave me individual size of all files. All I require is summation of all. Thanks, Ajay (4 Replies)
Discussion started by: ajaypatil_am
4 Replies

9. Shell Programming and Scripting

Disc space issues and purging of files

Hi All, I am looking forward to create a unix shell script to purge the files. The requirement is: 1) Do df -k and check the current space occupied for the /a1 folder. 2) If the space consumed is greater than 90 %, delete all the DEF* files from a subfolder /a1/archive. Example: df... (4 Replies)
Discussion started by: shilpa_acc
4 Replies

10. Shell Programming and Scripting

How to Calculating space used in GB for any particular directory in UNIX?

How to Calculating space used in GB for any particular directory in unix Currently I am using : df -h which gives me space for each mout point ldndyn1:/vol/v01/dyn/sbcexp/dyn 1.1T 999G 29G 98% /sbcimp/dyn but I need for some internal particular directory... (3 Replies)
Discussion started by: RahulJoshi
3 Replies
NFSIOSTAT(1)							Linux User's Manual						      NFSIOSTAT(1)

NAME
nfsiostat - Report input/output statistics for network filesystems (NFS). SYNOPSIS
nfsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ interval [ count ] ] DESCRIPTION
The nfsiostat command displays statistics about read and write operations on NFS filesystems. The interval parameter specifies the amount of time in seconds between each report. The first report contains statistics for the time since system startup (boot). Each subsequent report contains statistics collected during the interval since the previous report. A report con- sists of an NFS header row followed by a line of statistics for each network filesystem that is mounted. The count parameter can be speci- fied in conjunction with the interval parameter. If the count parameter is specified, the value of count determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the nfsiostat command generates reports continuously. REPORT
The Network Filesystem (NFS) report provides statistics for each mounted network filesystem. Transfer rates are shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used. The report shows the following fields: Filesystem: This columns shows the hostname of the NFS server followed by a colon and by the directory name where the network filesystem is mounted. rBlk_nor/s (rkB_nor/s, rMB_nor) Indicate the number of blocks (kilobytes, megabytes) read by applications via the read(2) system call interface. A block has a size of 512 bytes. wBlk_nor/s (wkB_nor/s, wMB_nor/s) Indicate the number of blocks (kilobytes, megabytes) written by applications via the write(2) system call interface. rBlk_dir/s (rkB_dir/s, rMB_dir/s) Indicate the number of blocks (kilobytes, megabytes) read from files opened with the O_DIRECT flag. wBlk_dir/s (wkB_dir/s, wMB_dir/s) Indicate the number of blocks (kilobytes, megabytes) written to files opened with the O_DIRECT flag. rBlk_svr/s (rkB_svr/s, rMB_svr/s) Indicate the number of blocks (kilobytes, megabytes) read from the server by the NFS client via an NFS READ request. wBlk_svr/s (wkB_svr/s, wMB_svr/s) Indicate the number of blocks (kilobytes, megabytes) written to the server by the NFS client via an NFS WRITE request. ops/s Indicate the number of operations that were issued to the filesystem per second. rops/s Indicate the number of 'read' operations that were issued to the filesystem per second. wops/s Indicate the number of 'write' operations that were issued to the filesystem per second. OPTIONS
-h Make the NFS report easier to read by a human. -k Display statistics in kilobytes per second. -m Display statistics in megabytes per second. -t Print the time for each report displayed. The timestamp format may depend on the value of the S_TIME_FORMAT environment variable (see below). -V Print version number then exit. ENVIRONMENT
The nfsiostat command takes into account the following environment variables: S_TIME_FORMAT If this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header. The nfsiostat command will use the ISO 8601 format (YYYY-MM-DD) instead. The timestamp displayed with option -t will also be com- pliant with ISO 8601 format. POSIXLY_CORRECT When this variable is set, transfer rates are shown in 512-byte blocks instead of the default 1K blocks. BUG
/proc filesystem must be mounted for nfsiostat to work. FILE
/proc/self/mountstats contains statistics for network filesystems. AUTHORS
Written by Ivana Varekova (varekova <at> redhat.com) Maintained by Sebastien Godard (sysstat <at> orange.fr) SEE ALSO
sar(1), pidstat(1), mpstat(1), vmstat(8), iostat(1), cifsiostat(1) http://pagesperso-orange.fr/sebastien.godard/ Linux JANUARY 2011 NFSIOSTAT(1)
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy