<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: multipath map VS lvm2 map in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712792#M42740</link>
    <description>&lt;!--!*#--&gt;Welcome to ITRC Forums!&lt;BR /&gt;&lt;BR /&gt;The LVM configuration file /etc/lvm/lvm.conf contains some settings that can prevent this issue.&lt;BR /&gt;&lt;BR /&gt;All versions of LVM2 support the "filter" keyword, which can be used to make LVM use only multipathed devices.&lt;BR /&gt;&lt;BR /&gt;Newer versions (about RHEL 4.5 and above, I think) also have the "preferred_names" keyword, which can be used to make LVM favor multipath devices over non-multipath devices. If the "preferred_names" keyword is supported in your Linux distribution, the lvm.conf file usually contains a commented-out example line for exactly this purpose:&lt;BR /&gt;-----&lt;BR /&gt;    preferred_names = [ ]&lt;BR /&gt;&lt;BR /&gt;    # Try to avoid using undescriptive /dev/dm-N names, if present.&lt;BR /&gt;    # preferred_names = [ "^/dev/mpath/", "^/dev/mapper/", "^/dev/[hs]d" ]&lt;BR /&gt;-----&lt;BR /&gt;If your lvm.conf includes lines like this, just comment out the first preferred_names line, and uncomment the second one.&lt;BR /&gt;&lt;BR /&gt;The lvm.conf file is a readable text file, and it usually contains a lot of commented-out examples for the most important keywords. There is also a man page: type "man lvm.conf" to read it.&lt;BR /&gt;&lt;BR /&gt;(If you're using multipathed disks and your lvm.conf does not support the preferred_names keyword, your system is rather old. You should seriously consider upgrading to the latest update level: after the preferred_names keyword was added, many other important updates to both LVM an dm-multipath have been released, so you would be likely to get other reliability improvements too.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Fri, 12 Nov 2010 16:53:41 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-11-12T16:53:41Z</dc:date>
    <item>
      <title>multipath map VS lvm2 map</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712791#M42739</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Having issue in linux with lvm kicking in before multipath.&lt;BR /&gt;&lt;BR /&gt;since lvm is depending on the volumes setup in  /dev/mapper by multipath&lt;BR /&gt;and if lvm cannot find any, the multipath volumes are not used by lvm. so i have written a shell to do all the work manually on startup.&lt;BR /&gt;please let me know a way to fix this issue.&lt;BR /&gt;thank you</description>
      <pubDate>Fri, 12 Nov 2010 16:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712791#M42739</guid>
      <dc:creator>Mohan Wickramasinghe</dc:creator>
      <dc:date>2010-11-12T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: multipath map VS lvm2 map</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712792#M42740</link>
      <description>&lt;!--!*#--&gt;Welcome to ITRC Forums!&lt;BR /&gt;&lt;BR /&gt;The LVM configuration file /etc/lvm/lvm.conf contains some settings that can prevent this issue.&lt;BR /&gt;&lt;BR /&gt;All versions of LVM2 support the "filter" keyword, which can be used to make LVM use only multipathed devices.&lt;BR /&gt;&lt;BR /&gt;Newer versions (about RHEL 4.5 and above, I think) also have the "preferred_names" keyword, which can be used to make LVM favor multipath devices over non-multipath devices. If the "preferred_names" keyword is supported in your Linux distribution, the lvm.conf file usually contains a commented-out example line for exactly this purpose:&lt;BR /&gt;-----&lt;BR /&gt;    preferred_names = [ ]&lt;BR /&gt;&lt;BR /&gt;    # Try to avoid using undescriptive /dev/dm-N names, if present.&lt;BR /&gt;    # preferred_names = [ "^/dev/mpath/", "^/dev/mapper/", "^/dev/[hs]d" ]&lt;BR /&gt;-----&lt;BR /&gt;If your lvm.conf includes lines like this, just comment out the first preferred_names line, and uncomment the second one.&lt;BR /&gt;&lt;BR /&gt;The lvm.conf file is a readable text file, and it usually contains a lot of commented-out examples for the most important keywords. There is also a man page: type "man lvm.conf" to read it.&lt;BR /&gt;&lt;BR /&gt;(If you're using multipathed disks and your lvm.conf does not support the preferred_names keyword, your system is rather old. You should seriously consider upgrading to the latest update level: after the preferred_names keyword was added, many other important updates to both LVM an dm-multipath have been released, so you would be likely to get other reliability improvements too.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 12 Nov 2010 16:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712792#M42740</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-11-12T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: multipath map VS lvm2 map</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712793#M42741</link>
      <description>Hi Matti &lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The contents of /dev/mapper for multipath devices are as follows&lt;BR /&gt;&lt;BR /&gt;data-part1 (LVM partition of data)&lt;BR /&gt;wal-part1 (LVM partition of wal)&lt;BR /&gt;indices-part1  (LVM partition of indices)&lt;BR /&gt;&lt;BR /&gt;Note: data, wal and indices are the volumes mapped from MSA to linux using friendly names,&lt;BR /&gt;&lt;BR /&gt;and in lvm.conf&lt;BR /&gt;&lt;BR /&gt;under devices section ...&lt;BR /&gt;&lt;BR /&gt;devices {&lt;BR /&gt;    dir = "/dev"&lt;BR /&gt;    scan = [ "/dev" ]&lt;BR /&gt;    preferred_names = [ ]&lt;BR /&gt;    filter = [ "a/mapper/", "r/.*/" ]&lt;BR /&gt;    cache_dir = "/etc/lvm/cache"&lt;BR /&gt;    cache_file_prefix = ""&lt;BR /&gt;    write_cache_state = 1&lt;BR /&gt;    types  = [ "device-mapper", 254 ]&lt;BR /&gt;    sysfs_scan = 1      &lt;BR /&gt;    md_component_detection = 1&lt;BR /&gt;    ignore_suspended_devices = 0&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;and this does not work. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so i will have to change the preferred_names to &lt;BR /&gt;  preferred_names = [ "^/dev/mapper/" ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;these are the only active settings, other settings are commented out.&lt;BR /&gt;thanks.</description>
      <pubDate>Fri, 12 Nov 2010 18:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multipath-map-vs-lvm2-map/m-p/4712793#M42741</guid>
      <dc:creator>Mohan Wickramasinghe</dc:creator>
      <dc:date>2010-11-12T18:12:34Z</dc:date>
    </item>
  </channel>
</rss>

