Subject: HotSwapping SCSI Disks with RAIDFrame
To: None <netbsd-users@netbsd.org>
From: Christoph Kaegi <kgc@zhwin.ch>
List: netbsd-users
Date: 07/09/2003 08:34:59
Hi

What is the proper procedure to replace a defective SCSI hotswap
disk with RAIDFrame?

Some days ago, I had a disk fail in a Supermicro 6012P-6B.
I pulled the disk out and got a new one today.
When putting it back in, the kernel said:
-------------------------------------- 8< --------------------------------------
Jul  9 07:34:39 mx2 /netbsd: eset channel A
Jul  9 07:34:40 mx2 /netbsd: ahc0: Someone reset channel A
Jul  9 07:34:40 mx2 last message repeated 271 times
-------------------------------------- 8< --------------------------------------

Is it normal, that the scscibus is reset on insertion of a new
disk?

The new disk didn't seem to be detected automatically (I couldn't
disklabel it) so I tried to 

  scsictl scsibus0 scan any any

to get the system to recognise it. Then it said:
-------------------------------------- 8< --------------------------------------
Jul  9 07:57:30 mx2 /netbsd: panic: ahc_action: not tagged and device busy
Jul  9 07:57:30 mx2 /netbsd: syncing disks... ahc0: WARNING no command for scb 29 (cmdcmplt)
Jul  9 07:57:30 mx2 /netbsd: QOUTPOS = 198
-------------------------------------- 8< --------------------------------------

... and ciao. The systm just rebooted.

What am I doing wrong?

I tought the proper procedure would be:

- (system recognises new device on insertion)
- disklabel new device
- add new partitions as hotspares in raidframe
- resync the mirrored partitions

Thanks for insight

Chris

-- 
----------------------------------------------------------------------
Christoph Kaegi                                           kgc@zhwin.ch
----------------------------------------------------------------------