Centos5.5 raid1 error and Re-Sync

Source: Internet
Author: User

Today, the system checks the status of raid1 and finds degraded, because raid1 samba is still accessible. So I opened the chassis and checked the hard drive connection line and re-plugged the power cord.
Post self-check to another hard disk.
1. [root @ zh888 ~] # Mdadm-D/dev/md0
/Dev/md0:
Version: 0.90
Creation Time: Fri Sep 2 10:33:19 2011
Raid Level: raid1
Array Size: 78150656 (74.53 GiB 80.03 GB)
Used Dev Size: 78150656 (74.53 GiB 80.03 GB)
Raid Devices: 2
Total Devices: 1
Preferred Minor: 0
Persistence: Superblock is persistent
Update Time: Tue Sep 6 11:57:19 2011
State: clean, degraded
Active Devices: 1
Working Devices: 1
Failed Devices: 0
Spare Devices: 0
UUID: 57319c2a: 090717a6: 92042ec3: e00720c4
Events: 0.52
Number Major Minor RaidDevice State
0 3 64 0 active sync/dev/hdb
1 0 0 1 removed // actually/dev/hdd is lost.
 
2. mdadm/dev/md0-a/dev/hdb // Add/dev/hdd to the/dev/md0 device again, then wait until raid1 is synchronized to the clean state. To view the synchronization progress, use cat/proc/mdstat.
[Root @ zh888 ~] # Mdadm-D/dev/md0 // The synchronization is completed.
/Dev/md0:
Version: 0.90
Creation Time: Fri Sep 2 10:33:19 2011
Raid Level: raid1
Array Size: 78150656 (74.53 GiB 80.03 GB)
Used Dev Size: 78150656 (74.53 GiB 80.03 GB)
Raid Devices: 2
Total Devices: 2
Preferred Minor: 0
Persistence: Superblock is persistent
Update Time: Thu Sep 8 08:56:31 2011
State: clean
Active Devices: 2
Working Devices: 2
Failed Devices: 0
Spare Devices: 0
UUID: 57319c2a: 090717a6: 92042ec3: e00720c4
Events: 0.770
Number Major Minor RaidDevice State
0 3 64 0 active sync/dev/hdb
1 22 64 1 active sync/dev/hdd


Author: "There is a will !"

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.