Corrupt primary EFI label

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

Corrupt primary EFI label

Postby LOWiQ » Mon Dec 23, 2019 7:27 pm

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!!
LOWiQ
 
Posts: 6
Joined: Thu Dec 12, 2019 10:43 am

Re: Corrupt primary EFI label

Postby lundman » Mon Dec 23, 2019 9:27 pm

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
User avatar
lundman
 
Posts: 798
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Corrupt primary EFI label

Postby LOWiQ » Tue Dec 24, 2019 8:28 am

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!
LOWiQ
 
Posts: 6
Joined: Thu Dec 12, 2019 10:43 am


Return to Absolute Beginners Section

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron