Azure VM LVM corruption fix
Solution:
Make new VM
Mounted Disk on that
Mounted each LVM partition
Dry run with:
xfs_repair -n /dev/mapper/LVMPartitionNameRepaired partitions with:
xfs_repair /dev/mapper/LVMPartitionNameThe ones that could not be repaired like that, used last resort:
xfs_repair -L /dev/mapper/LVMPartitionNameTested again on all partitions with:
xfs_repair /dev/mapper/LVMPartitionNameClosed new VM
De-allocated disk
Mounted disk back on the Old VM (in stopped state)
Started Old VM
Tested SSH access and GUI (Both worked)
Deleted Newly Created VM and resources associated
Last updated