svn commit: r264378 - head/sys/geom/part

Andrey V. Elsukov bu7cher at yandex.ru
Tue Oct 9 08:41:25 UTC 2018


On 08.10.2018 19:46, John Baldwin wrote:
> This needs a way to be overridden.  If you have a machine installed with a
> layout created prior to this change (e.g. a zpool mirror or RAID or some
> other mirror or RAID), you can no longer create a matching partition since
> the starting sector is now always 40 instead of 34 and the partition size
> 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 are
> 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 by
> userland instead.
> 
> 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.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20181009/4bca2c97/attachment.sig>


More information about the svn-src-all mailing list