Notes for using soft RAID in Ubuntu

Source: Internet
Author: User
I recently encountered a very strange problem when I was doing soft RAID. The operating system version is Ubuntu12.04Server. I found the following article, which can solve this problem well. Soft RAID is used on Ubuntu11.10. When the system is restarted, manual intervention is required to access the system. There are two reasons: first, it is because the Initial Startup Process is interrupted after the software RAID is reduced, and confirmation is required. You need to reconfigure mdadm and regenerate the initrd file: Run dpkg-reco

Recently, I encountered a very strange problem when I was doing soft RAID. The operating system version is Ubuntu 12.04 Server.

I found the following article to solve this problem.

A Soft RAID is used on Ubuntu 11.10. When the system is restarted, manual intervention is always required to enter the system.

There are two reasons: first, it is because the Initial Startup Process is interrupted after the software RAID is reduced, and confirmation is required.

You need to reconfigure mdadm to regenerate the initrd file:

Run dpkg-reconfig mdadm

One step is to select "Start the system when RAID is downgraded" and select "yes.

Another reason is that at startup, busybox is always entered. This is a bug in Ubuntu 11.10, as described in the following file:

Need to modify:/usr/share/initramfs-tools/scripts/mdadm-functions

Set:

Degraded_arrays ()
{
Mdadm -- misc -- scan -- detail -- test>/dev/null 2> & 1
Return $ ((! $ ?))
}

Add a row and change it:

Degraded_arrays ()
{
Udevadm settle
Mdadm -- misc -- scan -- detail -- test>/dev/null 2> & 1
Return $ ((! $ ?))
}

Then, regenerate initrd:

Update-initramfs-u

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.