Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2018 11:39:44 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        John Baldwin <jhb@FreeBSD.org>, Marcel Moolenaar <marcel@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Cc:        Josh Paetzel <jpaetzel@freebsd.org>
Subject:   Re: svn commit: r264378 - head/sys/geom/part
Message-ID:  <2f72f3b3-d890-bed2-742e-fcc39c5618e3@yandex.ru>
In-Reply-To: <da34a750-c6b6-d313-88e6-68a8670c71bb@FreeBSD.org>
References:  <201404122028.s3CKSdo1026394@svn.freebsd.org> <da34a750-c6b6-d313-88e6-68a8670c71bb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR
Content-Type: multipart/mixed; boundary="UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: John Baldwin <jhb@FreeBSD.org>, Marcel Moolenaar <marcel@FreeBSD.org>,
 src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Cc: Josh Paetzel <jpaetzel@freebsd.org>
Message-ID: <2f72f3b3-d890-bed2-742e-fcc39c5618e3@yandex.ru>
Subject: Re: svn commit: r264378 - head/sys/geom/part
References: <201404122028.s3CKSdo1026394@svn.freebsd.org>
 <da34a750-c6b6-d313-88e6-68a8670c71bb@FreeBSD.org>
In-Reply-To: <da34a750-c6b6-d313-88e6-68a8670c71bb@FreeBSD.org>

--UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 08.10.2018 19:46, John Baldwin wrote:
> This needs a way to be overridden.  If you have a machine installed wit=
h a
> layout created prior to this change (e.g. a zpool mirror or RAID or som=
e
> other mirror or RAID), you can no longer create a matching partition si=
nce
> the starting sector is now always 40 instead of 34 and the partition si=
ze
> won't match.  Also, while we may want to create sane layouts by default=
, we
> should probably always provide a way to create less-sane layouts that a=
re
> still conformant to the spec.  I do wonder if this kind of default
> preference shouldn't belong in the userspace gpart tool rather than the=

> kernel and the kernel should create any compliant layout as requested b=
y
> userland instead.
>=20
> jpaetzel@ just ran into this case where he can't replace a failed disk =
in a
> system running 12 that was first formatted on 10, so it's not academic.=


As a workaround you can try to copy first 34 sectors from old disk to
new using dd(1). And then use `gpart recover`. I think this should work.

--=20
WBR, Andrey V. Elsukov


--UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD--

--yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR
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/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlu8aVQACgkQAcXqBBDI
oXrrJgf/aB9cfSsjA+yo4onp8hGRu/vvoWZExjs7X0+x9DGR3zrxYHFrL5u8uj6K
2G3/9ynBxZzHDheudWNp04ZRgb8fJM/snHidDNjWG4bWiRCdlejetms6BwCjqAML
y1adVVbd3drvqFHqRLZSm18o8H+efMeJz5VILjNdCnPAzBSI+KS2heuvhxAB2xbq
OIThPAz/hWR4jefbSx9YPedPZ17riboOizym0EUAUgd1vyA7OMWB06hSeRBTBtbu
9dW0pyoh04MdM+aLvRgyFeMyRbaioqjKs+wXRSaFFmkDdX6uE4Y1VGzM1IQuR/jv
z3+Ox9IL138fuz2O9UI7dTNy1b4ImQ==
=Euo6
-----END PGP SIGNATURE-----

--yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f72f3b3-d890-bed2-742e-fcc39c5618e3>