[Bug 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-24 Thread luthos
*** This bug is a duplicate of bug 139802 ***
https://bugs.launchpad.net/bugs/139802

Hm... I just had to add the array definition to mdadm.conf:

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid5 num-devices=2 
UUID=c48b6ad2:935cba2b:e9e4094c:aa5ad989

No zeroing of superblocks was necessary. I did a few reboots and
everything seems to work perfectly.

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-21 Thread netslayer
*** This bug is a duplicate of bug 139802 ***
https://bugs.launchpad.net/bugs/139802

I can confirm this fixed it, but I think it's still a bug in the mdadm
tool or udev that handles it poorly

1. Use mdadm -E /dev/sdX1 and mdadm -E /dev/sdX device to examine the UUIDs of 
the raid array. One of them will be the one you no longer use, check the other 
drives and determine which one is no longer valid
2. Then unmount the raid array umount /dev/md1, mdadm --stop /dev/md1 
3. Then mdadm --zero-superblock /dev/sdf   
4. Then mdadm --zero-superblock /dev/sdh as I have to bad ones
5. Remount the array, Reboot

Mine works perfect now :-)
Please make sure you check your zeroing out the right drives before you do 
this..

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-21 Thread netslayer
*** This bug is a duplicate of bug 139802 ***
https://bugs.launchpad.net/bugs/139802

I just tried the solution in the dup bug
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/139802

It looks like /usr/share/mdadm/mkconf >/etc/mdadm/mdadm.conf is
detecting an array I dont have from somewhere. You can see the output of
my mdadm.conf is totally messed up and this makes sense now why it's
trying to add a drive to the array that doesnt exist. It could be an
older one I had.. ??

ARRAY /dev/md0 level=raid5 num-devices=4 
UUID=2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d
ARRAY /dev/md0 level=raid0 num-devices=2 
UUID=db874dd1:759d986d:cc05af5c:cfa1abed
ARRAY /dev/md1 level=raid5 num-devices=5 
UUID=9c2534ac:1de3420b:e368bf24:bd0fce41

mdadm -E /dev/sdf
UUID : db874dd1:759d986d:cc05af5c:cfa1abed

mdadm -E /dev/sdh
UUID : db874dd1:759d986d:cc05af5c:cfa1abed

Interesting, so what happened is that I bought 3 new drives when I
created this array, and the remaining two I formatted and put in here
are the ones that still have the old UUID's. Since I applied the raid
array in partitions for these drives instead of the physical device I
have two UUIDs for two of my drives. Then I guess udev finds that at
different times and causes it to fail if it tries to bring up the old
array and add it to an existing one.. total race condition.

So how do I get rid of the other UUIDs safely..

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-21 Thread Christian Schuerer
*** This bug is a duplicate of bug 139802 ***
https://bugs.launchpad.net/bugs/139802

** This bug has been marked a duplicate of bug 139802
   long bootup, dmesg full of md: array md1 already has disks!

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-21 Thread netslayer
I should experiment with my 4 disk raid 5 array disconnected. It's the
one that has half SATA and half PATA drives as well. We have pretty much
the same setup, and I mean I just formatted my drive and installed Gutsy
so it's probably not just us.

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-20 Thread luthos
I have exactly the same problem.

My setup:

  Xubuntu Gutsy with latest Updates
  Athlon 64 1,6 MHz, 1GB RAM
  /dev/md0 is a Raid5 with 3x250GB disks (2x SATA and 1 PATA)

I'm not too experienced with Linux, the only idea I came up with was
disabling the Splashscreen with the status bar to see what's going on.
It loads some hardware drivers I think and then it's the same as
netslayer described, its printing "md: array md0 already has disks!"
over and over again.

I always have to try several times until the system boots but if it
finally does everything is working fine, even the raid.

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-18 Thread netslayer
I just noticed the mdadm.conf I posted doesnt match my drive
configuration and I dont think it's using it since all the UUIDs are on
the partition tables. In feisty I had this file setup correctly and it
made no difference. (this is what gutsy setup for me)

My drive ids as mapped to the above cat /proc/mdstat
/dev/md0
/dev/sde   UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/hdd   UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/hdb   UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/sdf   UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)

/dev/md1
/dev/sdh1 UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/sdd1 UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/sdc1 UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/sdb1 UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)
/dev/sda1 UUID : 2fc65d39:8f7cbdb5:7072d7cc:0e4fe29d (local to host delorean)

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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 140854] Re: Boot with Software Raid most times causes mdadm to not complete (possible race)

2007-09-18 Thread netslayer
** sighs (one more correction)
The second UUID set are all the same (poor copy n paste): 
[EMAIL PROTECTED]:~$ sudo mdadm -E /dev/sdh1 | grep UUID
   UUID : 9c2534ac:1de3420b:e368bf24:bd0fce41
[EMAIL PROTECTED]:~$ sudo mdadm -E /dev/sdd1 | grep UUID
   UUID : 9c2534ac:1de3420b:e368bf24:bd0fce41
[EMAIL PROTECTED]:~$ sudo mdadm -E /dev/sdc1 | grep UUID
   UUID : 9c2534ac:1de3420b:e368bf24:bd0fce41
[EMAIL PROTECTED]:~$ sudo mdadm -E /dev/sdb1 | grep UUID
   UUID : 9c2534ac:1de3420b:e368bf24:bd0fce41
[EMAIL PROTECTED]:~$ sudo mdadm -E /dev/sda1 | grep UUID
   UUID : 9c2534ac:1de3420b:e368bf24:bd0fce4

-- 
Boot with Software Raid most times causes mdadm to not complete (possible race)
https://bugs.launchpad.net/bugs/140854
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