How to recover from "Error : Alternate GPT is invalid, using primary GPT."

Solution Verified - Updated -

Issue

  • Error: kernel: Alternate GPT is invalid, using primary GPT.
kernel: Alternate GPT is invalid, using primary GPT.
kernel: sdz: sdz1
  • fdisk and parted command reports "Error : The backup GPT table is corrupt, but the primary appears OK, so that will be used."
fdisk -l /dev/sdz
The backup GPT table is corrupt, but the primary appears OK, so that will be used.  
Disk /dev/sdz: 9.1 TiB, 10000831348736 bytes, 2441609216 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3FCCXXXX-YYYY-48D2-ZZZZ-ABABABABABA

Device     Start        End    Sectors  Size Type
/dev/sdz1      6 2441609209 2441609204  9.1T IBM General Parallel Fs


$ parted -s /dev/sdz
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Model: WDC AAABBBCCCDDD (scsi)
Disk /dev/sdz: 2441609216s
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start  End          Size         File system  Name           Flags
 1      6s     2441609209s  2441609204s               GPFS:xxxyyyzzz  hidden

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content