From owner-freebsd-fs@freebsd.org Thu May 16 08:05:22 2019 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A7ED15AFFB9 for ; Thu, 16 May 2019 08:05:22 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B66E8E4BD for ; Thu, 16 May 2019 08:05:21 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback21o.mail.yandex.net (mxback21o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::72]) by forward106j.mail.yandex.net (Yandex) with ESMTP id C0F4C11A146E; Thu, 16 May 2019 11:05:17 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback21o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id E7jIc4Fl1U-5H7G3rZc; Thu, 16 May 2019 11:05:17 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1557993917; bh=c0HcPhGw8z36kIY7ZsnvocBA4rLX/Pk980qjJBDxv2E=; h=In-Reply-To:From:To:Subject:Cc:Date:References:Message-ID; b=mWAq9vwE/cM87Y7tcZt0n7Fumd3zqNZ2vsWZHdnyJ5Vnn8pFdJ775U2ANZy1n9IWS EGPS3cGuZaTZQiWpStNGGsczMrU9oqXNWCURnfqSp+JDt8BHF2Puy+CVhjfThT+wS5 KcYXU/5QSg5ONgX6+RMiAvAnC48tOHYgoCWiskFk= Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id CqvR6SPyJu-5GLWtowH; Thu, 16 May 2019 11:05:16 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: Waht is the minimum free space between GPT partitions? To: Peter , Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-fs@freebsd.org References: <20190515204243.GA67445@gate.oper.dinoex.org> <60d57363-eb5c-e985-82ad-30f03b06a4c6@quip.cz> <20190516003607.GA93284@gate.oper.dinoex.org> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= mQENBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAG0JUFuZHJleSBWLiBFbHN1a292IDxidTdjaGVyQHlhbmRleC5ydT6JATgEEwECACIFAkwB F1kCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEAHF6gQQyKF6qmYIAI6ekfm1VA4T vqankI1ISE6ku4jV7UlpIQlEbE7/8n3Zd6teJ+pGOQhN5qk8QE7utdPdbktAzi+x7LIJVzUw 4TywZLXGrkP7VKYkfg6oyCGyzITghefQeJtr2TN4hYCkzPWpylkue8MtmqfZv/6royqwTbN+ +E09FQNvTgRUYJYTeQ1qOsxNRycwvw3dr2rOfuxShbzaHBB1pBIjGrMg8fC5pd65ACH5zuFV A0CoTNGMDrEZSfBkTW604UUHFFXeCoC3dwDZRKOWJ3GmMXns65Ai5YkA63BSHEE1Qle3VBhd cG1w0CB5FBV3pB27UVnf0jEbysrDqW4qN7XMRFSWNAy5AQ0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAYkBHwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <1f98b517-e5f9-42a6-d900-246d83972b55@yandex.ru> Date: Thu, 16 May 2019 11:03:16 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190516003607.GA93284@gate.oper.dinoex.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9KTc7VChSqok7dg6pfdMDtudqnBpBLyYe" X-Rspamd-Queue-Id: 8B66E8E4BD X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.00 / 15.00]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2019 08:05:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9KTc7VChSqok7dg6pfdMDtudqnBpBLyYe Content-Type: multipart/mixed; boundary="E2vuBo1t11Ma6gyusTMj4pUypHS0GcXh7"; protected-headers="v1" From: "Andrey V. Elsukov" To: Peter , Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-fs@freebsd.org Message-ID: <1f98b517-e5f9-42a6-d900-246d83972b55@yandex.ru> Subject: Re: Waht is the minimum free space between GPT partitions? References: <20190515204243.GA67445@gate.oper.dinoex.org> <60d57363-eb5c-e985-82ad-30f03b06a4c6@quip.cz> <20190516003607.GA93284@gate.oper.dinoex.org> In-Reply-To: <20190516003607.GA93284@gate.oper.dinoex.org> --E2vuBo1t11Ma6gyusTMj4pUypHS0GcXh7 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 16.05.2019 03:36, Peter wrote: > On Thu, May 16, 2019 at 12:29:16AM +0200, Miroslav Lachman wrote: > ! > I found, if I put partitions directly together (so that another sta= rts > ! > immediately after one ends), under certain circumstances the volume= s > ! > become inaccessible and the system (11.2) does crash. Obviousely th= ere > ! > is a safety distance required - but how big should it be? > !=20 > ! I read your post on forum=20 > ! https://forums.freebsd.org/threads/create-degraded-raid-5-with-2-disk= s-on-freebsd.70750/#post-426756 >=20 > Hi, great, that should explain how to make it happen. >=20 > ! No problems for years. >=20 > Me neither with MBR/packlabels, but only recently switched to GPT. >=20 > I suppose either GPT or ZFS-autoexpand seems to go out-of-bounds; I > couldn't determine which. >=20 > ! I think your case is somewhat different if you split disk in to 3=20 > ! partitions later used as 3 devices for one ZFS pool, so maybe there i= s=20 > ! some coincidence with expanding ZFS... and then it is a bug which sho= uld=20 > ! be fixed. >=20 > If we could fix it that would be even better! Agreed, it's an ugly > operation, but I love to do ugly things with ZFS, and usually it > stands it. ;) >=20 > ! Can you prepare some simple testcase (scriptable) which make a panic = on=20 > ! your host? I will try it in some spare VM. >=20 > The description in mentioned forum-post is pretty much what I did. >=20 > At first I did it on my router, as there is empty space on a disk, > and when that had gone by-by, I tried it on the desktop with an > (otherwise empty) USB stick. Takes an eternity to create ZFS-raidz > even on USB-3 stick - they are not designed for that - but the outcome > was the same. >=20 > Procedure is: > 1. create new GPT scheme on stick. > 2. add 3x 1G freebsd-zfs partitions with 1G -free- in between. > 3. zpool create test raidz da0p1 da0p2 da0p3 > 4. resize 3x partitions to 2G each > 5. zpool set autoexpand=3Don test > 6. export the pool > 7. zpool online When you exported the pool, ZFS is able to find its labels on the entire da0 disk. This is probably leads to panic, and not because there are no free space between partitions. When panic happens, just make a photo of panic screen, in most cases it can say where is the problem. Even better, if you add debug options to the kernel and then you will be able get core dump. --=20 WBR, Andrey V. Elsukov --E2vuBo1t11Ma6gyusTMj4pUypHS0GcXh7-- --9KTc7VChSqok7dg6pfdMDtudqnBpBLyYe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlzdGUQACgkQAcXqBBDI oXoboAf/US7SnrGfFwIBGDriHHNL+nn+kXFqQ6Z7IPycpKqYp0iF4sfUuWNa3BeB oFq1iSVNHAF1GSYGLFB2tjFjqrFurQSH9dDaYK6eoGjc8vCFsEt7Q8bX8bQTF/vJ MDo4f26Zy+eNZalh4SuuHHjli5pGRonr9VzI8Eaia6b/xp6u7CV/+vEOFo7Asr4/ Yult7uaA4h+mBjrsD3SCo2x6ssGkfuT7HTxFWdshgcdn4svwkRv2ounfzpamluIn lRvBfz3YCEF9Xb+j5GrtolkZPp8HhUZZfz0i6f1GWirfBoLroazy0HsHVg89J9Cm i4FQkMyKUvM9cNXG6TfDUsFHlIByHQ== =EJrx -----END PGP SIGNATURE----- --9KTc7VChSqok7dg6pfdMDtudqnBpBLyYe--