Locking device nodes to devices

wchen014 at aol.com wchen014 at aol.com
Tue Dec 12 01:13:37 GMT 2006


----------MB_8C8EBA1E2DE5908_104C_56C4_webmail-da12.sysops.aol.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"

  try looking through scsi daemon docs to find out about mapping stuffs...
 
 It won't quite work out with similar devices though, good luck..
    
 -----Original Message-----
 From: mark at ukug.uk.freebsd.org
 To: freebsd-users at uk.freebsd.org
 Sent: Mon, 11 Dec 2006 8:00 PM
 Subject: Locking device nodes to devices
 
  Hi, 
 
 Is there any way to "lock" a device node to a specific physical (SCSI) device? 
 
 I've got 3 optical drives and a DAT drive in an external enclosure and a second DAT drive in another external box. The latter is normally switched off (it's a bit noisy) so the DAT in the main external box is sa0. 
 
 Tonight, while the second external box was switched on, we had a power cut. Once the power came back on I carried on where I left off doing some backups but kept getting "Device not configured" errors for sa1 - the second DAT drive. Eventually, after reading the output from dmesg(8) *carefully* I realized that the devices had been swapped round, i.e. the drive I thought was sa1 was now sa0. 
 
 OK, I could change the SCSI IDs of all the devices to ensure that the first DAT drive is probed first (but is that guaranteed?) but that would mean changing /etc/fstab and possibly other things, e.g. scripts. 
 
 So, can sa0 be "locked" to the first DAT drive so that, even if the second external box is powered up when the computer boots up, the drive in the first external box will always be sa0? 
 
 Thanks. 
 
 Regards, 
 
 Mark 
 
 ------ FreeBSD UK Users' Group - Mailing List ------ 
 http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users 
   
________________________________________________________________________
Check out the new AOL.  Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.

----------MB_8C8EBA1E2DE5908_104C_56C4_webmail-da12.sysops.aol.com
Content-Transfer-Encoding: 7bit
Content-Type: text/html; charset="us-ascii"

<HTML><BODY>
<div>&nbsp;try looking through scsi daemon docs to find out about mapping stuffs...<br>
<br>
It won't quite work out with similar devices though, good luck..<br>
</div>

<div>&nbsp;</div>
&nbsp;<br>
-----Original Message-----<br>
From: mark at ukug.uk.freebsd.org<br>
To: freebsd-users at uk.freebsd.org<br>
Sent: Mon, 11 Dec 2006 8:00 PM<br>
Subject: Locking device nodes to devices<br>
<br>






<div id="AOLMsgPart_0_ae6a4c73-eb9a-4161-a897-f015fc4c6dcf" class="AOLPlainTextBody">

Hi,&nbsp;<br>
&nbsp;<br>

Is there any way to "lock" a device node to a specific physical (SCSI) 
device?&nbsp;<br>
&nbsp;<br>

I've got 3 optical drives and a DAT drive in an external enclosure and a 
second DAT drive in another external box. The latter is normally 
switched off (it's a bit noisy) so the DAT in the main external box is sa0.&nbsp;<br>
&nbsp;<br>

Tonight, while the second external box was switched on, we had a power 
cut. Once the power came back on I carried on where I left off doing 
some backups but kept getting "Device not configured" errors for sa1 - 
the second DAT drive. Eventually, after reading the output from dmesg(8) 
*carefully* I realized that the devices had been swapped round, i.e. the 
drive I thought was sa1 was now sa0.&nbsp;<br>
&nbsp;<br>

OK, I could change the SCSI IDs of all the devices to ensure that the 
first DAT drive is probed first (but is that guaranteed?) but that would 
mean changing /etc/fstab and possibly other things, e.g. scripts.&nbsp;<br>
&nbsp;<br>

So, can sa0 be "locked" to the first DAT drive so that, even if the 
second external box is powered up when the computer boots up, the drive 
in the first external box will always be sa0?&nbsp;<br>
&nbsp;<br>

Thanks.&nbsp;<br>
&nbsp;<br>

Regards,&nbsp;<br>
&nbsp;<br>

Mark&nbsp;<br>
&nbsp;<br>

------ FreeBSD UK Users' Group  -  Mailing List ------&nbsp;<br>

<a href="http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users" target="_blank">http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users</a>&nbsp;<br>


</div>
 <!-- end of AOLMsgPart_0_ae6a4c73-eb9a-4161-a897-f015fc4c6dcf -->


<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<a href="http://pr.atwola.com/promoclk/1615326657x4311227241x4298082137/aol?redir=http%3A%2F%2Fwww%2Eaol%2Ecom%2Fnewaol" target="_blank"><b>Check out the new AOL</b></a>. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.<br />
</div>

</BODY></HTML>

----------MB_8C8EBA1E2DE5908_104C_56C4_webmail-da12.sysops.aol.com--




More information about the Ukfreebsd mailing list