Bug#701814: os-prober: damages XFS exported via iSCSI but not mounted locally; potential data loss
Package: os-prober
Version: 1.42
Severity: grave
Justification: causes non-serious data loss
While updating the kernel on a storage server exporting a large XFS via
iSCSI, os-prober tried to mount this file system. This operation disrupted
the iSCSI operation and damaged the file system.
Excerpt from syslog showing the behaviour:
Feb 26 12:21:38 $SYSTEM os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/vg0_iscsi-lv0_iscsi
Feb 26 12:21:38 $SYSTEM kernel: [507590.078131] iscsi_trgt: fileio_make_request(63) I/O error 3584, -1
Feb 26 12:21:38 $SYSTEM kernel: [507590.085168] iscsi_trgt: fileio_make_request(63) I/O error 4096, -1
Feb 26 12:21:38 $SYSTEM kernel: [507590.092201] iscsi_trgt: fileio_make_request(63) I/O error 4096, -1
[...]
Feb 26 12:21:42 $SYSTEM kernel: [507593.602577] iscsi_trgt: fileio_make_request(63) I/O error 4096, -1
Feb 26 12:21:42 $SYSTEM kernel: [507593.668115] Filesystem "dm-0": Disabling barriers, underlying device is readonly
Feb 26 12:21:42 $SYSTEM kernel: [507593.863660] XFS mounting filesystem dm-0
Feb 26 12:21:42 $SYSTEM kernel: [507594.000398] XFS: recovery required on read-only device.
Feb 26 12:21:42 $SYSTEM kernel: [507594.006362] XFS: write access unavailable, cannot proceed.
Feb 26 12:21:42 $SYSTEM kernel: [507594.012618] XFS: log mount/recovery failed: error 30
Feb 26 12:21:42 $SYSTEM kernel: [507594.018332] XFS: log mount failed
The file system is not intended to be mounted locally and thus has no
fstab entry. It is exported using iscsitarget.
Best regards,
=ToJe=
-- System Information:
Debian Release: 6.0.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages os-prober depends on:
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
os-prober recommends no packages.
os-prober suggests no packages.
-- no debconf information
Reply to: