LVM and VxVM

Identify internal/external disks and type of enclosures.

 
brian_31
Super Advisor

Identify internal/external disks and type of enclosures.

I am on a N class server and would like to identify internal external disks. I have cut and paste some info here..how do i identify if it has internal /external disks and if so what enclosures (FC10 or SC10)? Please help.Disk of intrest are from VG00..Info below..


# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t6d0
/dev/dsk/c2t6d0
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 1 0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 18.2GST318406LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 2 0/0/2/1.6.0 sdisk CLAIMED DEVICE HP 18.2GST318406LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0


disk 8 0/12/0/0.0.0 sdisk CLAIMED DEVICE HP 18.2GMAM3184MC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 9 0/12/0/0.1.0 sdisk CLAIMED DEVICE HP 18.2GMAM3184MC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0

last line from vgdisplay -v vg00

--- Physical volume groups ---
PVG Name pvg0
PV Name /dev/dsk/c1t6d0
PV Name /dev/dsk/c2t6d0

PVG Name pvg1
PV Name /dev/dsk/c4t0d0
PV Name /dev/dsk/c4t1d0

# ioscan -fnC ext_bus
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
ext_bus 0 0/0/1/0 c720 CLAIMED INTERFACE SCSI C895 Ultra Wide Single-Ended
ext_bus 1 0/0/2/0 c720 CLAIMED INTERFACE SCSI C875 Ultra Wide Single-Ended
ext_bus 2 0/0/2/1 c720 CLAIMED INTERFACE SCSI C875 Ultra Wide Single-Ended
ext_bus 3 0/8/0/0 c720 CLAIMED INTERFACE SCSI C895 Ultra2 Wide LVD
ext_bus 4 0/12/0/0 c720 CLAIMED INTERFACE SCSI C895 Ultra2 Wide LVD
ext_bus 5 1/2/0/0 c720 CLAIMED INTERFACE SCSI C895 Ultra2 Wide LVD

Thanks

Brian

2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: Identify internal/external disks and type of enclosures.

The N-class server (aka rp7400) has only two internal SCSI disk slots and no space for an internal CD-ROM.

To identify them, you need a document that tells you which hardware paths are built-in to the system and which are PCI cards.

See page 113 of the rp7400 Hardware Manual:
http://docs.hp.com/en/3687/rp7400_customer_hardwaremanual.pdf

The "PCI Device Information" table identifies the hardware paths 0/0/1/0, 0/0/2/0 and 0/0/2/1 as built-in SCSI controllers. The hardware paths form a structure similar to the directory tree of a filesystem, so the DVD-ROM with hardware path 0/0/1/0.1.0 is connected to SCSI controller 0/0/1/0. As there is no space for a DVD-ROM in the N-class chassis, this controller must be the one with the external connector on the Core I/O board.

The remaining two built-in SCSI controllers are 0/0/2/0 and 0/0/2/1. They have 1 disk each. As the controller of the external SCSI connector is already identified, these two must be for the internal SCSI buses.

So the disks 0/0/2/0.6.0 = /dev/dsk/c1t6d0 and 0/0/2/1.6.0 = /dev/dsk/c2t6d0 are the internal disks.

MK
MK
Tim Nelson
Honored Contributor

Re: Identify internal/external disks and type of enclosures.

The above info shows NO FC disk only SCSI.

Easy enough.

I use a script with some static information to help discover and format a report for disk usage. It is quite long but the initial phase is disk ID.

Example:
controller.file
0/1/1/0 INT
1/0/7/1 EXT or any desc you like.

Then use this list to find the device files, disk size, vg membership, lvol info, free space, and mount point.

Attached is example of the output.