I almost lost all my personal data due to a disk corruption caused by a power failure.
I guess the reason of the corruption is that the write back setting of the Mega Raid Card is Write Back with BBU. Meanwhile, the BBU of raid card ran into a low battery state. Thus, the raid card with no time to write the lastest data to the real hard disks.
Some tools maybe work for the recovery of the data.
https://virtualhobbit.com/2016/08/01/recovering-data-from-damaged-vmfs-partitions/
https://manpages.ubuntu.com/manpages/bionic/man8/fsck.vmfs.8.html
http://www.vmfsrecover.com/
Or search with keywords:
VMFS
is the Virtual Machine File System used in ESXI.vmfs fsck
is a File System Check(fsck) tool for vmfs.
Jan. 23th, 2022
凌晨,发现最重要的数据用的并不是vmfs,而是ext4文件系统,所以能够通过fuse和fsck把大部分数据恢复。太幸运了!
Jan. 24th, 2022
凌晨,发现我是非常幸运的!
vmfs的bad block并没有影响vmdk虚拟磁盘文件,所以能够正常把vmdk文件正常挂载到操作系统。因此只需要解决如何把vmdk中的逻辑卷lvm挂载到ubuntu mount-unknown-filesystem-type-lvm2-member的问题。
成功挂载之后发现虚拟机数据一切正常!
剩下的就是花时间重建VM了。