VPS data recovery notes for centos

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.