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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to