Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 08:48:33 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        FreeBSD-Current <freebsd-current@freebsd.org>,  FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: Pack of CAM improvements
Message-ID:  <b269bc571001220848v6ff9279dj5a5c841068738a1a@mail.gmail.com>
In-Reply-To: <4B597CBB.5040900@omnilan.de>
References:  <4B55D9D4.1000008@FreeBSD.org> <4B597CBB.5040900@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 22, 2010 at 2:23 AM, Harald Schmalzbauer <
h.schmalzbauer@omnilan.de> wrote:

> Alexander Motin schrieb am 19.01.2010 17:12 (localtime):
> ...
>
>  Patch can be found here:
>> http://people.freebsd.org/~mav/cam-ata.20100119.patch
>>
>> Feedback as always welcome.
>>
>
> Again, thanks a lot for your ongoing great work!
> The patch doesn't cleanly apply with vpo, but I don't use vpo so I didn't
> care.
> Otherwise I couldn't find any problems.
> The system detects reinserted SATA drives on ICH9 fine.
>
> This was tested on a zfs backup server which went to the backbone
> yesterday, so I can't physically remove any devices any more for testing...
>
> But I had some questions about zfs raidz states. I think that isn't a
> matter of atacam but if I removed one disk, zpool status still showed me the
> ada3 device "online".
> After reinserting (and proper detection/initialisazion with cam, ada3 was
> present again) and zpool clean, it set the devicea as UNAVAIL sinve I/O
> errors.
> I coudn't get the device into the pool again, no matter what I tried.
> Only rebooting the machine helped. Then I could clean and scrub.
>
> What are the needed steps to provide a reinsterted hard disk to geom? With
> the latest patches I don't need to issue any reset/rescan comman, right?
> So it's a zfs problem, right? My mistake in understanding?
>
> In my testing of pulling drives at random (using a 3Ware 9550SXU or 9650SE
controller), you have to "zpool offline <pool> <device>" while the drive is
unplugged, before you can re-insert the same disk or a different disk.
 Without doing that step, it's very hard to re-insert the same disk, or
replace it with a new one, without rebooting.

Took me a couple of reboots and drive replacements before I figured that one
out.  :)

-- 
Freddie Cash
fjwcash@gmail.com



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