Home » Infrastructure » Unix » Get spare hard disk??
Get spare hard disk?? [message #125723] Tue, 28 June 2005 21:32 Go to next message
vinnahang
Messages: 11
Registered: March 2005
Junior Member
I have to know the spare hard disk of a server.

1)
I have tried "df -k", there is a column "avail", is that I sum up all the avail value in each line is equal to the spare hard disk?

2)
I have tried "du -k", there is a value in the first column, is that one is the disk space used??

3)
Actually, I just want to get the space hard disk size, what can I do?
Re: Get spare hard disk?? [message #125735 is a reply to message #125723] Wed, 29 June 2005 00:42 Go to previous messageGo to next message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
hi

1. Sample df -k output on linux:

[root@linux1 db2admin]# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda5 8064272 2349436 5305184 31% /
/dev/hda1 101089 3485 92385 4% /boot
/dev/hda7 5044156 1162328 3625596 25% /home
/dev/hda6 5747912 1445356 4010580 27% /var


Here Filesystem is the parttion u have got on ur HDDs.
1k-Blocks is total size of partition in KBs
Used: Used space in KBs
Available: Free Space in KBs
USE%: % Space used
Mounted on: Directory on which partition is mounted.

2. du -k

Yers thats the value of space used on that directory againts which this value is specified

eg:
12 ./.kde/Autostart
16 ./.kde
24 ./Desktop
30664 ./software_setup


3. To check HDD size use format command in Unix

Regds
Girish
Re: Get spare hard disk?? [message #126279 is a reply to message #125723] Sat, 02 July 2005 15:07 Go to previous message
Steve Callan
Messages: 44
Registered: January 2004
Member
man df
man du
Previous Topic: Component oracle.swd.jre 1.1.8.10.0. not found while installing oracle 9i Application server in Win2
Next Topic: Oracle 817, Solaris 8, Out of memory, ORA-27102
Goto Forum:
  


Current Time: Fri Nov 29 09:14:24 CST 2024