[Bug 560748] Re: Installer hides the master device for dmraid 10 (1+0) configurations

Robert Collins 560748 at bugs.launchpad.net
Wed Jun 29 21:16:17 UTC 2011


Where is this mailing list?

For ICH*R controllers - they generate /dev/mapper/isw_$UUID$NAME$index
as the root node for arrays.
and append -$index for subordinate nodes
and p$index for partitions

so
/dev/mapper/isw_iuiewfDEMO0
is a root

/dev/mapper/isw_iuiewfDEMO0p1 
is not
/dev/mapper/isw_iuiewfDEMO0-0
is not

/dev/mapper/isw_iuiewfDEMO1
is

etc.


** Summary changed:

- Installer does not give correct choice of device to install to when using dmraid 0+1
+ Installer hides the master device for dmraid 10 (1+0) configurations

** Description changed:

  When using dmraid 0+1, several devices appear in /dev/mapper to describe
  the strips that form the legs of the mirror, and the mirror itself.  The
  installer only gives the choice of using the two stripes that form the
  legs, and not the whole mirror.  For example, in /dev/mapper:
  
  nvidia_bfcdciea-0 and nvidia_bfcdciea-1 are the stripes, which are then
  mirrored to create nvidia_bfcdciea.  The partitions are then detected on
  nvidia_bfcdciea as nvidia_bfcdciea[1234].  See the screen shot in
  comment #24 for what Ubiquity shows during the partitioning stage.
+ 
+ Workarounds
+ ===========
+ 
+ Build a new libparted during the install:
+  - boot the live cd
+  - open a terminal and do:
+ $ sudo apt-get build-dep parted
+ $ cd /tmp
+ $ apt-get source parted
+ edit debian/patches/dmraid.patch
+ 
+ look for the line
+ +                                                       if (_is_dmraid_major(buf)) {
+ (its about 20 lines into the patch)
+ and change it to be
+ +                                                       if (1) {
+ 
+ Then run 
+ $ dpkg-buildpackage -rfakeroot -us -uc
+ and finally 
+ $ sudo dpkg -i ../libparted0debian1_*
+ 
+ To test the workaround is in place run
+ $ sudo parted_devices
+ 
+ This should now show (too many) devices but include the root one (e.g.
+ /dev/mapper/isw-someuuid_NAME0).
+ 
+ Run ubiquity and the install will now let you choose the right device.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/560748

Title:
  Installer hides the master device for dmraid 10 (1+0) configurations

Status in “parted” package in Ubuntu:
  In Progress

Bug description:
  When using dmraid 0+1, several devices appear in /dev/mapper to
  describe the strips that form the legs of the mirror, and the mirror
  itself.  The installer only gives the choice of using the two stripes
  that form the legs, and not the whole mirror.  For example, in
  /dev/mapper:

  nvidia_bfcdciea-0 and nvidia_bfcdciea-1 are the stripes, which are
  then mirrored to create nvidia_bfcdciea.  The partitions are then
  detected on nvidia_bfcdciea as nvidia_bfcdciea[1234].  See the screen
  shot in comment #24 for what Ubiquity shows during the partitioning
  stage.

  Workarounds
  ===========

  Build a new libparted during the install:
   - boot the live cd
   - open a terminal and do:
  $ sudo apt-get build-dep parted
  $ cd /tmp
  $ apt-get source parted
  edit debian/patches/dmraid.patch

  look for the line
  +                                                       if (_is_dmraid_major(buf)) {
  (its about 20 lines into the patch)
  and change it to be
  +                                                       if (1) {

  Then run 
  $ dpkg-buildpackage -rfakeroot -us -uc
  and finally 
  $ sudo dpkg -i ../libparted0debian1_*

  To test the workaround is in place run
  $ sudo parted_devices

  This should now show (too many) devices but include the root one (e.g.
  /dev/mapper/isw-someuuid_NAME0).

  Run ubiquity and the install will now let you choose the right device.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/560748/+subscriptions




More information about the foundations-bugs mailing list