# Azure VM LVM corruption fix

### Solution:

* Make new VM
* Mounted Disk on that
* Mounted each LVM partition
* Dry run with:

```bash
xfs_repair -n /dev/mapper/LVMPartitionName
```

* Repaired partitions with:

```bash
xfs_repair /dev/mapper/LVMPartitionName
```

* The ones that could not be repaired like that, used last resort:

```bash
xfs_repair -L /dev/mapper/LVMPartitionName
```

* Tested again on all partitions with:

```bash
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
