how can i get hard disk usage


 
Thread Tools Search this Thread
Operating Systems HP-UX how can i get hard disk usage
# 1  
Old 11-08-2008
how can i get hard disk usage

I want to get hard disk usage

hard disk usage= already allocated/total allocated

first I use ioscan -kfnC disk get disk name c#t#d#

then I use diskinfo /dev/rdsk/c#t#d#
but this command can only get total disk size,not disk usage

has any command can get that

thanksSmilie
# 2  
Old 11-08-2008
have a look at "df and "du". read the manpages for more infos on how to use these commands.
# 3  
Old 11-08-2008
ioscan will tell you what disks are connected and diskinfo what they are..

what do you call disk usage? Are you in LVM?
If so are you wondering if you have some spare unused lv extents because there is difference between disk size and what you see with bdf?
Many cases:
1 - Swap: will not show up with bdf, df, du, but with swapinfo
2 - Unmounted FS or unused FS...
3 - Mirroring...
4 - Yes not all disk space is used

in this case free PP can be seen with vgdisplay /dev/<VGname>
man vgdisplay lvdisplay pvdisplay swapinfo

All the best
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies

2. BSD

Migrate a Hard Disk

hi Has anyone already tried to migrate a hard disk with FreeBSD using recoverdisk? (1 Reply)
Discussion started by: ccc
1 Replies

3. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

4. Emergency UNIX and Linux Support

Something is filling hard disk on its own.

I came in this morning to find that our mail server was down. Couldn't connect. I looked at logs. The logs complained about no space on device. I run df and it comfirms that the system disk (mounted on /) is at 100% capacity. I try to delete some files before attempting to look at cyrus. I rotate... (23 Replies)
Discussion started by: timgolding
23 Replies

5. SCO

declare disk driver for IDE hard disk

hi I've a fresh installation of SCO 5.0.7 on the IDE hard disk. For SCSI hard disk I can declare, for example blc disk driver using: # mkdev hd 0 SCSI-0 0 blc 0but it works for IDE hard disk? (3 Replies)
Discussion started by: ccc
3 Replies

6. UNIX for Dummies Questions & Answers

Hard Disk at 99% Help!

:eek: I use this Solaris to run CMS a call acounting software package for my job. No one could run reports today because it said the this when you logged on "The following file systems are low, and could adversely affect server performance: File system /: 99%full" Can some one please explain... (9 Replies)
Discussion started by: mannyisme
9 Replies

7. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

8. AIX

Hard disk usage is 100 Percent Busy for any command

hi, AIX 5.3 For any command(say tar command) I am getting 100% busy for my hdisk. But my CPU and Memory is not busy and have more idle also. Please advice for any performance analysing. Thanks in Advance, (3 Replies)
Discussion started by: npcrao
3 Replies

9. UNIX Desktop Questions & Answers

Hard Disk

I have a cuestion. How Can I to add other hard disk to my computer? I need to configurate anyone? (4 Replies)
Discussion started by: hmaraver
4 Replies

10. Filesystems, Disks and Memory

Divvy a hard disk

What is the general rule for a divvy of a hard disk, I know that the boot is 20 megs swap is times 2 of ram. I am learning unix for the first time and at work i cant get this divvy thing down pat yet. boot 1 to 19999 swap 20000 to 122499 (512 megs of ram) root 122500 to ? u ? u2 ? ... (1 Reply)
Discussion started by: DjWolfman
1 Replies
Login or Register to Ask a Question