Platform Notes: Sun Enterprise 250 Server

Mapping From UNIX Logical Name to Disk Slot Number

This section describes how to translate from a known UNIX logical device name such as c0t11d0s0 to a disk slot number (0 through 5).

This example assumes a known UNIX logical device name of c0t11d0s0.

  1. Determine the UNIX physical device name from the UNIX logical device name.

    Use the ls -l command to display the link for the logical device name in the /dev/dsk directory:


    % ls -l /dev/dsk/c0t11d0s0
    lrwxrwxrwx   1 root     root          41 Nov 24 10:41 /dev/dsk/c0t11d0s0 -> ../../devices/pci@1f,4000/scsi@3/sd@b,0:a

    The resulting output shows the UNIX physical device name associated with the logical device name. In this case, the corresponding physical device name is /pci@1f,4000/scsi@3/sd@b.

  2. 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.