Replace hard drive with soft RAID 1

Source: Internet
Author: User

Soft Raid 1 Replace bad Disk 1. buy a hard disk of the same size. install the new hard disk on the machine. partition the hard disk and set the t type to "fd" (the new drive letter I added is/dev/sdb # fdisk/dev/sdb 4. run "partprobe" to allow the kernel to reload the partition table. stop RAID1 mounting # umount/dev/md0 6. remove the damaged device # mdadm/dev/md0-r/dev/sdxx 7. view the status of the current array: # more/proc/mdstat 8. for actual operations, pay attention to two points: first, correct partition of the new disk before adding; second, replace/dev/sdb1 with the device name of the added device. # Mdadm/dev/md0-a/dev/sdb1 9. view the status of the current array: # more/proc/mdstat unused devices: <none> [root @ server13/] # more/proc/mdstat Personalities: [raid1] md0: active raid1 sdb1 [2] sdc1 [1] 976759936 blocks [2/1] [_ U] [> ................... .] recovery = 0.1% (1366208/976759936) finish = 107.0 min speed = 151800 K/sec 10. you can see that the data is being synchronized.

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.