[Bug 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2010-01-28 Thread Teej
Thank you for updating this. Can you please run the apport-collect
command as detailed in my last comment. This will give us most, if not
all the debugging information the developers will need, although what
you have provided so far has been great. Thank you.

** Summary changed:

- [gutsy] mdadm, initramfs missing ARRAY lines
+ [karmic] mdadm, initramfs missing ARRAY lines

-- 
[karmic] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2010-01-27 Thread Patrick
Confirming that the problem still exists in Karmic.

If /etc/mdadm/mdadm.conf does not contain an ARRAY line, the system will
not boot from an md array.

If I run mdadm --auto-detect from the recovery console md0 is created
without needing the ARRAY line.

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2010-01-27 Thread Patrick
After doing a bit of digging it looks like the arrays are built using
the --incremental option to mdadm, specifically with following UDEV
rule:

SUBSYSTEM==block, ACTION==add|change, ENV{ID_FS_TYPE}==linux_raid*, \
RUN+=/sbin/mdadm --incremental $env{DEVNAME}

Here is my not-working mdadm.conf:


# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST system

# instruct the monitoring daemon where to send mail alerts
MAILADDR patr...@motec.com.au

# definitions of existing MD arrays

# This file was auto-generated on Wed, 27 Jan 2010 15:02:41 +1100
# by mkconf $Id$


If I add a line:
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=00.90 UUID=blah:blah:blah:blah

The system will boot fine, which suggests that we are breaking one of
the rules that mdadm requires for --incremental to work (or mdadm has a
bug).

My first thoughts are:
1. is /proc/partitions is valid at the point where this UDEV rule runs.
2. does the homehost match. i.e. is gethostname working when this rule runs?

This is about where my knowledge is exhausted.

-Patrick

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2010-01-09 Thread Teej
Returning to Incomplete.
Can someone please provide the requested information and let us know if this is 
a problem in the latest Ubuntu release (Karmic), and if so, please run 
apport-collect 136252 without quotes and let it pull in the required 
debugging information.
Thank you.

** Changed in: mdadm (Ubuntu)
   Status: Triaged = Incomplete

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2009-11-25 Thread ceg
Current state of ubuntu systems with md raid:
https://wiki.ubuntu.com/ReliableRaid

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2009-06-08 Thread Neal H. Walfield
After updating to 9.04, I experienced a similar problem.

I have three md devices: md0 (/dev/sd{a,b}1, swap), md1 (/dev/sd{a,b}2, root),
and md4 (/dev/sd{a,b}3, home).  On boot, mdadm would incorrectly detect that
/dev/sda was an md device and create it.  Upon inspection (using mdadm -E),
/dev/sda, /dev/sdb, /dev/sda3, and /dev/sdb3 all had the same super block.
Zeroing the /dev/sda and /dev/sdb ones resulted in also zeroing the /dev/sda3
and /dev/sdb3 ones (which suggests that the /dev/sda3 superblock was being
detected as the /dev/sda one).

I changed my /etc/mdadm/mdadm.conf to have

  DEVICE /dev/sd??*

rather than

  DEVICE partitions

and the system booted fine.

While searching for this problem, I found that some people reported that
mdadm --incremental would not create their arrays properly whereas
mdadm -As worked fine.  I extracted the initrd (kernel 2.6.28-11-generic)
and found that this is indeed how the arrays are being built.  I didn't check
whether 8.10 uses --incremental or --assemble, but perhaps this is a starting
point for further investigation of this issue.

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2009-05-28 Thread Teej
Marking this bug as Triaged as there should be enough debugging information 
here for a developer to begin working on it. Please provide them with any 
information they need if requested. High importance set - problems with disk 
controller(s).
If anyone has Jaunty and this problem, would you run
apport-collect 136252
Thank you.

** Changed in: mdadm (Ubuntu)
   Importance: Undecided = Medium

** Changed in: mdadm (Ubuntu)
   Status: New = Confirmed

** Changed in: mdadm (Ubuntu)
   Status: Confirmed = Triaged

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2009-05-07 Thread Davias
Thank you for providing a solution - I printed the page and started to
update from 8.10 to 9.04 on AMD64 with /, /home and swap on md0, md1 
md2 on RAID1, plus a RAID0 on md3 using two spare partitions on my 2
SATA disks.

But... The upgrade just went as smooth as silk! The system booted just
fine. For now I just had to reconfigure VMWare server 2.

Not so for md3, the RAID0. Raid monitor says md_d3 (instead of calling
it md3): inactive sdb4[0](S)

Any help? TIA

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2009-04-28 Thread Slalomsk8er
After the update to 9.04 I had the same problems but could build the md
devices in the emergency shell and resumed booting with:

# mdadm --assemble --scan;exit

Today I found the fix. I removed the duplicated definitions of the
arrays in mdadm.conf with the output of:

# mdadm --detail  --scan

this added the information for the metadata -  0.90 if you are wondering

The other change that I made was editing the DEVICE line from:

DEVICE partitions

to:

DEVICE /dev/sda[1-4] /dev/sdb[1-4]

The last step was to rebuild the initrd with the new config file.

# update-initramfs

after that the system of my grandparents is booting again without the
need of them entering a cryptic line on every start up.

Some questions that still remain:

1. Why does the RAID brake on every ubuntu version upgrade since about 3 years?
2. Why the mdadm.conf contained duplicated array and device lines?
3. Why can't mdadm report a broken configuration in a way so that I don't need 
a week or two too fix the problem?

Regards, Dominik

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2008-09-29 Thread Tobias McNulty
Hey, I set the HOMEHOST line in my mdadm.conf and it worked like a
charm.  Thanks so much for posting this.  BTW this seems to be a
duplicate of https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/226484

When can we get a fix to this released?  This is pretty unacceptable
behavior, and there are all sorts of theories circulating out there as
to why it doesn't work (it took me several a couple hours to get to this
page).

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2008-03-19 Thread Jason Chrispens
I had a similar problem when attempting to move my root filesystem onto
a RAID-1 configuration.

