Re: Problem with ZFS version 15

From: Andrey V. Elsukov <bu7cher_at_yandex.ru>
Date: Tue, 20 Jul 2010 14:47:49 +0400
On 20.07.2010 13:51, Michael Gusek wrote:
>>>> and apply a new bootloader: gpart bootcode -b /boot/pmbr -p
>>>> /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt
>>>> scheme ! gpart show ad0 says "gpart: No such geom: ad0". How
>>>> can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror
>>>> on ad0 and ad1.

It is very strange why this command broke your GPT.
Actually incorrect PMBR can prevent probes for GEOM_PART_GPT.

>> I don't have such a backup, only the whole disk for now. Everything
>> else what can i do ? What if i initialize the gpt header: "gpart
>> create -s GPT ad0" ? Do i lost my data ?

GPT headers and tables will be initialized. After that you should
add all partitions with exactly same offsets and sizes. In this case
your data will not be touched.

-- 
WBR, Andrey V. Elsukov


Received on Tue Jul 20 2010 - 08:48:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC