Solved da1: the primary GPT table is corrupt or invalid

Hi All,

I keep getting this error:
Code:
GEOM: da1: the primary GPT table is corrupt or invalid.
GEOM: da1: using the secondary instead -- recovery strongly advised.
GEOM: diskid/DISK-00A123456789: the primary GPT table is corrupt or invalid.
GEOM: diskid/DISK-00A123456789: using the secondary instead -- recovery strongly advised.
Previously it was mounted and labelled with glabel(8).

While I was playing with ZFS installation I moved things around a bit. Now I am settled and all working fine but I see the above errors in dmesg.

This drive is part of ZFS mirror (simple 2 disk mirror).

How can I fix it without corrupting it?

Thanks
 
Last edited by a moderator:
The reason of this error is you forgot to destroy geom(8) and placed ZFS on top of a GPT labeled disk. The backup GPT table is not overwritten and now it triggers this warning. The error is harmless, and you can ignore it and wait when this place will be occupied with data or recreate ZFS for that hard drive.
 
Great thanks. Indeed I forgot to remove the GPT and the label.

As you said, it is harmless and the mirror is working just fine, soon it will be filled up.

Thanks
 
Last edited by a moderator:
Back
Top