Bug#726311: SAN Volumes cannot be mounted (using multipath)

Gordon Grubert gordon.grubert at uni-greifswald.de
Mon Oct 14 13:06:21 UTC 2013


Package: kpartx
Version: 0.4.9+git0.4dfdaf2b-7~deb7u1
Severity: critical

When updating kpartx from 0.4.9+git0.4dfdaf2b-6 to 
0.4.9+git0.4dfdaf2b-7~deb7u1, SAN volumes cannot be mounted anymore. The 
SAN volumes are
provided using multipath-tools.

$ cat /etc/debian_version
7.2

$ uname -a
Linux HOSTNAME 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux

$ multipath -ll
HOSTNAME-db (VOLUMEID) dm-0 IBM,2145
size=15G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=25 status=active
| |- 0:0:0:0 sda 8:0   active ready running
| `- 1:0:1:0 sdj 8:144 active ready running
`-+- policy='round-robin 0' prio=5 status=enabled
   |- 1:0:0:0 sdd 8:48  active ready running
   `- 0:0:1:0 sdg 8:96  active ready running

After performing the package update, a system reboot has been
performed, because the kernel had to be updated, too. Then, the
following syslog entries have been found:

Oct 14 11:02:14 HOSTNAME kernel: [   19.092117] device-mapper: table: 
254:7: multipath: error getting device
Oct 14 11:02:14 HOSTNAME kernel: [   19.092206] device-mapper: ioctl: 
error adding target to table

$ mount /var/lib/mysql
device mapper mount: /dev/sdj1 already mounted or /var/lib/mysql busy

The volume has not been mounted already (checked in /proc/mounts).

$ ls -l /dev/mapper
total 0
crw------T 1 root root 10, 236 Oct 14 11:02 control
lrwxrwxrwx 1 root root       7 Oct 14 11:02 HOSTNAME-db -> ../dm-0

Here, the partition entry "HOSTNAME-db-part1" is missing.

Workaround:
- downgrading kpartx to 0.4.9+git0.4dfdaf2b-6
- downgrading multipath-tools to 0.4.9+git0.4dfdaf2b-6
   (both the packages are directly correlated)
- set kpartx and multipath-tools to "hold" to prevent futher updates

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4982 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20131014/36bd9462/attachment.bin>


More information about the pkg-lvm-maintainers mailing list