[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-08-08 Thread Christian Hudon
Any reason why the following patches haven't been folded into Ubuntu
10.04 LTS? I had a similar problem (create md0 RAID1 array with one
device missing, after reboot it comes up as md_d0 instead) and these
patches (installed from the two packages in the PPA) fix that. It would
have saved me a couple of hours of work.

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0001-map-rebuild-map-if-it-doesn-t-exist.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1819969/+files/0001-map-rebuild-map-if-it-doesn-t-exist.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0002-maps-Fix-bugs-in-map_read.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1819971/+files/0002-maps-Fix-bugs-in-map_read.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0003-mapfile-fix-bug-in-testing-for-var-run-mdadm.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1819972/+files/0003-mapfile-fix-bug-in-testing-for-var-run-mdadm.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0004-mapfile-allow-the-path-name-to-the-device-to-be-empt.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1819977/+files/0004-mapfile-allow-the-path-name-to-the-device-to-be-empt.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0005-mapfile-Fix-off-by-one-error-in-RebuildMap.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1819993/+files/0005-mapfile-Fix-off-by-one-error-in-RebuildMap.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0007-fix-add_dev-handling-of-broken-links.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820017/+files/0007-fix-add_dev-handling-of-broken-links.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0008-Fix-an-error-when-assembling-arrays-that-are-in-the-.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820018/+files/0008-Fix-an-error-when-assembling-arrays-that-are-in-the-.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0009-Adjust-major-number-testing-to-allow-for-extended-mi.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820019/+files/0009-Adjust-major-number-testing-to-allow-for-extended-mi.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0010-mapfile-when-rebuilding-choose-an-appropriate-name-i.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820020/+files/0010-mapfile-when-rebuilding-choose-an-appropriate-name-i.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0011-Rename-open_mddev-to-create_mddev.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820021/+files/0011-Rename-open_mddev-to-create_mddev.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0012-Incremental-lock-against-multiple-concurrent-additio.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820022/+files/0012-Incremental-lock-against-multiple-concurrent-additio.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0013-Add-locks-for-Manage_runstop.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820023/+files/0013-Add-locks-for-Manage_runstop.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 
0014-Bug-fixing-for-mdadm-map-file-reading-and-dev-name-c.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820024/+files/0014-Bug-fixing-for-mdadm-map-file-reading-and-dev-name-c.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0015-Partition-creation-logic-fixing.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820025/+files/0015-Partition-creation-logic-fixing.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0018-Initramfs-to-set-hostname-for-autoassembly.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820027/+files/0018-Initramfs-to-set-hostname-for-autoassembly.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0019-Always-set-homehost-if-not-specified.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820046/+files/0019-Always-set-homehost-if-not-specified.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande

** Patch added: 0017-Fixed-locking.patch
   
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/615186/+attachment/1820026/+files/0017-Fixed-locking.patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Surbhi Palande
1) The ppa requested for testing consists of these patches. They are needed for 
the proper working of mdadm auto assembly.
2) Also for the mdadm autoassembly to work properly, the following needs 
sponsorship for maverick and lucid:
https://code.launchpad.net/~csurbhi/+junk/initramfs.mdadm.fixes.

Please do consider merging these patches for maverick and lucid. Thanks!

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2011-01-31 Thread Brian Murray
** Tags added: patch

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2010-12-30 Thread Nicolas Van Eenaeme
Hi all,

Surbhi's packages also fixed my problem! Great work and thanks a lot!

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

Title:
  md_d0 array fabricated, prevents mounting md0 partitions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2010-10-22 Thread ugmoe2000
Surbhi, your modified mdadm package alone fixed the bug for me. THANK
YOU THANK YOU THANK YOU -- this bug has been affecting me for what seems
like a few years now. My workaround prior to this was a startup script
in rc.local which auto deleted the defunct /dev/md_d0  /dev/md_d1
devices then scanned and assembled available arrays. It's much nicer
when it just works!

-- 
md_d0 array fabricated, prevents mounting md0 partitions
https://bugs.launchpad.net/bugs/615186
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2010-10-20 Thread Surbhi Palande
Hie Michael DePaulo,
Thanks a lot for your bug report. I have created a mdadm test package, which I 
suppose should fix your bug. Will you please care to try this package? Remember 
that this is a test package. If this fixes the bug for you (and for others 
too), we will reflect these changes in mdadm updates.

JFYI, for hitherto Ubuntu releases the mdadm package shall stay at 2.7.1
However Natty would have mdadm  at 3.4.1. This procedure is intended to
test the mdadm fixes for 2.7.1. Here is the rough procedure that needs
to be followed:

