Operating System - HP-UX
1833788 Members
2507 Online
110063 Solutions
New Discussion

Physical Disk information

 
Mark Nelson_2
Advisor

Physical Disk information

Me: limited unix abilities. Enough to be dangerous but striving to learn more.

Problem:
Need to find out what the physical sizes are of the disks installed internally to this HP 9000 HP-UX 11i system and what is installed in the external array with out downing the system.

bdf returns me wonderful lvol information but I need physical disk size info.

What command(s) can I run to get this information?

Thank you in advance!

Mark Nelson
7 REPLIES 7
S.K. Chan
Honored Contributor

Re: Physical Disk information

For standalone disk. First find out the device path ..
# ioscan -fnC disk
Then just run .. (example say c2t6d0)
# /etc/diskinfo /dev/rdsk/c2t6d0

For diskarray, usually the above reflects the size of a LUN, not necessarily the size of individual disk in the array.
Stefan Farrelly
Honored Contributor

Re: Physical Disk information

SAM will tell you. run sam and go to disk and filesystems.

or; ioscan -fknCdisk

will list all disk devices, to see the size of each; diskinfo /dev/rdsk/cxxxxxx
Im from Palmerston North, New Zealand, but somehow ended up in London...
melvyn burnard
Honored Contributor

Re: Physical Disk information

use diskinfo on hte raw physical device
e.g. diskinfo /dev/rdsk/c0t6d0
should give your root disk.
dont use the vgxx files.
to look what device files to use, do
ioscan -funCdisk and this will reveal all hte device files for your disks

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: Physical Disk information

Mark:

Use:

# ioscan -fnC disk

...to identify physical devices

# diskinfo /dev/rdsk/cXtYdZ

...will return physical size

# pvdisplay /dev/dsk/cXtYdZ

...will show used and free amount of disk associated with LVM ('pvcreate'd)

# vgdisplay -v

...will show all LVM volume groups with logical volumes *and* associated physical devices *including* which devices (disk) are alternate (pv)links.

# bdf

...summarizes mountpoints and logical volumes

Regards!

...JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: Physical Disk information

ioscan
sam--->disks and filesystems
print_manifest ( if you have ignite )
xstm , or cstm



Manoj Srivastava
Robert-Jan Goossens
Honored Contributor

Re: Physical Disk information

Hi Mark,

# ioscan -fnCdisk
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST39103LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 3 0/4/0/0.3.0 sdisk CLAIMED DEVICE SEAGATE ST318436LC
/dev/dsk/c5t3d0 /dev/rdsk/c5t3d0


ST39103LC for instance is

ST = Seagate Technology
3 = 3.5 inch
9103 = size in mb

ST318436LC

ST = Seagate Technology
3 = 3.5 inch
18436 = size in mb

Kind regards,

Robert-Jan.
Mark Nelson_2
Advisor

Re: Physical Disk information

Wow!

Thank you all very much.
The more interesting part for me was that I was actually able to understand your replies and apply them!

Its amazing what hands on and needing know will teach ya!

Again, thanks for all the replies!

Mark Nelson