Page 1 of 1

Corrupt primary EFI label

PostPosted: Mon Dec 23, 2019 7:27 pm
by LOWiQ
So I've been having a b of a time trying to get another mirrored set added to my VDEV. Formatted them a few different ways and finally filled them up with some zero's which seemed to help.

I ran: sudo zpool add Tank mirror disk2 disk4
And got: invalid vdev specification
use '-f' to override the following errors:
/dev/disk2 contains a corrupt primary EFI label.
/dev/disk4 contains a corrupt primary EFI label.

Used the -f flag and it finally succeeded.

Now when I ZPool status though I have:

NAME STATE READ WRITE CKSUM
Tank ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
media-B6960342-3925-A243-B498-BB7CADF5B687 ONLINE 0 0 0
media-75F327A2-0A30-CD4F-BA5D-DDB0C595A988 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
disk2 ONLINE 0 0 0
disk4 ONLINE 0 0 0

Do the labels matter for anything? Anyway to fix them? Thanks!!

Re: Corrupt primary EFI label

PostPosted: Mon Dec 23, 2019 9:27 pm
by lundman
It had bad EFI labels, then suggested to use -f to write EFI labels to it, so you did. In theory it should be good to go.

You might want to export, and import, so all disk names change to ID

Re: Corrupt primary EFI label

PostPosted: Tue Dec 24, 2019 8:28 am
by LOWiQ
lundman wrote:It had bad EFI labels, then suggested to use -f to write EFI labels to it, so you did. In theory it should be good to go.

You might want to export, and import, so all disk names change to ID



You rock!

NAME STATE READ WRITE CKSUM
Tank ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
media-B6960342-3925-A243-B498-BB7CADF5B687 ONLINE 0 0 0
media-75F327A2-0A30-CD4F-BA5D-DDB0C595A988 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
media-9B5D5FD4-47CC-C74F-A2D0-4B5251177095 ONLINE 0 0 0
media-A72741A2-B1CF-1440-9377-1F6F493B185D ONLINE 0 0 0

Simple export/import and we're golden. Thanks again and Merry Christmas!