How to restore Raid hard drive damaged by Raid tools

Source: Internet
Author: User
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.

Related Article

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.