[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
Wed Dec 2 16:17:00 UTC 2015


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 <mathieu-tl at ubuntu.com>  Wed, 02 Dec 2015
10:29:04 -0500

** Changed in: partman-auto-raid (Ubuntu)
       Status: New => Fix Released

-- 
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:
  Fix Released

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