> I'm currently stuck between Kernel LVM and DRBD, as I'm using Kernel
> 2.6.24.2 with DRBD 8.2.5 on top of an LVM2 device (LV).
>
> -LVM2/device mapper doesn't support write barriers
> -DRBD uses blkdev_issue_flush() to flush its metadata to disk.
>
> On a no-barrier-device, DRBD should receive EOPNOTSUPP, but
> it really does receive an EIO. Promptly, DRBD gives the
> error message "drbd0: local disk flush failed with status -5".
>
> The physical disk (in LVM speak) is a RAID1 on a 3ware 9650SE-2LP
> controller; the driver 3w-9xxx supports barriers and after moving my
> DRBD device from the LV to a single partition on the same RAID1, the
> error messages from DRBD vanished. <<
Patch can be found here:
<http://groups.google.com/group/fa.linux.kernel/attach/8c7d1e1024c215cf/ll_rw_blk-eopnotsup-2.6.24.2.patch?part=2>
-- Package-specific info:
** Version:
Linux version 2.6.24-1-686 (Debian 2.6.24-7) (dannf@debian.org) (gcc version 4.1.3 20080114 (prerelease) (Debian 4.1.2-19)) #1 SMP Thu May 8 02:16:39 UTC 2008
** Command line:
root=/dev/hda1 ro
** Not tainted
** Kernel log:
drbd0: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd1: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
drbd0: local disk flush failed with status -5
[...]
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages linux-image-2.6.24-1-686 depends on:
ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy
ii initramfs-tools [linux-initra 0.92a tools for generating an initramfs
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
Versions of packages linux-image-2.6.24-1-686 recommends:
ii libc6-i686 2.7-10 GNU C Library: Shared libraries [i
ret = 0;
- if (!bio_flagged(bio, BIO_UPTODATE))
+ if (bio_flagged(bio, BIO_EOPNOTSUPP))
+ ret = -EOPNOTSUPP;
+ else if (!bio_flagged(bio, BIO_UPTODATE))
ret = -EIO;
bio_put(bio);
05-26-2008, 09:09 AM
maximilian attems
Bug#482943: linux-image-2.6.24: Device mapper not reporting no-barrier-support?
On Mon, 26 May 2008, Alexander Barton wrote:
> Package: linux-image-2.6.24-1-686
> Version: 2.6.24-7
> Severity: important
> File: linux-image-2.6.24
> Tags: patch
>
>
> DRBD gives the error message "drbd0: local disk flush failed with status -5".
> This seems to be this problem reported here by Anders Henke to LKML:
>
> <http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/3ca7a07dd9d3c54d/8c7d1e1024c215cf>
the git commit is cc66b4512cae8df4ed1635483210aabf7690ec27
it landed in 2.6.25 so i'd be happy to close it right away.
or do you want to port it back for etch+half dannf?
--
maks
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org