Stephen Waters wrote:
> We have an aic7xxx (2940uw) currently and i am curious how well
> it would work in a hotswap situation. is there some sort of command you
> tell the aic7xxx driver to tell it that you're going to remove a disk?
> linux/drivers/scsi/README.aic7xxx didn't seem to say anything about it..

Got a similar controller (AHA-2940A), just tried a hotswap (well,
not really a swap, added the same disk again), and it worked fine.

My setup is a raid-1 with two disks. I detached one disk from the SCSI 
bus and power, then accessed the raid partition. I got the following
messages at this point:

(scsi0:0:1:0) Performing Domain validation.
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 26030000
scsidisk I/O error: dev 08:15, sector 36
raid1: Disk failure on sdb5, disabling device.
       Operation continuing on 1 devices
md: recovery thread got woken up ...
md0: no spare disk to reconstruct array! -- continuing in degraded mode
md: recovery thread finished ...
(scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15.

The raid partition was still usable, I added/removed some files just for
fun. I then plugged the disk back in again. Nothing happens automatically
at this point, what I ended up doing was:

% raidhotremove /dev/md0 /dev/sdb5
% raidhotadd /dev/md0 /dev/sdb5

This triggered the reconstruction phase.

Try it yourself ;-)
Martin

Reply via email to