Article Title: how to restore Raid hard disks damaged by Raid tools. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Test environment:
VMware 1, 6.0
Rad Hat Linux 9.0
Raidtools 1.00.3
Raid1 has been implemented
Configuration file/etc/raidtab
raiddev /dev/md0raid-level 1nr-raid-disks 2chunk-size 64kpersistent-superblock 1nr-spare-disks 0 device /dev/sda1 raid-disk 0 device /dev/sdb1 raid-disk 1
|
Simulate/dev/sdb1 damage and reload the hard disk
1. Use Fdisk to re-partition after restarting. The partition must be the same as/dev/sda1 and the partition format is set
Linux raid autodetect
2. format the New Hard Disk
3. Load the new hard disk to raid1 and run the following command:
Raidhotadd/dev/md0/dev/sdb1
The system automatically synchronizes the two hard disks.