There was a sudden tragedy in a buddy's VPS. It was not difficult to ask for help. The recovery result is as follows:
First, get a VPS that is different from the original system. The purpose is to have a different volume group name.
He used 32bit. I used 64bit, and then separated the original hard disk and hung it on the new VPS.
1. vgscan | grep-I volgroup # search for the volume label
Activate
2. vgchange -- available y volume name
3. mount/dev/volume label/directory to be mounted, and an error occurs.
Mount: wrong fs type, bad option, bad superblock on/dev/VolGroup00/LogVol00
Try to fix
4. fsck-B/dev/VolGroup00/LogVol00
Then print the superblocks Information
5. dumpe2fs/dev/VolGroup00/LogVol00
Restart and mount again
Then print suprtblocks Information
[Root @ MyVPS2098/] # fsck/dev/VolGroup00/LogVol00
Fsck 1.39 (29-May-2006)
E2fsck 1.39 (29-May-2006)
/Dev/VolGroup00/LogVol00: clean, 230782/7010720 files, 1685264/7036928 blocks
Mount
[Root @ MyVPS2098/] # mount/dev/VolGroup00/LogVol00/mnt
[Root @ MyVPS2098/] # cd/mnt
[Root @ MyVPS2098 mnt] # ls
Bin boot dev etc home lib lost + found media misc mnt net opt proc root sbin selinux srv sys tmp usr var