{"id":1063,"date":"2015-09-15T11:23:18","date_gmt":"2015-09-15T11:23:18","guid":{"rendered":"http:\/\/10sa.com\/sql_stories\/?p=1063"},"modified":"2015-09-15T11:23:18","modified_gmt":"2015-09-15T11:23:18","slug":"bcache-emc-powerpath-powermt-multipath-causing-multi-bcache-devices","status":"publish","type":"post","link":"http:\/\/10sa.com\/sql_stories\/?p=1063","title":{"rendered":"Bcache &#038; EMC Powerpath (powermt). Multipath causing multi bcache devices."},"content":{"rendered":"<p>I encountered the problem that after I chose backend device as \/dev\/emcpowera3 I have seen 16+1 bcache-devices (bcache0-bcache16). It reflected from the fact that bcache saw all links (reading the bcache signatures).<br \/>\nThe solution apears to be very simple:<\/p>\n<pre lang=\"bash\">\r\nvi \/usr\/lib\/udev\/rules.d\/69-bcache.rules \r\nwas:\r\nKERNEL==\"fd*|sr*\", GOTO=\"bcache_end\"\r\nshould be:\r\nKERNEL==\"fd*|sr*|sd*\", GOTO=\"bcache_end\"\r\n<\/pre>\n<p>How it looked before I changed udev rule:<\/p>\n<pre lang=\"bash\">\r\nls -l \/dev\/bcache* | wc -l\r\n<span style=\"color:#dd2020; font-weight: bold\">17<\/span>\r\nlsblk -o NAME,MAJ:MIN,RM,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID | grep 2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\r\n\u251c\u2500sdb1                    8:17   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\na\u251c\u2500sdc1                    8:33   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdd1                    8:49   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sde1                    8:65   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdf1                    8:81   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdg1                    8:97   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdh1                    8:113  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdi1                    8:129  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdn1                    8:209  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdo1                    8:225  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdp1                    8:241  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdq1                   65:1    0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdr1                   65:17   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdw1                   65:97   0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdx1                   65:113  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500sdy1                   65:129  0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n\u251c\u2500emcpowera1            120:1    0   1.9G part  LVM2_member                  2YbyAH-d3D3-0G1g-d4nO-LVrd-c59i-HWAW0J\r\n<\/pre>\n<p>After:<\/p>\n<pre lang=\"bash\">\r\nls -l \/dev\/bcache* | wc -l\r\n<span style=\"color:#20df20; font-weight: bold\">1<\/span>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I encountered the problem that after I chose backend device as \/dev\/emcpowera3 I have seen 16+1 bcache-devices (bcache0-bcache16). It reflected from the fact that bcache saw all links (reading the bcache signatures). The solution apears to be very simple: vi \/usr\/lib\/udev\/rules.d\/69-bcache.rules was: KERNEL==&#8221;fd*|sr*&#8221;, GOTO=&#8221;bcache_end&#8221; should be: KERNEL==&#8221;fd*|sr*|sd*&#8221;, GOTO=&#8221;bcache_end&#8221; How it looked before I changed udev [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19,18],"tags":[],"_links":{"self":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1063"}],"collection":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1063"}],"version-history":[{"count":9,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1063\/revisions"}],"predecessor-version":[{"id":1072,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1063\/revisions\/1072"}],"wp:attachment":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1063"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}