[Bug 1096220] Re: partman-auto-raid can't handle the creation of more than 10 raid devices
Launchpad Bug Tracker
1096220 at bugs.launchpad.net
Thu Mar 5 16:27:20 UTC 2015
** Branch linked: lp:debian/jessie/partman-auto-raid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto-raid in Ubuntu.
https://bugs.launchpad.net/bugs/1096220
Title:
partman-auto-raid can't handle the creation of more than 10 raid
devices
Status in partman-auto-raid package in Ubuntu:
New
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,
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto-raid/+bug/1096220/+subscriptions
More information about the foundations-bugs
mailing list