This article uses the OEL5.8x64 system, the file system uses LVM volumes, there is also a general disk partition mounting for testing. Data recovery is required as follows: (1) The operating system is damaged due to power failure or other reasons, and the system cannot be properly guided or the network service cannot be started. (2) disk-related hardware faults, such as RA
This article uses the OEL5.8 x64 system, the file system uses LVM volumes, there is also a general disk partition mounting for testing.
Data recovery is required as follows:
(1) The operating system is damaged due to power failure or other causes, and the system cannot be properly guided or the network service cannot be started.
(2) disk-related hardware faults, such as RAID 1 and RAID 5, which can be forcibly started but will soon fail, A critical state occurs when the disk array is restarted before Disk Replacement. in this case, the data can be recovered.
(3) This document does not describe how to recover data in case of accidental deletion in a linux system, nor how to recover the system, but how to retrieve disk data in case of system failure.
This article from: http://koumm.blog.51cto.com
Method 1: Single-user mode
Note: The single-user mode is similar to the rescue mode. the rescue mode is advantageous only when the boot disk is used for boot. files such as fstab, passwd, and inittab are damaged and cannot be mounted on an LVM disk, other methods are required.
1.Description of single user mode
The single-user mode is the linux emergency start mode. you must use the console to start a connection. in this case, the system does not have a network or related services, and no password is required for logon, it is a way to determine the severity of operating system faults. you can change the password in single-user mode.
(1) press Edit E mode under the GRUB menu.
(2) select the KERNEL row
(3) enter 1 or single and press enter.
(4) Start by B
(5) enter the prompt
3.Start Network service
4.Start the SSH service
Then, you can use ssh and other network command tools to copy disk data.
Scp-r
The client ssh client tool copies data.
Rsync
Method 2: boot disk CFT-0.5.9
(CFT-0.5.9 is for IBM server WINPE boot disk, the current WINPE boot disk for PC, for the server because there is no array card driver can not identify the disk. CFT-0.5.9 WINPE for IBM server to add disk array, also has WINPE commonly used command tools, in a IBM x3650M3 server windows 2003 system due to the wrong configuration caused by the wrong password, this disk is successfully handled. it is strongly recommended.
1.Enable ext2 volume manager after startup
This tool can only open common Linux partitions, such as ext2, ext3, and ext4. LVM partitions cannot be opened. this RAW format is LVM partition.
19G ext3 partition.
The disk partition is successfully opened and data on the disk can be directly copied.
Method 3: LiveCD/LiveDVD boot disk
CentOS-6.5-LiveDVD boot disc:
Http://mirrors.163.com/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-LiveDVD.iso
1. Use a CentOS-6.5-LiveDVD boot disc to open the terminal window.
2. check the identified disk and identify whether it is an LVM volume or a common disk partition.
3. you can directly Mount common disk partitions.
4. for mounting logical volume disks, the livecd/livedvd command can be used to process LVM disks.
(1) scanning physical volumes and volume groups
(2) activate the physical volume and volume Group
# Vgchange-ay VolGroup00
(3) mount a logical volume
It can be mounted normally.
(4) you can copy data by using a USB flash drive or an SSH tool.
The above method can provide more methods for linux disk data to be taken out abnormally.
This article is from the "koumm linux technology blog" blog, please be sure to keep this source http://koumm.blog.51cto.com/703525/1377027