Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 1996 11:31:42 -0800
From:      Julian Elischer <julian@whistle.com>
To:        FreeBSD SCSI list <freebsd-scsi@freebsd.org>
Cc:        Joe Karthauser <jlk@pavilion.co.uk>
Subject:   Re: probing scsi bus after boot?
Message-ID:  <3278FE9E.167EB0E7@whistle.com>
References:  <199610311817.TAA16208@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
J Wunsch wrote:
> 
> (Moved to the freebsd-scsi list)
> 
> As Joe Karthauser wrote:
> 
> > Is it possible to reprobe the scsi bus after a reboot for allow for
> > drive swapping?  I guess that there must be some support for that in
> > there somewhere.
> 
> There's ``scsi -r'', though it used to be horribly broken for quite
> some time.  It worked fine in FreeBSD 1.1.5.1, and started to be ok
> again in -current of not too long ago (about a month or two).
> 
> _However_, drive _swapping_ is probably unsupported.  I think the sd
> driver gets royally screwed if you exchange the drive that was present
> at boot time by one with another total number of blocks later.  Even
> the `od' driver (that is supposed to catch up with such situations)
> doesn't do it right now, but there's a patch pending in one of the PRs
> that allows for it.
> 

you shouldn't need to reprobe to swap drives..
teh new drive will return
a "unit attention" error when first powered up
and that will invalidate all
information
on the drive.
the drive will then be inaccessible untill ALL references to it have
been closed
when that has happenned, ist should be possible to re-mount the new
drive.

(all in theory only mind you..
I haven't tried it, but it works that way for removable drives)

julian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3278FE9E.167EB0E7>