From owner-freebsd-geom@freebsd.org Fri Jan 6 10:13:28 2017 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79339CA2984 for ; Fri, 6 Jan 2017 10:13:28 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D023C181D for ; Fri, 6 Jan 2017 10:13:27 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA29499 for ; Fri, 06 Jan 2017 12:13:26 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1cPRWX-0008Uu-Vc for freebsd-geom@FreeBSD.org; Fri, 06 Jan 2017 12:13:25 +0200 Subject: Re: gmirror and a flaky member To: freebsd-geom@FreeBSD.org References: <7e4164bd-9804-02d5-5990-bc15354989e9@FreeBSD.org> From: Andriy Gapon Message-ID: <77c40117-35ab-2430-07f8-e1df6b87fe1c@FreeBSD.org> Date: Fri, 6 Jan 2017 12:12:30 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <7e4164bd-9804-02d5-5990-bc15354989e9@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 10:13:28 -0000 On 06/01/2017 11:54, Andriy Gapon wrote: > > Can a geom mirror handle a member that gets disconnected and then reappears again? > > What I am seeing right now is that the mirror does not pick up the member when > it reappears. I have to add it back manually. To add more substance, here is what gets logged when the disk disappears: GEOM_MIRROR: Request failed (error=6). ada0p2[READ(offset=2517700608, length=4096)] GEOM_MIRROR: Device swap: provider ada0p2 disconnected. And here's what gets logged when the disk reappears: GEOM_MIRROR: Component ada0p2 (device swap) broken, skipping. GEOM_MIRROR: Cannot add disk ada0p2 to swap (error=22). > Even worse, the commands I have > to execute are: > $ gmirror forget ... > $ gmirror insert ... > > This does not appear to be a graceful way of reactivating the member. > > Whatever other commands I try (activate, rebuild) they fail. > > Maybe there is something I should set in the mirror's configuration. > Any advice? > Thank you! > -- Andriy Gapon