{"id":2499,"date":"2013-10-14T08:47:39","date_gmt":"2013-10-14T00:47:39","guid":{"rendered":"http:\/\/rmohan.com\/?p=2499"},"modified":"2013-10-14T08:47:39","modified_gmt":"2013-10-14T00:47:39","slug":"multipath-config-status-check-in-linux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2499","title":{"rendered":"Multipath config status check in Linux"},"content":{"rendered":"<p><b>Multipath config status check in Linux<\/b><br \/>\n<b><br \/>\n<\/b><b><br \/>\n<\/b><b><span style=\"text-decoration: underline;\">Using dmsetup command:<\/span><\/b><\/p>\n<p># ls -lrt \/dev\/mapper \u00a0\/\/To View the Mapper disk paths and Lvols<\/p>\n<p>#dmsetup table<\/p>\n<p>#dmsetup ls<\/p>\n<p>#dmsetup status<\/p>\n<p><b><span style=\"text-decoration: underline;\">Using Multipathd Command ( Daemon )<\/span><\/b><\/p>\n<p>#echo &#8216;show paths&#8217; |multipathd -k<\/p>\n<p>#echo &#8216;show maps&#8217; |multipathd -k<\/p>\n<p>Explained multipathd below:<\/p>\n<p><b>A.DISPLAY PATH STATUS\u00a0<\/b><\/p>\n<p>Multipathd has a mode (the -k flag) were it can be used to connect to the running multipathd process over a socket.<\/p>\n<p>If there is no running multipathd you will get the following error.<\/p>\n<p>[root@k2 ~]# multipathd -k<br \/>\nux_socket_connect: Connection refused<\/p>\n<p>If the daemon is running, you can issue commands like below,<\/p>\n<p><b>#multipathd -k<\/b><\/p>\n<p>Multipathd&gt;<\/p>\n<p>#multipathd&gt; show multipaths status<\/p>\n<p>name failback queueing paths dm-st<br \/>\nmpath0 immediate &#8211; 4 active<br \/>\nmpath1 immediate &#8211; 4 active<\/p>\n<p><b>B.SHOW TOPOLOGY\u00a0<\/b><\/p>\n<p>#multipathd&gt; show topology<\/p>\n<p>mpath0 (360050768018380367000000000000049) dm-0 IBM,2145<br \/>\n[size=5.0G][features=1 queue_if_no_path][hwhandler=0 ]<br \/>\n\\_ round-robin 0 [prio=100][enabled]<br \/>\n\\_ 1:0:3:0 sdg 8:96 [active][ready]<br \/>\n\\_ 1:0:1:0 sde 8:64 [active][ready]<br \/>\n\\_ round-robin 0 [prio=20][enabled]<br \/>\n\\_ 1:0:0:0 sda 8:0 [active][ready]<br \/>\n\\_ 1:0:2:0 sdc 8:32 [active][ready]<\/p>\n<p><b>C.SHOW PATHS\u00a0<\/b><\/p>\n<p>#multipathd&gt; show paths<br \/>\nhcil dev dev_t pri dm_st chk_st next_check<br \/>\n1:0:0:0 sda 8:0 10 [active][ready] XXXXXXX&#8230; 14\/20<br \/>\n1:0:0:1 sdb 8:16 10 [active][ready] XXXXXXX&#8230; 14\/20<br \/>\n1:0:2:0 sdc 8:32 10 [active][ready] XXXXXXX&#8230; 14\/20<br \/>\n1:0:2:1 sdd 8:48 10 [active][ready] XXXXXXX&#8230; 14\/20<br \/>\n&#8230; excess deleted &#8230;<\/p>\n<p><b>D.Fail a path\u00a0<\/b><\/p>\n<p># multipathd -k&#8221;fail path sdc&#8221;<\/p>\n<p># multipathd -k&#8221;show paths&#8221;<\/p>\n<p><b>E. DELETE A PATH\u00a0<\/b><\/p>\n<p>#multipathd&gt; del path sdc<br \/>\nok<\/p>\n<p><b>F.SUSPEND \/ ENABLE A PATH\u00a0<\/b><\/p>\n<p>#multipathd&gt; suspend map mpath0<br \/>\nok<\/p>\n<p>And For enable the map<\/p>\n<p>#multipathd&gt; resume map mpath0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multipath config status check in Linux Using dmsetup command:<\/p>\n<p># ls -lrt \/dev\/mapper \/\/To View the Mapper disk paths and Lvols<\/p>\n<p>#dmsetup table<\/p>\n<p>#dmsetup ls<\/p>\n<p>#dmsetup status<\/p>\n<p>Using Multipathd Command ( Daemon )<\/p>\n<p>#echo &#8216;show paths&#8217; |multipathd -k<\/p>\n<p>#echo &#8216;show maps&#8217; |multipathd -k<\/p>\n<p>Explained multipathd below:<\/p>\n<p>A.DISPLAY PATH STATUS <\/p>\n<p>Multipathd has a mode (the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2499"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2499"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2499\/revisions"}],"predecessor-version":[{"id":2500,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2499\/revisions\/2500"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}