APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > OSR5 sconf scsi probe
Printer Friendly Version




News Group Posts

OSR5 sconf scsi probe


More info on how sconf works


From: Bela Lubkin <belal@sco.com>
Subject: Re: sconf on 5.0.7
Date: Sat, 9 Aug 2003 00:51:14 GMT
References: <bgta4s$iph$1@ngspool-d02.news.aol.com>
<20030807215415.GL24551@sco.com>
<IoRYa.18792$Vx2.9621447@newssvr28.news.prodigy.com> Bob Bailin wrote: > > > While following the thread for "SCO 5.0.7 and Tape Drive", I tried > > > using the sconf -v command on my own system. > > > > > > The results showed only my Sdsk and Srom devices, but not > > > the Stp device. > > > > > > Sdsk is a raid on dpti ha#0, bus=0, id=0, lun=0 > > > Srom is on wd ha#0, bus=0 (pri), id=0 (master) > > > Stp is on dpti ha#0, bus=1, id=2, lun=0 > > > > > > All of the above devices work perfectly, I was just > > > surprised that the Stp doesn't show. It is listed in mscsi > > > as it should be. Does it have something to do with the > > > device being on bus 1? > > > > > > I tried sconf -i to add it manually to the table, and there > > > were no complaints executing the command, but a > > > subsequent sconf -v didn't change.

> # sconf -v
> Srom    wd      0       0       0       0
> Sdsk    dpti    0       0       0       0
> 
> # cat /etc/conf/cf.d/mscsi
> *ha     attach  number  ID      lun     bus
> *
> dpti    Sdsk    0       0       0       0
> wd      Srom    0       0       0       0
> dpti    Stp     0       3       0       1
> 
> # hwconfig -h
> device      address    vec dma comment
> ======== ============= === === ================================================
> adapter  0xc000-0xc0ff 10   -  type=dpti ha=0 id=7, PCI, v1.12
> tape           -        -   -  type=S ha=0 id=3 lun=0 bus=1 ht=dpti unit=0
> Stp-0          -        -   -  Vnd=SONY Prd=SDT-11000 Rev=0200
> disk           -        -   -  type=S ha=0 id=0 lun=0 bus=0 ht=dpti unit=0
> Sdsk           -        -   -  cyls=2231 hds=255 secs=63 unit=0
> Sdsk-0         -        -   -  Vnd=ADAPTEC Prd=RAID-1 Rev=370F

[culled and reorganized]

Ok, it looks like it's exactly as you said -- but now I understand what
you said a lot more clearly.

Suppose you run this, what do you get?

  lines=`sconf -r`
  line=1
  while [ $line -le $lines ]; do
    sconf -g $line
    line=`expr $line + 1`
  done

That should dump out the contents of the in-kernel SCSI configuration.
(`sconf` really ought to have a flag to do so automatically.)














`sconf -v` is something else entirely -- it is an order to actually go
out and probe the SCSI buses, while what I've just done is to dump the
tables already in the kernel.

It's possible that the `sconf -v` probe doesn't scan buses >0; or maybe
it miscommunicates with "dpti" as to how many buses your adapter has.

Indeed.  I have a copy of "dpti" BTLD 1.12 and I can see that it does
not support the xx_entry() subfunction SCSI_GET_LIMITS.  Without that
support, the kernel believes it's a 1-bus, 8-ID adapter.

So, it boils down to a bug in the "dpti" driver.

Fortunately, the missing subfunction is used _only_ by `sconf`, so the
entire loss of functionality is (1) `sconf -v` doesn't find your tape
drive, and (2) during ISL, you will not be offered to install onto or
partition any devices on buses >0 or IDs >7.

>Bela<


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - Bela
       - Drivers
       - Kernel
       - SCO_OSR5
       - SCSI
       - Troubleshooting




Unix/Linux Consultants

Skills Tests

Guest Post Here