From owner-freebsd-geom@FreeBSD.ORG Mon Jan 21 09:47:10 2013 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B74524E9; Mon, 21 Jan 2013 09:47:10 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id AC239B13; Mon, 21 Jan 2013 09:47:09 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA13939; Mon, 21 Jan 2013 11:47:08 +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 1TxDy7-00070e-Px; Mon, 21 Jan 2013 11:47:07 +0200 Message-ID: <50FD0E99.8010305@FreeBSD.org> Date: Mon, 21 Jan 2013 11:47:05 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: bug-followup@FreeBSD.org, softkot@gmail.com Subject: Re: kern/175323: Fail to use ZVOL as a gmirror component X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 09:47:10 -0000 This > GEOM_MIRROR: Cannot add disk zvol/tank0/vol0 to mirror0 (error=45). seems to be triggered by the following code in sys/geom/mirror/g_mirror.c: error = g_getattr("GEOM::candelete", disk->d_consumer, &i); if (error != 0) goto fail; plus the fact that ZFS zvol does the following: case BIO_GETATTR: case BIO_DELETE: default: g_io_deliver(bp, EOPNOTSUPP); break; Perhaps, the gmirror code should be more flexible with respect to EOPNOTSUPP from g_getattr? -- Andriy Gapon