On Fri, May 9, 2008 at 2:01 AM, Neil Brown <neilb@suse.de> wrote:Yes, it is repeatable with your previous patch. But with your most recent patch I had the following after shutdown: # mdadm -X /dev/nbd0 /dev/sdq Filename : /dev/nbd0 Events : 1732 Events Cleared : 1732 Bitmap : 409600 bits (chunks), 1 dirty (0.0%) Filename : /dev/sdq Events : 1736 Events Cleared : 1736 Bitmap : 409600 bits (chunks), 1 dirty (0.0%) Unfortunately sdq's events_cleared appears to have been updated _after_ the array became degraded. As such a full resync occurred because 1732 < 1736. Comments inlined below. Before, events_cleared was _not_ updated if the array was degraded. Your patch doesn't appear to maintain that design. I tried adding the following degraded check to your below conditional but that resulted in nbd0's events < mddev->bitmap->events_cleared again, so I'm back to square one: if (!bitmap->mddev->degraded && bitmap->events_cleared < bitmap->mddev->events) { In addition no bits were set in sdq's bitmap: # mdadm -X /dev/nbd0 /dev/sdq Filename : /dev/nbd0 Events : 2616 Events Cleared : 2617 Bitmap : 409600 bits (chunks), 0 dirty (0.0%) Filename : /dev/sdq Events : 2618 Events Cleared : 2617 Bitmap : 409600 bits (chunks), 0 dirty (0.0%) I needed "bitmap->mddev->sb_wait" and "bitmap->mddev->flags" to get the code to compile. Mike --
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Linux 2.6.27 |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
git: | |
| Denis Bueno | Recovering from repository corruption |
| Linus Torvalds | I'm a total push-over.. |
| J. Bruce Fields | "failed to read delta base object at..." |
| Robin Rosenberg | Re: [wishlist] graphical diff |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Stallman | Real men don't attack straw men |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Paolo Supino | order |
| Simon Horman | Possible regression in HTB |
| Corey Hickey | SFQ: backport some features from ESFQ (try 4) |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Ingo Molnar | Re: [crash] kernel BUG at net/core/dev.c:1328! |
| usb mic not detected | 5 minutes ago | Applications and Utilities |
| Problem in Inserting a module | 56 minutes ago | Linux kernel |
| Treason Uncloaked | 6 hours ago | Linux kernel |
| Shared swap partition | 17 hours ago | Linux general |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 2 days ago | Applications and Utilities |
| the kernel how to power off the machine | 2 days ago | Linux kernel |
| Easter Eggs in windows XP | 2 days ago | Windows |
| Root password | 2 days ago | Linux general |
| Where/when DNOTIFY is used? | 2 days ago | Linux kernel |
