Operating System - HP-UX
1834875 Members
2355 Online
110070 Solutions
New Discussion

Internal Disk sizes no external

 
Midrange Systems Unix
Occasional Contributor

Internal Disk sizes no external

I know that if I run the diskinfo command on a HPUX system I will recieve disk information. I need to write a script that will only pick up disk info on internal disks and not get any information on any of the external disks on the server. If I use ioscan i can only get the harware adress and the disk type if I exclude external disks. Let me know if you hav Lan awnser.
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Internal Disk sizes no external

You will need to have your script identify the internal BUS's for each type of server.

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: Internal Disk sizes no external

There is really no way to do this in a portable, non-specific way. Even using hardware paths is "iffy" because on some boxes the internal SCSI bus also has an external connection so that there is no way to determine if such a disk is external or internal.

If it ain't broke, I can fix that.
Chris Vail
Honored Contributor

Re: Internal Disk sizes no external

If you have more than one volume group, one for internal disks, and another for external disks, this would be your best approach to differentiating between them. If they're all in the same volume group, I can't think of a easy way to separate them. The SCSI protocols don't really differentiate between internal and external. It is entirely ordinary to have both internal and external disks on the same SCSI chain.


Chris