Public bug reported:
Binary package hint: udev
Hello,
* Summary: I'm using an EMC Clariion CX3-10 san controller on a Dell
PowerEdge M100 server., Ubuntu Server "Hardy" 8.04, amd-64 as operating
System. Once the "multipath-tool" package is installed, a new device is
created in /dev/mapper, after creating a "0x8E" type partition on it and
creating a PV / VG / LG with LVM on this partition I have a fonctionnal
LVM Logical Group working with multipath. After a reboot, the multipath
configuration is lost (no failover / load-balancing).
* Step to reproduce:
- Having Ubuntu Hardy Server 8.04-amd-64 installed with packages "lvm2" and
"multipath-tools"
- Create /etc/multipath.conf with and alias of the WWID for easy reading and
restart the multipath-tools service
==========================================================
# cat /etc/multipath.conf
multipaths {
multipath {
wwid 36006016071202000c4f6e817ea20dd11
alias lun3
}
}
==========================================================
- Check the output of "multipath -ll" ("lun3" is the alias)
==========================================================
# multipath -ll
lun3 (36006016071202000c4f6e817ea20dd11) dm-0 DGC ,RAID 5
[size=50G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 3:0:1:0 sdc 8:32 [active][ready]
\_ 4:0:1:0 sde 8:64 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:0 sda 8:0 [active][ready]
\_ 4:0:0:0 sdd 8:48 [active][ready]
==========================================================
- Check the presence of "/dev/mapper/lun3"
- Use "fdisk /dev/mapper/lun3" and create a new primary partition, change the
partition's type to "0x8E" (LVM)
- Restart the "udev" service
- Check the presence of "/dev/mapper/lun3-part1"
- Create a PV with "pvcreate /dev/mapper/lun3-part1"
- Add the line "types = [ "device-mapper", 1 ]" in the /etc/lvm.conf file
- Add this PV on a new VG with "vgcreate vg0 /dev/mapper/lun3-part1"
- Create a new LV on this VG with "lvcreate -l 12799 -n lv0 vg0"
- Create a new filesystem on this LV with "mkfs.ext3 /dev/vg0/lv0"
- Check the output of "multipath -ll", it should be the same as before
- Check the output of "pvdisplay"
==========================================================
# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/lun3-part1
VG Name vg0
PV Size 50,00 GB / not usable 3,28 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 12799
Free PE 0
Allocated PE 12799
PV UUID R3lJLm-ZTUH-KuBg-UwIM-HhmP-1iWn-yWrGeH
==========================================================
- At this point both multipating and LVM are fonctional
- reboot the server
* Actual result:
- After the reboot, the "multipath -ll" command isn't giving any output =>
multipathing is not functional anymore.
- The /dev/mapper/lun3 and /dev/mapper/lun3-part1 files aren't there anymore
- The output of "pvdisplay" show that the "PV name" isn't the same as before:
==========================================================
# pvdisplay
--- Physical volume ---
PV Name
/dev/disk/by-id/scsi-36006016071202000c4f6e817ea20dd11-part1
VG Name vg0
PV Size 50,00 GB / not usable 3,28 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 12799
Free PE 0
Allocated PE 12799
PV UUID R3lJLm-ZTUH-KuBg-UwIM-HhmP-1iWn-yWrGeH
==========================================================
* Expected result:
- Multipathing should work
- The /dev/mapper/lun3 and /dev/mapper/lun3-part3 files should exists
- It looks like a mixup between the udev rules for LVM / dmsetup / multipath /
kpartx
* Note:
- When removing all the LVM configuration with "lvremove", "vgremove",
"pvremove" and restarting the "multipath-tools" service, the
"/dev/mapper/lun3" and "/dev/mapper/lun3-part1" are back again. The
"multipath -ll" output is also back to normal => multipathing is running
fine.
- This problem doesn't seems to affect others distrib, a RHEL How-To
explains the use of Multipathing + LVM, see:
https://secure.linux.ncsu.edu/moin/RealmLinuxServers/Multipathing
- The official maintainer of the "multipath-package" talks about the
use of LVM and the udev rules in the official FAQ, see:
http://christophe.varoqui.free.fr/faq.html
** Affects: udev (Ubuntu)
Importance: Undecided
Status: New
** Tags: device-mapper dmsetup hardy kpartx lvm lvm2 multipath multipath-tools
rules server udev
--
udev breaks multipath after reboot when using LVM
https://bugs.launchpad.net/bugs/230006
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs