Platform Notes: Sun Enterprise 250 Server

Mapping From Disk Slot Number to UNIX Logical Name

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

The example in this procedure assumes a known disk slot number of 4.

  1. Determine the UNIX physical device name using the prtconf command.

    Use the grep command to filter the prtconf output for any occurrence of the disk slot number:


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

    In this example, the physical name associated with disk slot number 4 is /pci@1f,4000/scsi@3/disk@b. To translate this to a UNIX physical device name, substitute sd@ for disk@. The resulting 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.