Operating System - HP-UX
1834814 Members
3173 Online
110070 Solutions
New Discussion

Re: idenfying a disk as internal/external

 
Shakeer_1
Occasional Advisor

idenfying a disk as internal/external

Hi,

How do i identify remotely a disk as internal or external (from storage box) which is connected to my system (HP-UX 11). Your response will be appreciated.

Thanks in advance
Shakeer
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: idenfying a disk as internal/external

That will depend on the Hardware path and/or the type of external disks.

For example, if EMC disks, and ioscan will show:

disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 1/0/1/0/0/1/1.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 2 1/0/4/0/0.3.20.0.0.0.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c56t0d0 /dev/rdsk/c56t0d0
disk 3 1/0/4/0/0.3.20.0.0.0.1 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c56t0d1 /dev/rdsk/c56t0d1
disk 4 1/0/4/0/0.3.20.0.0.0.2 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c56t0d2 /dev/rdsk/c56t0d2


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Stuart Abramson
Trusted Contributor

Re: idenfying a disk as internal/external

shakeer:

1. As pointed out above, if the ioscan says "EMC Symmetrix" then you know it's external, because the EMC is external.

2. If the type of disk is HP 36.4, it MIGHT be internal.

3. Depending on the model, you can tell the internal drives from the address of the card. Notice in the above example that the card address is shorter on the internal disks:

1/0/0/3/0........Internal

1/0/1/0/0/1/1.....External

4. Instance number "0" (as in disk address "c0") usually means internal, because instance numbers are assigned in the order in which the OS finds the disks on boot - i.e. - the 1st time he boots he finds c0 and c1 because they are internal. He won't find the EMC until later, after they are connnected, so they get instance numbers like "c56".

5. But the best way is to go look at the cables.
Stuart Abramson
Trusted Contributor

Re: idenfying a disk as internal/external

Hey, I was wrong:

1/0/1/0/0/1/1 is the 2nd path to the internal.

Forget that!
Stuart Abramson
Trusted Contributor

Re: idenfying a disk as internal/external

Here is mine on an L3000:

Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE HP 18.2GMAN3184MC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 18.2GMAN3184MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 18.2GMAN3184MC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 3 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 18.2GMAN3184MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 4 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 3
05
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 5 0/10/0/0.99.41.19.0.0.0 sdisk CLAIMED DEVICE EMC
SYMMETRIX
/dev/dsk/c21t0d0 /dev/rdsk/c21t0d0
disk 6 0/10/0/0.99.41.19.0.0.1 sdisk CLAIMED DEVICE EMC
SYMMETRIX
/dev/dsk/c21t0d1 /dev/rdsk/c21t0d1
disk 7 0/10/0/0.99.41.19.0.0.2 sdisk CLAIMED DEVICE EMC
SYMMETRIX
/dev/dsk/c21t0d2 /dev/rdsk/c21t0d2
disk 8 0/10/0/0.99.41.19.0.0.3 sdisk CLAIMED DEVICE EMC
A. Clay Stephenson
Acclaimed Contributor

Re: idenfying a disk as internal/external

There is really no reliable way to do this and on some boxes it is truly impossible because a single SCSI bus might contain both internal and external devices. SCSI ID's are not a dependable indicator.

You really have to know your box and often even knowing the model still won't be enough because the answer is "it depends".
If it ain't broke, I can fix that.
Alzhy
Honored Contributor

Re: idenfying a disk as internal/external

I agree to "it depends" but GENERALLY, the Disk ID string will dictate if its external or not. Most well known external "disks" (aka LUNS) will have the vendor string in them .. ie. HSV, EMC, HIT... If the vendor string is HP, SEAGATE, FUJITSU and the very obvious AND their hardware paths ARE on the coreIO bus (either 0/0/0 o 1/0/0) - then they are certainly Internal Disks or "Hot Pluggable" disks.
Hakuna Matata.
Todd McDaniel_1
Honored Contributor

Re: idenfying a disk as internal/external

Actually if you have any EMC tools loaded...Like inq or syminq, It is very easy to see what are local and EMC disks.

Here is my output from one of my boxes.

hostname-root:/root
# head -30 inq.out
Inquiry utility, Version 5.51
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.
-----------------------------------------------------------------------------
DEVICE :VEND :PROD :REV :SER NUM :CAP(kb)
-----------------------------------------------------------------------------
/dev/rdsk/c0t2d0 :HP :DVD-ROM 304 :2.00 : 1999/10 :1
/dev/rdsk/c4t5d0 :SEAGATE :ST39175LC :HP07 :3AL05JPG :8891557
/dev/rdsk/c3t4d0 :SEAGATE :ST39175LC :HP07 :3AL0FA4C :8891557
/dev/rdsk/c3t6d0 :SEAGATE :ST39175LC :HP07 :3AL0LCVY :8891557
/dev/rdsk/c4t6d0 :SEAGATE :ST39175LC :HP07 :3AL0X8K8 :8891557
/dev/rdsk/c3t5d0 :SEAGATE :ST39175LC :HP07 :3AL0Z365 :8891557
/dev/rdsk/c4t4d0 :SEAGATE :ST39236LC :HP02 :3BN09X6A :8891557


/dev/rdsk/c46t0d3 :EMC :SYMMETRIX :5267 :68019000 :8838721
/dev/rdsk/c64t0d3 :EMC :SYMMETRIX :5267 :68019000 :8838721
/dev/rdsk/c46t0d4 :EMC :SYMMETRIX :5267 :6801A000 :8838721
/dev/rdsk/c64t0d4 :EMC :SYMMETRIX :5267 :6801A000 :8838721


Unix, the other white meat.