repairing esxi guest system after power failure

URL Link //n.sfs.tw/15634

2022-03-03 16:09:58 By

a centos7 guest system on esxi reboot failed after host power issue,

trying xfs_repair command at first, result shows "could not initialize XFS library" message,

you'll need to do steps as following:

1. mount a live-cd system from esxi control interface

1-1. setup guest booting option from web configuration interface:

check "force entering BIOS setting after next booting process" option

 

1-2. start guest virtual machine with live-cd iso file from host

 

2. umount any lvm directory

use df -h to locate correct path of lvm directories

like /dev/mapper/...

if facing a busy device issue, use umount -f

3. xfs_repair /lvm_directory

https://www.thegeekdiary.com/running-repairs-on-xfs-filesystems/