mdadm wouldn't assmble the array while the initramfs was mounted, but
would when the normal root filesystem was mounted.

My mdadm.conf looks to be similar to those described, with a DEVICE
partitions line.

However, after a bit research, I think that my problem was with the
HOMEHOST system line.

mdadm uses HOMEHOST to determine which partitions to automatically
assemble into arrays.  When HOMEHOST is set to 'system' mdadm uses the
hostname of the system.

Unfortunately, the initramfs file system doesn't set a hostname (i.e. the 
hostname of the system in initramfs is '(none)'), which doesn't match the 
homehost of the partitions in the array, which causes mdadm to not 
automatically assemble any arrays.
(The first 64 bits of the SHA1 hash of homehost appears to be the last 64 bits 
of the array's UUID.)

Explicitly naming the arrays using ARRAY lines in mdadm.conf causes
mdadm to assemble those arrays without using homehost  Alternatively, I
set HOMEHOST in mdadm.conf to match the hostname of the system.

I don't know enough about things to say what a general solution is, but
hopefully this explains the inconsistent behavior between the initramfs
image and the normal root filesystem.

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
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 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2008-02-01 Thread Dennis Krul
I had the same problem when converting from one disk to a RAID-1 setup.

I added a break=mount and tried to start the arrays with mdadm -A -s,
but that didn't work.

The default configuration has a line DEVICE partitions in
/etc/mdadm/mdadm.conf. This apparently doesn't work.

(All my partitions are listed in /proc/partitions and the major/minor
numbers match up to those in /dev)

Adding the ARRAY lines to mdadm.conf and regenerating the initrd image
worked for me.

I'm using gutsy 7.10 x86_64 with Linux image 2.6.22-14-generic (all
updates installed).

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 136252] Re: [gutsy] mdadm, initramfs missing ARRAY lines

2008-02-01 Thread Dennis Krul
Subscribing to bug

-- 
[gutsy] mdadm, initramfs missing ARRAY lines
https://bugs.launchpad.net/bugs/136252
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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