1748288 Members
3282 Online
108761 Solutions
New Discussion юеВ

finding internal disk

 
balaji_vvv
Frequent Advisor

finding internal disk

How can we differentiate an internal and external drive? I have a server in a remote location, i want to know the disk is external or internal and also what type of raid its configured? Is it possible to find especially with print_manifest command. I have PA-RISC proc running 11iv1.

Thanks

19 REPLIES 19
R.K. #
Honored Contributor

Re: finding internal disk

Hello Balaji,

If you have the block diagram of the server, you can look for the HW address of the drives and make out which drive is internal/external.


Regds..

Don't fix what ain't broke
TTr
Honored Contributor

Re: finding internal disk

> I have PA-RISC proc...

Which model exactly? You need the backplane geometry of the server model and observe where the hardware paths are. (the hardware paths look like /0/0/1/2/0.0.1.0). Then you match the hardware path with a device file from the ioscan listing. If you have online diags installed (STM) you can also run the STM tool.
balaji_vvv
Frequent Advisor

Re: finding internal disk

i have variety of servers there with N4000, L2000 etc. Can you explain me more clearly? I dont understand?
R.K. #
Honored Contributor

Re: finding internal disk

Hi Again,

This might help.

Regds..
Don't fix what ain't broke
BUPA IS
Respected Contributor

Re: finding internal disk

Hello,
I would start with ioscan -fn
this lists all the devices and their paths, and in most cases the make and model of the disks.
The path to physical slot tables are in the hardware manuals for each server.

As indicated above the stm command will give you more detail about the cards installed and their location in the machine.
If the disks are plain disks (jbod) then the lvm commands such as vgdisplay -v and lvdisplay will give you the groupings logical volume and mirroring settings.
If the disks are external arrays with the raid recovery managed inside the array then you will have to use the commands and tools relevant to the particular disk array to get the low level details.
The lvm commands will still show how the luns are used by the logical volumes and the operating system .

Mike
Help is out there always!!!!!
Torsten.
Acclaimed Contributor

Re: finding internal disk

The attachement of R.K.# lists all the I/O pathes, this means external devices.

If you attach an "ioscan -fn" let's say from an L-class I can tell you most of the things you want to know.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raj D.
Honored Contributor

Re: finding internal disk

Balaji,
Check this out:
This scans the internal scsi paths and finds the internal hardisks on the system.

find_int_disks_on_hpux_11iv1.v2.v3.sc


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Torsten.
Acclaimed Contributor

Re: finding internal disk

@Raj D.:
I currently have no system to test, but I wonder how you decide between internal and external disks - do you have a sample output and an ioscan?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
BUPA IS
Respected Contributor

Re: finding internal disk

@Raj D.:
Your script needs more work.

I have tried it on a my rp3440 which has three internal disks the first two are in vg00 which it finds , It fails to place the third in vg01 and then places two external disks also in vg01 into vg00.
It also fails to detect the NEC DVD RW drive.

balaji
As Torsten says if you are able to post the ioscan -fn we can try and help

Mike
Help is out there always!!!!!