Ubuntu11.10 a problem to be aware of when using soft RAID

Source: Internet
Author: User
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. This requires you to reconfigure mdadm and regenerate the initrd file: Execute dpkg-reconfigmdadm. One step is to select "continue to start the system when RAID is downgraded" and select "yes. Another reason is that at startup, it always enters busybox, Which is Ubun

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, which is a bug in Ubuntu 11.10.

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

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.