Operating System - HP-UX
1753759 Members
5096 Online
108799 Solutions
New Discussion юеВ

Re: finding internal disk

 
Raj D.
Honored Contributor

Re: finding internal disk

Mike,thx for checking. Earlier i tested it on a rx86xx and it was ok as there was no scsi external disk but FC disks and internal disks. Yeh needs more work on that.

Balaji pls post ioscan -fnC disk & ioscan output . and it will be figured out easily.

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

Re: finding internal disk

Raj, IMHO your scripts assumes there are all external drives on fibre, hence it says all SCSI, RAID or SAS drives are internal, right?

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!   
Hakki Aydin Ucar
Honored Contributor

Re: finding internal disk

first try to get info from

# ioscan -fnCdisk

then note all disk character device file name
then try this:

# diskinfo -v /dev/rdsk/cxtxdx to get more information and obtain an eye sight to which one is external. .
Hakki Aydin Ucar
Honored Contributor

Re: finding internal disk

OR easier way to differentiate (if you use Xmanager GUI ) directly go to support tool manager GUI: (first export DISPLAY=your_xmanager_display )

# stm
Torsten.
Acclaimed Contributor

Re: finding internal disk

There is only one 100% way to find out:

Consult the servers manual and look up the hardware path for a specific slot or disk!

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!   
TTr
Honored Contributor

Re: finding internal disk

A script such as the above can not work for all servers and HP-UX versions. It would have to account for all i/o buses and types of controllers.

And there are controllers that have both internal and external connectors on the same bus so there is no telling which disk is internal or external.
Torsten.
Acclaimed Contributor

Re: finding internal disk

The rp3440 is really a nice example for this.

The upper internal disk is sharing the bus with the external connector.

If you find a disk with a SCSI ID other than 2 on this "special" bus, it is external - a disk with ID 2 is internal. A lovely cause for issues ...


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

Tr, You are right, all scsi , sas , raid may not be be interanl,
fyi..I had rx6600 with raid and Serial Attached scsi controller with 16 Internal Serial attached disk,

And so there cannot be a single general script for this task, best way it needs to be figured out manualy from ioscan, diskinfo output(s).

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
balaji_vvv
Frequent Advisor

Re: finding internal disk

Thanks guys. I'm off yesterday. I will check it today.
BUPA IS
Respected Contributor

Re: finding internal disk

Hello,
All of the above is also greatly assisted by the eyeball utility. Balaji If you can get somebody to have a look at the physical arrangements for you and describe what they see this should assist you.
Mike

Help is out there always!!!!!