[Bugme-janitors] [Bug 6965] Kernel doesn't re-sync usb-raid1 after running mdadm --add

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Sun Aug 6 03:45:47 PDT 2006


http://bugzilla.kernel.org/show_bug.cgi?id=6965

kernel at blinkenlights.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Kernel doesn't re-sync usb- |Kernel doesn't re-sync usb-
                   |raid1 after running mdadm --|raid1 after running mdadm --
                   |add                         |add



------- Additional Comments From kernel at blinkenlights.ch  2006-08-06 03:40 -------
> This is very surprising as
>   git log v2.6.18-rc2..v2.6.18-rc3 drivers/md/
> doesn't list anything. 

hmm..
It's possible that this happened before rc2 .. maybe i just didn't notice it..


> It could be that the change t master.pid has not actually
> been flushed to disk at the time when you break the array
> and remount the usb drive.

Postfix (..and linux) was up since 3 days before i've broken the array: This
means that master.pid was unchanged since then; So the system would have had
enough time to write the file to both disks :-/

Anyway:
I changed my init-script to:
 sleep 5 &&  mdadm --examine /dev/sda2 >> /tmp/exlog ; mdadm --examine /dev/hda3
>> /tmp/exlog ; /sbin/mdadm --manage /dev/md0 --add /dev/sda2 ; cat /proc/mdstat
> /tmp/MDX & (see attachments)

and rebooted.

sda2 was added without a resync.

Then i ran:
# sync ; sync
# mdadm --manage /dev/md0 -f /dev/sda2
# mdadm --manage /dev/md0 -r /dev/sda2

and mounted sda2 to /mnt/floppy:

#cat /var/spool/postfix/pid/master.pid  <-- md0 / hda3
             649
#cat /mnt/floppy/var/spool/postfix/pid/master.pid <-- sda2
             653

*bummer* :-(


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Bugme-janitors mailing list