How to restore data after system corruption in LinuxAS4

Source: Internet
Author: User
How to restore data after the Linux as4 system is damaged-Linux Enterprise Application-Linux server application information. See the following for details. Because my system uses the default installation (Redhat Enterprise Linux 4, the kernel parameter is 2.6.9-22. ELsmp), the system partition is LVM. After the system powers down, the system cannot start normally, and there is a lot of useful data in it. Now we need to recover the data.

Our idea is to use a good system and mount the current data disk to a good system for file copying.

The following is the implementation method:

(1) boot the system with the data disk as the boot disk

(2) enter the linux rescue option

(3) The prompt appears. Select skip and then do nothing.

(4) Go to the command line prompt to perform the operation.

(5) execute the command LVM

(6) run the LVRENAME command to modify the mount point of the data disk (because the mount points of the two systems are the same, you must change the name to avoid conflicts)

(7 # LVRENAME/dev/VolGroup00/LogVol00/dev/VolGroup01/LogVol01

(8) restart the system

(9) enter the terminal

(10) [root @ localhost ~] # Vgscan // scan the existing VG Partition

(11) [root @ localhost ~] # Vgdisplay // View Details

(12) [root @ localhost ~] # Mount/dev/VolGroup01/LogVol01-t/mnt // you can mount the new partition (all partitions on the data disk)

(13) Go to the/mnt/directory and you will be able to see all the damaged data disk information.

(14) unmount after use

(15) Success

Note: If the LVM partition is not used, it can be directly mounted to the target system (easy-to-use system), eliminating these cumbersome steps.

We recommend that you use manual partitions for system partitions, which is much easier to mount.

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.