Technical article 110763

mkdev hd and the badtrk utility return the error "scsibadblk: set_bounds failed" on my SCO OpenServer 5 system.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

1. When adding the 5th (or greater) logical hard drive on my SCO OpenServer 5 system, the mkdev hd script returns the error:

scsibadblk: set_bounds failed

The script continues and the hard drive is able to be mounted and accessed properly.

2. Running the badtrk utility on the 5th (or greater) logical hard drive returns the same error.

Cause

The badtrk utility fails on hard drives with a major device number that is greater than 127.

Solution

To confirm that this is the problem on your system, run:

# grep Sdsk /etc/conf/cf.d/mdevice

The 5th and 6th fields of these entries show their major device numbers.

If one of these entries shows a number greater than 127, badtrk will return the above error. For example, this listing shows a major device number of 133:

Sdsk Iocrwi BiHobCcZpkRM Sdsk 133 133 1 2 -1

The badtrk failure should not affect the system's functionality.

This problem is fixed in SCO OpenServer Release 5.0.6.

See also

Manual pages: badtrk(ADM), hd(HW), mdevice(F)

From the Xinuos technical article database, record 110763. Reproduced with permission. The original is at www.sco.com/ta/110763, 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.