My VM refuses to boot suddenly.
Check from AWS console and found that server was not able to mount a file system.
To fix this, I had to remount the root volume on another server.
Deleted the fstab entry for the filesystem that is giving problems.
Mounted the root volume again on original server and got the server up and running again.
Now I had to check what is wrong with this file system.
Checked my PV’s
I know that my partition having issues is associated with Volume Group VG1.
Did an lvdisplay on volume VG1
# open tells me that no processes are currently using this device.
I try to mount the device manually and I get below error:
Looks like my logical volume is corrupt!
Since this was XFS file system, used xfs_repair to repair the volume.
Use fsck.ext4 to repair a ext4 volume.
Man page of xfs_repair with -L option looks scary, but that fixed my problem.
If there is another safe way of repairing, please comment.