Hi to all, I request your help with this issue of corrupted GPT table and degraded raid.
Configuration is a raspi 3 booting from a SD card and two SSD disks on USB adapters. Worked fine for a couple of months till this appeared in the e-mail:
Code
A DegradedArray event had been detected on md device /dev/md0.
Personalities : [raid1]
md0 : active raid1 sda[1]
244067456 blocks super 1.2 [2/1] [_U]
bitmap: 2/2 pages [8KB], 65536KB chunk
unused devices: <none>
fdisk -l reports two primary GPT tables are corrupt:
Code
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 122879 114688 56M c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 7028735 6905856 3.3G 83 Linux
/dev/mmcblk0p3 7028736 31116287 24087552 11.5G 83 Linux
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sda: 232.9 GiB, 250059348992 bytes, 488397166 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D262C86A-4531-4381-B68F-6E58602A358F
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sdb: 232.9 GiB, 250059348992 bytes, 488397166 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6DB82E81-AFFE-4C8D-AF66-347D51D16BA5
Device Start End Sectors Size Type
/dev/sdb1 2048 488397132 488395085 232.9G Linux filesystem
Disk /dev/md0: 232.8 GiB, 249925074944 bytes, 488134912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Alles anzeigen
No error found in the output of smartctl -s on -a /dev/sda and smartctl -s on -a /dev/sdb therefor I think both disks are just fine and it is a 'logical' corruption rather than a 'physical' failure.
I guess the GPT table issue has to be solved first and then rebuild/recover the raid. The question is: how?