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

2013-10-14 Thread Gordon Grubert

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



smime.p7s
Description: S/MIME Cryptographic Signature


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

2013-10-14 Thread Salvatore Bonaccorso
Hi Gordon,

On Mon, Oct 14, 2013 at 03:06:21PM +0200, Gordon Grubert wrote:
 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.
 
[...]
 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

This looks the same as my report this morning: #726296

The main cause for it seems to be the hunk which get lost in the
/lib/udev/rules.d/60-kpartx.rules:

# This is a temporary hack until Debian's dmsetup properly supports dmsetup
# export. For more information see: #434241, #487881, #493078
IMPORT{program}=dmsetup_env %M %m

Regards,
Salvatore


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org