Comment 6 for bug 824790

Revision history for this message
Peter Petrakis (peter-petrakis) wrote :

In an addition to the MP issues, LVM was misconfigured. We attempt
to repair this on one of the blades but the config file just wouldn't *take*.
I suspect there was something else going, especially since we didn't
even have direct access to the console and was forced to relay
directives to the customer to execute.

I set up a mock test environment to test the the filtering by
PCI device.

root@kickseed:/dev/disk/by-path# ls -l
total 0
lrwxrwxrwx 1 root root 8 2011-08-15 10:04 pci-0000:00:00.9-scsi-0:0:0:2 -> /dev/sdc
lrwxrwxrwx 1 root root 9 2011-08-15 10:04 pci-0000:00:00.9-scsi-0:0:0:2-part1 -> /dev/sdc1
lrwxrwxrwx 1 root root 8 2011-08-15 10:04 pci-0000:00:00.9-scsi-0:0:0:3 -> /dev/sdd
lrwxrwxrwx 1 root root 9 2011-08-15 10:04 pci-0000:00:00.9-scsi-0:0:0:3-part1 -> /dev/sdd1
lrwxrwxrwx 1 root root 8 2011-08-15 10:02 pci-0000:00:1f.2-scsi-0:0:0:0 -> /dev/sda
lrwxrwxrwx 1 root root 9 2011-08-15 10:03 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> /dev/sda1
lrwxrwxrwx 1 root root 8 2011-08-15 10:03 pci-0000:00:1f.2-scsi-0:0:0:1 -> /dev/sdb
lrwxrwxrwx 1 root root 9 2011-08-15 10:03 pci-0000:00:1f.2-scsi-0:0:0:1-part1 -> /dev/sdb1

Then, I commented out the existing "filter" directive on /etc/lvm/lvm.conf and tested:
    filter = ["a|/dev/disk/by-path/pci-0000:00:00.9-scsi.*|", "r/.*/" ]

and

    filter = ["a|/dev/disk/by-path/pci-0000:00:1f.2-scsi.*|", "r/.*/" ]

lvmdiskscan confirms the filter directives.

root@kickseed:/dev/disk/by-path# lvmdiskscan
  /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1 [ 7.45 GiB]
  /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:1-part1 [ 10.00 GiB]
  0 disks
  2 partitions
  0 LVM physical volume whole disks
  0 LVM physical volumes

root@kickseed:/dev/disk/by-path# lvmdiskscan
  /dev/disk/by-path/pci-0000:00:00.9-scsi-0:0:0:2-part1 [ 10.00 GiB]
  /dev/disk/by-path/pci-0000:00:00.9-scsi-0:0:0:3-part1 [ 10.00 GiB]
  0 disks
  2 partitions
  0 LVM physical volume whole disks
  0 LVM physical volumes

I'm going to leave this part of the effort to customer support. There are
no bugs in LVM filtering, simply execution issues.