partman-auto-raid can't handle the creation of more than 10 raid devices

Bug #1096220 reported by Mohammad Shamma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-auto-raid (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

distribution: precise
package: partman-auto-raid
file: ./auto-raidcfg
function: create_raid
line: 69

The script tries to figure out what number to use for the md device that will be created next. The script searches for all active md devices, extracts their numbers, sorts them out to pick up the largest numbers and finally sets the next number to use to "largest number + 1".

The problem here is that the sort operation is on strings rather than numbers. For example, if we already have two raid devices md9 and md10. The number 9 will be detect as being the largest active md device number. Hence the next md device to be created will be assigned number 10, which conflicts with /dev/md10 that already exists. This causes the auto raid part of installation to fail.

The patch is a one liner which is simply adding the "-n" option to the sort command.

Cheers,

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-auto-raid - 30ubuntu1

---------------
partman-auto-raid (30ubuntu1) xenial; urgency=medium

  * Resynchronise with Debian. Remaining changes:
    - Add raidid= syntax to partman-auto-raid/recipe to make it possible to
      preseed RAID creation without having to guess partition device names
      in advance.

 -- Mathieu Trudel-Lapierre <email address hidden> Wed, 02 Dec 2015 10:29:04 -0500

Changed in partman-auto-raid (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.