partman-auto-raid can't handle the creation of more than 10 raid devices
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,
This bug was fixed in the package partman-auto-raid - 30ubuntu1
---------------
partman-auto-raid (30ubuntu1) xenial; urgency=medium
* Resynchronise with Debian. Remaining changes: auto-raid/ recipe to make it possible to
- Add raidid= syntax to partman-
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