Delete raid1 by mistake and restore raid1

Source: Internet
Author: User
Today, as the customer needs it, we need to change the previous raid 5 to RAID0. In a simple environment, this is one of the storage devices of a vendor. the OS is of the linux version, with 12 2 tsata disks and LSI hard RAID. I made two of them RAID 1, ubuntu11.04, and 9 + 1 for the other 10 disks...

Today, as the customer needs it, we need to change the previous raid 5 to RAID0. In a simple environment, this is one of the storage devices of a vendor. the OS is of the linux version, with 12 2 tsata disks and LSI hard RAID. I used two of them as RAID 1, ubuntu 11.04, and 9 + 1 as RAID 5. For example, you can see the configuration already done

 
I accidentally entered -- megacli-character lddel-L1-aALL ...... As a result, the system cannot get up. Delete the RAID information of the hard disk where the ubuntu system is located.
At this time, you cannot restart the system because the boot information cannot be found and the operating system cannot start.
Since the above data is not very important, we did not copy two new disks as dd, and directly try the new method, use megacli to re-create a raid identical to raid1 (note that the slot number must be the same, because a total of 12 disks and 10 disks are used as raid 5, therefore, the remaining two disks must be RAID 1)
After carefully viewing the slot number information step by step, use megacli to re-create a raid 1 and restart the system.
Conclusion: when we execute a command, we must be cautious. otherwise, some unexpected errors may occur. Second, when an error occurs, do not be confused. Otherwise, it is easy to do something worse. if I find that the raid information is deleted and restarted immediately, the system may not be able to access it, let alone re-build raid1. But I guess, can I manually create raid1 in webbios? Yes .....


Author: "star & storage"

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.