Technical article 105246

Examples of disk naming conventions used by SCO operating systems.

OpenServer 5.0.0

Written · Last revised

Problem

What device node name goes with which hard drive on my machine
with which operating system that I am running?  What are some
examples that illustrate correct name usage?

Solution

There are different default naming conventions used by the different versions of SCO's operating systems. In general, SCO's System V/386 (SVR3) based operating systems, including XENIX, UNIX, Open Server, and Open Desktop use simplified nodes names which refer only to the order in which the disks were installed. SCO OpenServer and SCO UnixWare (SVR4) use a more complex naming convention which encodes information on which adapter the drive is attached to, the order in which the drive was added, and which bus the device is added to, in the device node name.

Note: The SCSI target ID number for a hard drive is a function of how the jumpers on the device are set, not a function of the physical position of the drive on the SCSI cable.

With only a single SCSI host adapter in the machine, it is referred to as ha=0. Knowing this, you can correctly choose the host adapter number when running mkdev hd on SCO's SVR3 based operating systems.

To see the filesystem layout and space allocations on an SCO SVR3 machine, you would run divvy. As an example, to see the layout on the third hard drive, you would run:

# divvy /dev/hd20
          /|   1st hard drive  2nd hard drive  3rd hard drive
         / |       -----         -----           ----
        /---------(     )-------(     )---------(     )
       /         (  id=0 )     (  id=6 )       ( id=4  )
      /-----------(     )-------(     )---------(     )
     /     |       -----         -----           ----
    /      |
   /      /   |---> hd00          hd10           hd20
  /      /    |-> dsk/0s0       dsk/1s0         dsk/2s0 <-----------|
 /      /     |   c0b0t0d0s0    c0b0t6d0s0      c0b0t4d0s0<---------|
/      /      |                                                     |
|ha=0 /       |---Disk names for SCO's SVR3 based operating systems |
|    /                                                              |
|   /                                                               |
|  /              Disk names for SCO's SVR4 based operating systems-|
| /

To see the filesystem layout and space allocations on an SCO SVR4 based operating system, you would run prtvtoc. As an example, to see the layout on the second hard drive:

# prtvtoc -f disktab /dev/rdsk/c0b0t6d0s0
                   or
# prtvtoc -f disktab /dev/dsk/1s0

With multiple scsi host adapters in the machine, the first is known as ha=0, the second is ha=1, the third is ha=2, and so on.

           /| 1st hard drive  2nd hard drive  3rd hard drive
          / |       -----         -----           ----
         /---------(     )-------(     )---------(    )
        /         ( id=0  )     (  id=6 )       ( id=5 )
       /-----------(     )-------(     )---------(    )
      /     |       -----         -----           ----
     /      |
    /      /   |--> hd00          hd10            hd20
   /      /    |->dsk/0s0       dsk/1s0         dsk/2s0 <-----------|
  /      /     |  c0b0t0d0s0    c0b0t6d0s0    c0b0t5d0s0 <----------|
 /      /      |                                                    |
|ha=0 /        |--Disk names for SCO's SVR3 based operating systems |
|    /                                                              |
|   /             Disk names for SCO's SVR4 based operating systems-|
|  /
| /
           /| 4th hard drive  5th hard drive  6th hard drive
          / |       -----         -----           ----
         /---------(     )-------(     )---------(    )
        /         ( id=2  )     ( id=1  )       ( id=0 )
       /-----------(     )-------(     )---------(    )
      /     |       -----         -----           ----
     /      |
    /      /    |--> hd30          hd40            hd50
   /      /     |->dsk/3s0       dsk/4s0         dsk/5s0 <----------|
  /      /      |  c1b0t2d0s0    c1b0t1d0s0      c1b0t0d0s0<--------|
 /      /       |                                                   |
|ha=1 /        |-Disk names for SCO's SVR3 based operating systems |
|    /                                                             |
|   /            Disk names for SCO's SVR4 based operating systems-|
|  /
| /

See also

TA105232, "What does a device name like '/dev/dsk/c0b0t0d0s0' mean under SCO UnixWare?".

TA105247, " Practical examples of disk names used by SCO operating systems."

From the Xinuos technical article database, record 105246. Reproduced with permission. The original is at www.sco.com/ta/105246, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.