Control: tag -1 +pending Thanks for confirming Carlos. The following has been added and will be part of the next upload.
commit 00b79442b9af0c5275880b73b9bae5c68150e2c5 (HEAD -> master) Author: Ritesh Raj Sarraf <r...@debian.org> Date: Mon Dec 20 15:29:43 2021 +0530 Add some documentation about LVM + DM-Multipath setup Thanks: Carlos Barros Closes: 1001710 diff --git a/debian/multipath-tools.README.Debian b/debian/multipath-tools.README.Debian index 257eebdb..ec1dee40 100644 --- a/debian/multipath-tools.README.Debian +++ b/debian/multipath-tools.README.Debian @@ -1,6 +1,24 @@ Additional information for users of multipath-tools from Debian. +LVM over DM-Multipath +===================== + +Debigu Bug #1001710 + +On a setup that involves both, LVM and DM-Multipath, it is important to set the +right filter in lvm.conf file to ensure that LVM does not acquire the bare SCSI devices +before DM-Multipath can. + +On such combined setups, the standard recommendation is to pvcreate devices on the +enumerated multipathed devices. And also ensure that the bare SCSI devices are filtered out +from LVM's list + + # filter = [ "a|/dev/mapper/|", "r|/block/|", "r|/disk/|", "r|/sd[b-z].*|", "a|.*|" ] + +In the above example snippet, it is ensured that LVM filters out any SCSI devices of name type +sd[b-z].* + On Fri, 2021-12-17 at 21:59 +0000, BARROS FERNANDEZ, Carlos wrote: > Hello Ritesh. > > Thanks for your answer. > > Tried serveral things to make it work, but only a filter in lvm.conf > did work. (the pv's were created under multipath, and also did > several vgcfgbackup, the pv's did not have any /dev/sd?? written in > their sectors) > The filter that I put is: > filter = [ "a|/dev/mapper/|", "r|/block/|", "r|/disk/|", "r|/sd[b- > z].*|", "a|.*|" ] > > I had to put sd[b-z].* because the system in installed in lvm too, so > I had to exclude that device. Maybe there is a better filter, but I > do not know how to write it. > > The server uses a RAID controller for internal disks and hba for the > external disks > > Right now, it seems stable between reboots, I hope that the raid > controller will always setup before the hba, otherwise the filter > won't work. > > I think that this info can be of help to other users, could you put a > README.debian including this filter? (or modify the lvm.conf to add > the note) > Like: > To setup LVM over multipath, and allow other LVM over a non > multpathed device, if you encounter that the pv-devices are not > under > multipath control, try this filter line in lvm.conf, update-initrd > and reboot. to check it that it works ok. > > filter = [ "a|/dev/mapper/|", "r|/block/|", "r|/disk/|", > "r|/sd[b-z].*|", "a|.*|" ] > sd[b-z].* makes all /dev/sd* be skipped but /dev/sda. > Adjust for your hardware configuration. -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System
signature.asc
Description: This is a digitally signed message part