From owner-freebsd-geom@freebsd.org Wed Mar 1 17:14:16 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 D1D94CF1FDB for ; Wed, 1 Mar 2017 17:14:16 +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 E4C41A89; Wed, 1 Mar 2017 17:14:15 +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 TAA20612; Wed, 01 Mar 2017 19:14:13 +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 1cj7pN-0007T0-EN; Wed, 01 Mar 2017 19:14:13 +0200 Subject: Re: GEOM_PART: zvol/pond/xxx was automatically resized, every boot To: "Andrey V. Elsukov" , freebsd-geom@FreeBSD.org References: <49828d0f-fe1c-f635-82c7-b63a32b6bba9@FreeBSD.org> From: Andriy Gapon Message-ID: <16315780-6525-d1ce-1129-6f9307155649@FreeBSD.org> Date: Wed, 1 Mar 2017 19:13:17 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <49828d0f-fe1c-f635-82c7-b63a32b6bba9@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 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: Wed, 01 Mar 2017 17:14:16 -0000 On 28/02/2017 14:05, Andrey V. Elsukov wrote: > On 28.02.2017 13:00, Andriy Gapon wrote: >> This is quite annoying as I have to do gpart commit after each reboot to make my >> zvols usable. >> >> To add some data: >>> gpart show zvol/pond/raidz0 >> => 63 10485697 zvol/pond/raidz0 MBR (5.0G) >> 63 10485697 - free - (5.0G) >> >> The zvol actually has whole-disk ZFS on it, which uses zfsboot for booting. >> In other words, the first block of the zvol is the first block of zfsboot binary. > > Hi Andriy, > > I think the attached (untested) patch can help. The patch does help. Thank you very much! -- Andriy Gapon