Which device linked to target 4 on second scsi bus?

Which device linked to target 4 on second scsi bus?

Post by Jim Crav » Fri, 08 Oct 1993 23:56:36



Which device, i.e. /dev/rmt/?, will access the tape device, target
4, on esp 1 (ie. the second scsi bus) under Solaris 2.2 ?  Or more
exactly which command, or man page, will reveal the correct device?  

Both prtconf and sysdef don't explicitly reveal anything at
target 4 of esp#1.

Jim
---

   You don't miss it until it's gone.    |Geological Survey of Canada  |
        ---Frank Drebbin, Police Squad   |1 Observatory Cres., Ottawa  |
-----------------------------------------|K1A 0Y3 (613) 996-9935-------|

 
 
 

Which device linked to target 4 on second scsi bus?

Post by Patrick Stirli » Sat, 09 Oct 1993 05:28:15



>Which device, i.e. /dev/rmt/?, will access the tape device, target
>4, on esp 1 (ie. the second scsi bus) under Solaris 2.2 ?  Or more
>exactly which command, or man page, will reveal the correct device?  
>Both prtconf and sysdef don't explicitly reveal anything at
>target 4 of esp#1.

This is the beauty of Solaris 2 - device and driver configuration are
dynamic. Nothing will show up on prtconf unless there's actually a
device there. Solaris 2 does not have the "hard coded" SCSI id
reservation that 4.x had. The target numbers are set in the driver's
".conf" files (e.g. /kernel/drv/sd.conf for disks), and the system
will look at all the id's specified there for the devices. So for
disks, the sd.conf file specifies all target id's for any scsibus,
so you can add a disk at any unused target on any scsibus and the
system will see it. The same is true for tape drives. Prtconf
won't reveal anything until the device is first accessed (which
causes it to be dynamically configured into the system) - so you
have a catch-22 here!

You have a tape device at scsibus 1, target 4. What you should do is
get a long list (ls -l) of the content of /dev/rmt. Then look at the
entries in /devices they point to. These will be something like:



is the first scsibus. You'll find an entry with something like this:


for the tape on the second scsibus, pointed to by one of the links
in /dev rmt. Use this link to access the drive.

patrick

Patrick Stirling
P S Consulting

 
 
 

Which device linked to target 4 on second scsi bus?

Post by Philip Smi » Sun, 10 Oct 1993 04:53:30



Quote:>Which device, i.e. /dev/rmt/?, will access the tape device, target
>4, on esp 1 (ie. the second scsi bus) under Solaris 2.2 ?  Or more
>exactly which command, or man page, will reveal the correct device?  

Check the rmt(1M) or even better mtio(7) manpages. It took me a while
to find that in the answerbook but they are very helpful.

>Both prtconf and sysdef don't explicitly reveal anything at
>target 4 of esp#1.

>Jim
>---

>   You don't miss it until it's gone.    |Geological Survey of Canada  |
>        ---Frank Drebbin, Police Squad   |1 Observatory Cres., Ottawa  |
>-----------------------------------------|K1A 0Y3 (613) 996-9935-------|

--------------------------------------------------
---- Philip Smith         Sun Service IR ---------

--------------------------------------------------