Hi there! Today we had a major electricity outage. One of our machine with XCP-ng 8.2 could not start the local SR. I looked manually and found that one of the disk is gone. Running any LVM commands only result ``` /dev/sda3: Checksum error at offset 257024 Couldn't read volume group metadata from /dev/sda3. Metadata location on /dev/sda3 at 257024 has invalid summary for VG. Failed to read metadata summary from /dev/sda3 Failed to scan VG from /dev/sda3 Metadata location on /dev/sdb at 268800 begins with invalid VG name. Failed to read metadata summary from /dev/sdb Failed to scan VG from /dev/sdb ``` At this point looks like the metadata is corrupted. I have `/etc/lvm/backup/VG_XenStorage-...` in my hand; however, running `pvcreate` or `vgcfgrestore` outputs the same corruption message. `fdisk -l` and `blkid` shows UUID of each LVM. Here is the backup of LVM I mentioned ``` ... physical_volumes { pv0 { id = "x7Na0E-dSN2-QyRL-0psb-Bd3M-HmXZ-BpEPiG" device = "[unknown]" # Hint only status = ["ALLOCATABLE"] flags = ["MISSING"] dev_size = 199643231 # 95.1973 Gigabytes pe_start = 22528 pe_count = 24367 # 95.1836 Gigabytes } } ... ``` ``` NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 683.5G 0 disk sr0 11:0 1 1024M 0 rom sda 8:0 0 136.7G 0 disk ├─sda4 8:4 0 512M 0 part ├─sda2 8:2 0 18G 0 part ├─sda5 8:5 0 4G 0 part /var/log ├─sda3 8:3 0 95.2G 0 part ├─sda1 8:1 0 18G 0 part / └─sda6 8:6 0 1G 0 part [SWAP] ``` The first 2 disk is RAID 1 and 6 disks are in RAID 5. One disk in the RAID 5 is degraded (shows orange in the front). RAID controller is HP E200. `/dev/sda3` should be in the RAID 1 array, and `/dev/sdb` is RAID 5. Does anyone have similar problem before?