How to check total allocated external disk in unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to check total allocated external disk in unix
# 1  
Old 09-05-2008
How to check total allocated external disk in unix

hi guys im new here, would like to ask what is the syntax or how could i check the total allocated external disk in HP-UX???

ive check the allocated size using SAM, but in some servers the SAM hangs when checking the disk space. So i would like to know using command line.

thanks
# 2  
Old 09-05-2008
Because of multi-pathing it may not be very straightforward. Are you using Veritas Volume Manager or LVM to manage these disks? If so, it may be best to use the utilities provided with those volume managers to collect the information.

If there is no multipathing you could use something like this:

Code:
ioscan -fun | awk '$1=="disk" && !/ROM/{getline;print "diskinfo -v "$2}' | sh | awk '/size:/{print;tot+=$2} END { print "total: " tot }'

But I can't vouch for the accuracy of the results. You really need to have a fairly intimate knowledge of the storage that your system is attached to to know how to calculate the free space.
# 3  
Old 09-08-2008
diskinfo: Character device required
diskinfo: Character device required
size: 104857600 Kbytes
diskinfo: can't SIOC_INQUIRY /dev/rdsk/c18t0d1: I/O error
size: 104857600 Kbytes
diskinfo: can't SIOC_INQUIRY /dev/rdsk/c19t0d1: I/O error
size: 104857600 Kbytes
diskinfo: can't SIOC_INQUIRY /dev/rdsk/c20t0d1: I/O error
size: 104857600 Kbytes
diskinfo: can't SIOC_INQUIRY /dev/rdsk/c21t0d1: I/O error
total: 4.1943e+08

sir it brings me this report.

my officemate told me just to run vgdisplay -v vg01, compute for the total pe x alloc pe then less total used disk. but result still not accurate
# 4  
Old 09-08-2008
Yes, vgdisplay will let you calcolate the free space - not sure your colleague's mathematics are quite right though. Maybe he meant "Free PE" x "PE Size (Mbytes)".

But of course that will not include any disks that are not added to vg01 (i.e. unallocated, or belonging to other volume groups, or managed by other volume management software such as Veritas Volume Manager). As I said before, you need to have a fairly intimate knowledge of the way your storage is configured to make these calculations.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

How to check overall hard disk utilization in UNIX?

how to check overall hard disk utilization in unix? we use bdf command to find the utilized space for the particular path bdf filepath how can i find overall hard disk utilization? (4 Replies)
Discussion started by: ashwanthfrq
4 Replies

2. AIX

Topas total Disk Busy %

Hi Everyone, anyone know how to derive the value for the total disk busy % (shown in topas ) ? Thanks. Best Regards, ckwan (1 Reply)
Discussion started by: ckwan
1 Replies

3. Hardware

Unrecognized disk label of a external HD

I have a external HD that I can't seem to open. When I try to open it with gparted it says unrecognized disk. When I run gparted from the terminal this is what it says. ~ $ sudo gparted ====================== libparted : 2.2 ====================== /dev/sdb: unrecognised disk label When I... (18 Replies)
Discussion started by: cokedude
18 Replies

4. Linux

External disk

Hi, I connected a external hard disk to my linux machine(Redhat 5) and shared the external hard disk by using NFS. The problem is hard disk becoming read-only file system after some time, could some one please tell me the reason for it. I created two partitions with ext3 filesystem in... (10 Replies)
Discussion started by: ktrimu
10 Replies

5. UNIX for Dummies Questions & Answers

How to find the disk space allocated.

Hello, I need to find the total allocated disk space for the home directory. How can i find that in unix?(in GB). Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies

6. UNIX for Advanced & Expert Users

How to check total disk usage ?

Hi.. What is the command to check total disk usage for specific directory in MG/GB/Byte ? As example i want to check disk usage for directory pproc ? Please help me.. Thank you, Baharin (3 Replies)
Discussion started by: bh_hensem
3 Replies

7. Filesystems, Disks and Memory

internal disk and external disk question

Hello, We are running sun solaris and it is connected to SAN storage. How do I find what are the disks are internal and what are the disks are connected to SAN? (0 Replies)
Discussion started by: mokkan
0 Replies

8. HP-UX

Can't access external disk after reboot

Hi, I have an HP RX4640 running HP-UX 11iv3 with two internal disks and its connected to a HP disk system 2400 with fibre cable. If the storage system is online before the server is on then the server can't find the disks. And I get the following error messages: vgchange: Warning: Couldn't... (3 Replies)
Discussion started by: hoff
3 Replies

9. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

Hi All, Will df+du=Total space allocted for a file system?? Is the above correct. Please correct me If iam wrong. In one my programs the above is not happening. Please help me out. Many thanks. Regards, Manas (2 Replies)
Discussion started by: manas6
2 Replies

10. UNIX for Dummies Questions & Answers

Install a new disk - i'm a total novice

Hi, This is the last of my two questions. Unfortunately i'm a total unix/solaris novice and our current solaris project has landed on my lap!! Sorry to bother you all!!! I currently have a solaris 7 system with two IDE disks in it. I need to add a third disk and install another version of... (3 Replies)
Discussion started by: AJD
3 Replies
Login or Register to Ask a Question