Testing auto-assembly of your md array when your rootfs lies on it: 
1)Install the mdadm package and initramfs package kept at:
https://edge.launchpad.net/~csurbhi/+archive/mdadm-autoassembly
2)Run /usr/share/mdadm/mkconf and ensure that your /etc/mdadm/mdadm.conf has 
the array definition. 
a) Save your original initramfs in /boot itself by say /boot/initrd-old.img. 
b) Then run update-initramfs -c -k your-kernel-version. Store this iniramfs 
as /boot/initrd-new.img. We shall use this initramfs as a safety net. If you 
cannot boot with the auto-assembly fixes, then you should not land in a foot in 
your mouth situation. Through grub's edit menu, you can then resort to this 
safety net by editing the initrd=initrd-new.img (or if this does not work for 
some random reason then resort back to your older initrd=initrd-old.img) This 
way you will be sure that you can still boot your precious system.
c) Now comment or remove the ARRAY definitions from your /etc/mdadm/mdadm.conf  
and once again run the same “update-initramfs -c -k your-kernel-version” to 
generate a brand new initramfs. 
3)Run mdadm –detail –scan and note the UUIDs in the array. Note the hostname 
stored in your array. Does it not match with your real hostname? Then we can 
fix that at the initramfs prompt that you inevitably will land at if you try 
auto-assembly. Also note the device components that form the root md-device. 
Keep this paper for cross checking when you reboot
4)Reboot.
5)If you are at the initramfs prompt here are the things that you should first 
ensure:
a) ls /bin/hostname /etc/hostname - are these files present?
b) run “hostname”. Does this show you the hostname that your system is intended 
to have? Is it the same as the contents of /etc/hostname. 
c) ls /var/run – Is this dir there?
If you answer yes to the above three questions, then things are so far so good. 
Now run the following command:
mdadm –assemble -U uuid /dev/md-name dev-components-listed here
Your mdadm –detail –scan that you ran previously should have given you the 
component names if you dont know it right now. Hopefully you have  them listed 
on your paper.
Eg in my case I ran:
mdadm –assemble -U uuid /dev/md0 /dev/sda1 /dev/sdb1 
Again run:
mdadm –detail –scan md-device and verify that the uuids are indeed updated 
and the hostname reflects the hostname that is stored /etc/hostname. You can 
now press Ctr+D and you should come back to the root prompt. However you still 
need to test auto-assembly of your root md device. To do that simple reboot and 
you should not see the face of initramfs this time. You should land gently on 
your root prompt as you expected. If you do not see the light of the rootfs 
prompt this way or using this initramfs, then as mentioned earlier, please 
avail your saved initrd images through grub. Skip the further steps in this 
case. Update the launchpad bugs, saying you could not get to the root prompt 
with manual assembly as well. First we need to get manual assembly fixed for 
you before worrying about auto-assembly. But hopefully this wont be the case.
6)If in the first place your uuid matched with that of the hostname, because 
you already had updated the array meta data with the -U uuid command, then with 
these packages, ideally, you should directly see the root prompt without any 
problem.
7)If either way, you still see initramfs and are not seeing the root prompt, 
then kindly upload the following on the respective launchpad bugs related to 
mdadm:
a) output of /var/run/mdadm.map
b) output of /proc/mdstat.
c) output of hostname (in initramfs)
d) output of mdadm –detail –scan root-md-device (once you have assembled the 
array manually and have got at the root prompt)
In order to save this output when you are the initramfs prompt you should copy 
these files in /dev/ and then manually assemble your array. Once you get to the 
root prompt, you would find these files in /dev/. Please attach these to the 
launchpad bugs and we can start debugging from there.

For auto-assembly of your non root devices, this should not bring you to 
initramfs, unless you have the device mounted with a fs using fstab and are not 
using “nobootwait” in the options section for your fs. Once you are in the root 
fs, and your non -root array is not up with auto-assembly, then you can very 
easily attach the output of the /var/run/mdadm.map and /proc/mdstat. If needed, 
I will also post a 

[Bug 615186] Re: md_d0 array fabricated, prevents mounting md0 partitions

2010-08-08 Thread Michael DePaulo

** Attachment added: BootDmesg.txt
   http://launchpadlibrarian.net/53303170/BootDmesg.txt

** Attachment added: CurrentDmesg.txt
   http://launchpadlibrarian.net/53303171/CurrentDmesg.txt

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/53303172/Dependencies.txt

** Attachment added: Lspci.txt
   http://launchpadlibrarian.net/53303173/Lspci.txt

** Attachment added: Lsusb.txt
   http://launchpadlibrarian.net/53303174/Lsusb.txt

** Attachment added: MDadmExamine.dev.sdb.txt
   http://launchpadlibrarian.net/53303175/MDadmExamine.dev.sdb.txt

** Attachment added: MDadmExamine.dev.sdb1.txt
   http://launchpadlibrarian.net/53303176/MDadmExamine.dev.sdb1.txt

** Attachment added: MDadmExamine.dev.sdc.txt
   http://launchpadlibrarian.net/53303177/MDadmExamine.dev.sdc.txt

** Attachment added: MDadmExamine.dev.sdc1.txt
   http://launchpadlibrarian.net/53303178/MDadmExamine.dev.sdc1.txt

** Attachment added: ProcCpuinfo.txt
   http://launchpadlibrarian.net/53303179/ProcCpuinfo.txt

** Attachment added: ProcInterrupts.txt
   http://launchpadlibrarian.net/53303180/ProcInterrupts.txt

** Attachment added: ProcModules.txt
   http://launchpadlibrarian.net/53303181/ProcModules.txt

** Attachment added: ProcMounts.txt
   http://launchpadlibrarian.net/53303182/ProcMounts.txt

** Attachment added: ProcPartitions.txt
   http://launchpadlibrarian.net/53303183/ProcPartitions.txt

** Attachment added: UdevDb.txt
   http://launchpadlibrarian.net/53303184/UdevDb.txt

** Attachment added: UdevLog.txt
   http://launchpadlibrarian.net/53303185/UdevLog.txt

** Attachment added: initrd.files.txt
   http://launchpadlibrarian.net/53303186/initrd.files.txt

** Attachment added: mdadm.conf.txt
   http://launchpadlibrarian.net/53303187/mdadm.conf.txt

-- 
md_d0 array fabricated, prevents mounting md0 partitions
https://bugs.launchpad.net/bugs/615186
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs