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/LVMPartitionName
  • Repaired partitions with:

xfs_repair /dev/mapper/LVMPartitionName
  • The ones that could not be repaired like that, used last resort:

xfs_repair -L /dev/mapper/LVMPartitionName
  • Tested again on all partitions with:

xfs_repair /dev/mapper/LVMPartitionName
  • Closed 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