Platform Notes: Sun Enterprise 250 Server

Mapping From Error Message to Disk Slot Number and UNIX Logical Name

This section describes how to translate a UNIX physical device name provided in a SCSI error message to a UNIX logical device name and a disk slot number.

  1. Determine the UNIX physical device name from the SCSI error message.

    SCSI error messages are typically displayed in the system console and logged in the /usr/adm/messages file.


    WARNING: /pci@1f,4000/scsi@3/sd@b,0 (sd11)
    Error for Command: read(10)     Error level: Retryable
    Requested Block: 3991014        Error Block: 3991269
    Vendor: FUJITSU                 Serial Number: 9606005441
    Sense Key: Media Error
    ASC: 0x11 (unrecovered read error), ASCQ: 0x0, FRU: 0x0

    In the example SCSI error message above, the UNIX physical device name is /pci@1f,4000/scsi@3/sd@b.

  2. Determine the UNIX logical device name by listing the contents of the /dev/rdsk directory.

    Use the grep command to filter the output for any occurrence of the UNIX physical device name determined in Step 1:


    % ls -l /dev/rdsk | grep /pci@1f,4000/scsi@3/sd@b
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s0 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:a,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s1 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:b,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s2 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:c,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s3 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:d,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s4 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:e,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s5 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:f,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s6 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:g,raw
    lrwxrwxrwx   1 root     root          45 Nov 24 10:41 c0t11d0s7 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:h,raw

    The resulting output indicates the associated UNIX logical device name. In this example, the logical device name is c0t11d0.

  3. Determine the disk slot number using the prtconf command.

    Substitute the string disk@ for sd@ in the physical device name determined in Step 1. The result in this example is /pci@1f,4000/scsi@3/disk@b.

    Use the grep command to find this name in the output of the prtconf command:


    % prtconf -vp | grep /pci@1f,4000/scsi@3/disk@b
            disk4:  '/pci@1f,4000/scsi@3/disk@b,0'
                disk-slot4:  '/pci@1f,4000/scsi@3/disk@b'

    The resulting output indicates the corresponding disk slot number. In this example, the disk slot number is 4.

    If the output does not provide a slot number, the device is either a removable media device (CD-ROM or tape drive) or an external device.