Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

E450 disk slot number mapping to logical or physical device name

0 views
Skip to first unread message

David G. Humes

unread,
Sep 4, 2001, 6:03:29 PM9/4/01
to
Hello,

The Ultra Enterprise 450 Server Owner's Guide states that it is possible to
determine the logical or physical device name from the disk slot number and
vice versa, but then never tells you how to do it. Could someone kindly
point me in the direction of a method to do this.

Thanks.

--Dave


www.jtwis.com

unread,
Sep 4, 2001, 11:02:07 PM9/4/01
to
[This followup was posted to comp.sys.sun.admin and a copy was sent to
the cited author.]

In article <9n3j3i$1c0$1...@houston.jhuapl.edu>, david...@jhuapl.edu
says...

It would be nice if there was an easy way to do this. =)

#1. Do an ls on the device name:
ls -l /dev/dsk/c0t2d0s2
lrwxrwxrwx 1 root root 41 Aug 15 2000 /dev/dsk/c0t2d0s2 -
> ../../devices/pci@1f,4000/scsi@3/sd@2,0:c

#2. You need to take part of that line, but replace sd with disk, and
use it for grep, specifically, you need this part:
/pci@1f,4000/scsi@3/disk@2
(notice sd replaced with disk)

#3. prtconf -vp | grep /pci@1f,4000/scsi@3/disk@2
disk2: '/pci@1f,4000/scsi@3/disk@2,0'
slot#2: '/pci@1f,4000/scsi@3/disk@2'

c0t2d0 is in slot #2 on my system.


--

JTW Internet Services, Sun/Solaris Consulting
http://www.jtwis.com -- s...@jtwis.com
New! Lower rates for a limited time!

Adrian Ball

unread,
Sep 5, 2001, 8:13:18 AM9/5/01
to
David G. Humes wrote:

You can do this easily for the disks in slots 0-3:-

prtconf -vp | grep slot
gives (amongst other stuff)

slot#3: '/pci@1f,4000/scsi@3/disk@3'
slot#2: '/pci@1f,4000/scsi@3/disk@2'
slot#1: '/pci@1f,4000/scsi@3/disk@1'
slot#0: '/pci@1f,4000/scsi@3/disk@0'

This is standard across all E450s - the device names for these will always
be c0t0d0 c0t1d0 c0t2d0 and c0t3d0 (in slots 0 1 2 & 3 respectively)

For slots 4 to 19, you can do it the easy way or the hard way:-

The hard way:-

1) Check the back of the E450 (NB you may be able to use prtdiag etc, but
beware - diff controllers and other SE controllers, if you have them, will
be indistiguishable) and determine which PCI slots the internal controllers
are fitted into.

2) Use the following table (again from prtconf -vp) to determine which
device path the slot maps to:

pci-slot#10: '/pci@1f,4000/*@4,*'
pci-slot#9: '/pci@4,4000/*@2,*'
pci-slot#8: '/pci@4,4000/*@3,*'
pci-slot#7: '/pci@4,4000/*@4,*'
pci-slot#6: '/pci@4,2000/*@1,*'
pci-slot#5: '/pci@1f,2000/*@1,*'
pci-slot#4: '/pci@6,2000/*@1,*'
pci-slot#3: '/pci@6,4000/*@2,*'
pci-slot#2: '/pci@6,4000/*@3,*'
pci-slot#1: '/pci@6,4000/*@4,*'

3) Assuming you have a card in slot 6, the device path for the two
controllers will be:-

/pci@4,2000/scsi@1 and /pci@4,2000/scsi@1,1

Trace the cable internally and determine which disk backplane the card in
slot 6 is connected to.

Let's assume that it is the lower backplane (slots 4-11)

4) Find the cXtX form of the disk name by using ls -l /dev/rdsk/*0 | grep
pci@4,2000/scsi@1
This will list the disks occupying the slots in order from 4 to 11 (slots 4
and 8 will be cXt0 and so on)


The easy way:-

1) Install SUNWvts (Validation and test suite from the CD) or SUNWexplo
(from the sunsolve site)
2) Run vtsprobe (SUNWvts) or diskinfo.sparc (SUNWexplo)
3) Read the serial numbers listed as follows:-
AVAILABLE SCSI DEVICES:

Vendor Product Rev Serial Number

0: c0t0d0 SEAGATE ST318404LSUN18G 8507 0025T0LAB6##
1: c2t0d0 Symbios StorEDGE A1000 0301 ##9&####:###
2: c3t0d0 SEAGATE ST39103LCSUN9.0G 034A 9951A11311##
3: c3t2d0 SEAGATE ST39103LCSUN9.0G 034A 9951A25428##
4: c4t0d0 SEAGATE ST39103LCSUN9.0G 034A 9951A11757##
5: c4t2d0 SEAGATE ST39103LCSUN9.0G 034A 9951A11426##
6: c5t0d0 FUJITSU MAJ3182M SUN18G 0503 0027P40190##
7: c5t1d0 SEAGATE ST34371W SUN4.2G 7462 9821037705##
8: c6t0d0 FUJITSU MAG3091L SUN9.0G 1111 0008417410##
9: c6t2d0 SEAGATE ST39103LCSUN9.0G 034A 9951A16552##
10: c8t0d0 Symbios StorEDGE A1000 0301 ##7#####:###
11: ses0 Symbios StorEDGE A1000 0301 ##9&####:###
12: ses3 Symbios StorEDGE A1000 0301 ##7#####:###

and compare against the serial numbers on the front of the disks (assuming
no one has been swapping brackets around willy-nilly!)

HTH,
--
Adrian Ball \\ Tel: 07050 688565
Major Data Services Ltd \\ Fax: 07020 965488
Sun/Solaris Consultancy Services \\ Mailto:ab.u...@majords.co.uk
http://www.majords.co.uk/

0 new messages