> How can I remove a SCSI disk from a RAID1 array? I tried
> '/sbin/raidhotremove /dev/md0 /dev/sdb1' without success.
IIRC, raidhotremove only works on failed disks. It doesn't work for removing
working disks. So you have to force the disk to fail. If you have physical
access, pulling the plug is one straightforward if slightly risky option. If you
don't want to be opening up the case all the time, hot-swap disk containers are
a worthwhile investment.
Alternatively, you used to be able to force the SCSI system to drop the disk.
Looking back at past messages (this is taken from Paul Jakma's message on the
"Newbie: What to do when a disk fails?" thread on 8 July), it looks like you
would need to do something like:
echo "scsi remove-single-device c b t l" > /proc/scsi/scsi
where c=controller, b=bus/channel, t=target/scsi id, l=lun of the
failed disk. Eg disk id-3 on the first channel of the first scsi
controller would be:
echo "scsi remove-single-device 0 0 3 0" > /proc/scsi/scsi
This should allow you to raidhotremove the disk, and then when you want to add
the disk back, you could restart it with:
echo "scsi add-single-device c b t l" > /proc/scsi/scsi
and then raidhotadd it to the array.
But I'm no expert on SCSI, so you might want to check that with someone who
knows more about it. In particular, a message from Brian Murphy on the "does
raid1 consider one drive to be 'primary'?" thread on 27 May indicated that this
no longer worked with the 2.2.6 raid-patch. I don't know whether it works with
2.2.10. Anyone know more about this?
Why do you want to remove a working disk from a RAID-1 array anyway?
Cheers,
Bruno Prior [EMAIL PROTECTED]