While rebooting my system I noticed the messages "the primary GPT table is corrupt or invalid." and "using the secondary instead" on a single drive in a RaidZ3 array.
I ran a smartctl extended test and that showed no errors and then scrubbed the pool - all the data is OK.
I offlined the drive referred to in the messages (using zpool offline) then used gpart to recover the primary GPT table and checked manually that it was correct.
I onlined the drive again. There was a very brief resilvering phase and at the end zpool status said all was ok. Then checked the GPT table and it was again corrupt. Another pool scrub showed no data errors.
I presume that the resilvering corrupted the GPT table again but don't know that for certain. What's the correct procedure for fixing a corrupt GPT table?
I ran a smartctl extended test and that showed no errors and then scrubbed the pool - all the data is OK.
I offlined the drive referred to in the messages (using zpool offline) then used gpart to recover the primary GPT table and checked manually that it was correct.
I onlined the drive again. There was a very brief resilvering phase and at the end zpool status said all was ok. Then checked the GPT table and it was again corrupt. Another pool scrub showed no data errors.
I presume that the resilvering corrupted the GPT table again but don't know that for certain. What's the correct procedure for fixing a corrupt GPT table?
Last edited: