{"id":924,"date":"2015-12-14T10:15:18","date_gmt":"2015-12-14T18:15:18","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=924"},"modified":"2015-12-14T10:15:18","modified_gmt":"2015-12-14T18:15:18","slug":"solaris-multipath-incorrect-totals","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/solaris-multipath-incorrect-totals\/","title":{"rendered":"Solaris Multipath Incorrect Totals"},"content":{"rendered":"
From time to time we notice that some LUN's are not optimal. It could be because of off-lining a LUN, changes on the switches I am not sure why exactly it happens. If multipath is not showing the correct Path Counts you may need to run cfgadm.<\/p>\n
See how some LUN's here are showing 4 paths only. We expect 8.<\/p>\n
\r\n# mpathadm list lu\r\n \/dev\/rdsk\/c0t5000CCA04385ED60d0s2\r\n Total Path Count: 1\r\n Operational Path Count: 1\r\n[..]\r\n \/dev\/rdsk\/c0t600144F09D7311B500005605A40C0006d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000561ED8AB0007d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n[..]\r\n \/dev\/rdsk\/c0t600144F09D7311B50000538507080021d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000534309C40011d0s2\r\n Total Path Count: 4\r\n Operational Path Count: 4\r\n \/dev\/rdsk\/c0t600144F09D7311B500005342FE86000Fd0s2\r\n Total Path Count: 4\r\n Operational Path Count: 4\r\n \/dev\/rdsk\/c0t600144F09D7311B5000053D13E130029d0s2\r\n Total Path Count: 4\r\n Operational Path Count: 4\r\n \/dev\/rdsk\/c0t600144F09D7311B50000566AE1CC0008d0s2\r\n Total Path Count: 4\r\n Operational Path Count: 4\r\n<\/pre>\nI tried a few things and it looks like the cfgadm worked. It could also be a couple other thing that triggered it like destroying an unused LUN or changing a recently added LUN's target group to be more restrictive but I doubt that is it. Most likely cfgadm.<\/p>\n
\r\n# cfgadm -o show_SCSI_LUN -al\r\nAp_Id Type Receptacle Occupant Condition\r\nc1 fc connected unconfigured unknown\r\nc8 fc-fabric connected configured unknown\r\nc8::20520002ac000f02,254 ESI connected configured unknown\r\nc8::21000024ff3db11d,0 disk connected configured unknown\r\nc8::21000024ff3db11d,1 disk connected configured unknown\r\n[..]\r\nc8::21000024ff57d646,54 disk connected configured unknown\r\nc8::21000024ff57d646,56 disk connected configured unknown\r\nc8::21520002ac000f02,254 ESI connected configured unknown\r\nc8::22520002ac000f02,254 ESI connected configured unknown\r\nc8::23520002ac000f02,254 ESI connected configured unknown\r\nc9 fc connected unconfigured unknown\r\nc13 fc-fabric connected configured unknown\r\nc13::20510002ac000f02,254 ESI connected configured unknown\r\nc13::21000024ff3db11c,0 disk connected configured unknown\r\n[..]\r\nc13::21000024ff3db11c,44 disk connected configured unknown\r\nc13::21000024ff3db11c,46 disk connected configured unknown\r\nc13::21000024ff3db11c,48 disk connected configured unknown\r\nc13::21000024ff3db11c,50 disk connected unconfigured unknown\r\nc13::21000024ff3db11c,52 disk connected unconfigured unknown\r\nc13::21000024ff3db11c,54 disk connected unconfigured unknown\r\nc13::21000024ff3db11c,56 disk connected configured unknown\r\nc13::21000024ff3db1b4,0 disk connected configured unknown\r\nc13::21000024ff3db1b4,1 disk connected configured unknown\r\n[..]\r\nc13::21510002ac000f02,254 ESI connected configured unknown\r\nc13::22510002ac000f02,254 ESI connected configured unknown\r\nc13::23510002ac000f02,254 ESI connected configured unknown\r\n<\/pre>\nAfter I ran cfgadm..<\/p>\n
\r\n# mpathadm list lu\r\n \/dev\/rdsk\/c0t5000CCA04385ED60d0s2\r\n Total Path Count: 1\r\n Operational Path Count: 1\r\n[..]\r\n \/dev\/rdsk\/c0t600144F09D7311B500005605A40C0006d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000561ED8AB0007d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n[..]\r\n \/dev\/rdsk\/c0t600144F09D7311B5000053BE90620024d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000533C012A0009d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000533AAFF00007d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000538507080021d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000534309C40011d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B500005342FE86000Fd0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B5000053D13E130029d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n \/dev\/rdsk\/c0t600144F09D7311B50000566AE1CC0008d0s2\r\n Total Path Count: 8\r\n Operational Path Count: 8\r\n<\/pre>\nI can also see the changes in messages...<\/p>\n
\r\n# dmesg\r\nNov 9 03:59:21 solaris11 mac: [ID 469746 kern.info] NOTICE: ldoms-vsw0.vport15 registered\r\nNov 9 05:41:55 solaris11 scsi: [ID 583861 kern.info] ssd98 at scsi_vhci0: unit-address g600144f09d7311b50000534309c40011: f_tpgs\r\n[..]\r\nDec 14 09:38:01 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000566ae1cc0008 (ssd101) multipath status: optimal: path 343 fp16\/ssd@w21000024ff3db1b5,38 is standby\r\nDec 14 09:38:01 solaris11 last message repeated 1 time\r\nDec 14 09:38:01 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b5000053d13e130029 (ssd100) multipath status: optimal: path 344 fp16\/ssd@w21000024ff3db1b5,36 is standby\r\nDec 14 09:38:01 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b500005342fe86000f (ssd99) multipath status: optimal: path 345 fp16\/ssd@w21000024ff3db1b5,34 is standby\r\nDec 14 09:38:01 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000534309c40011 (ssd98) multipath status: optimal: path 346 fp16\/ssd@w21000024ff3db1b5,32 is standby\r\nDec 14 09:38:07 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000566ae1cc0008 (ssd101) multipath status: optimal: path 347 fp16\/ssd@w21000024ff3db11d,38 is standby\r\nDec 14 09:38:07 solaris11 last message repeated 1 time\r\nDec 14 09:38:07 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b5000053d13e130029 (ssd100) multipath status: optimal: path 348 fp16\/ssd@w21000024ff3db11d,36 is standby\r\nDec 14 09:38:08 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b500005342fe86000f (ssd99) multipath status: optimal: path 349 fp16\/ssd@w21000024ff3db11d,34 is standby\r\nDec 14 09:38:08 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000534309c40011 (ssd98) multipath status: optimal: path 350 fp16\/ssd@w21000024ff3db11d,32 is standby\r\nDec 14 09:38:16 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000566ae1cc0008 (ssd101) multipath status: optimal: path 351 fp21\/ssd@w21000024ff3db1b4,38 is standby\r\nDec 14 09:38:16 solaris11 last message repeated 1 time\r\nDec 14 09:38:17 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b5000053d13e130029 (ssd100) multipath status: optimal: path 352 fp21\/ssd@w21000024ff3db1b4,36 is standby\r\nDec 14 09:38:17 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b500005342fe86000f (ssd99) multipath status: optimal: path 353 fp21\/ssd@w21000024ff3db1b4,34 is standby\r\nDec 14 09:38:17 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000534309c40011 (ssd98) multipath status: optimal: path 354 fp21\/ssd@w21000024ff3db1b4,32 is standby\r\nDec 14 09:38:22 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000566ae1cc0008 (ssd101) multipath status: optimal: path 355 fp21\/ssd@w21000024ff3db11c,38 is standby\r\nDec 14 09:38:22 solaris11 last message repeated 1 time\r\nDec 14 09:38:22 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b5000053d13e130029 (ssd100) multipath status: optimal: path 356 fp21\/ssd@w21000024ff3db11c,36 is standby\r\nDec 14 09:38:23 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b500005342fe86000f (ssd99) multipath status: optimal: path 357 fp21\/ssd@w21000024ff3db11c,34 is standby\r\nDec 14 09:38:23 solaris11 genunix: [ID 483743 kern.info] \/scsi_vhci\/ssd@g600144f09d7311b50000534309c40011 (ssd98) multipath status: optimal: path 358 fp21\/ssd@w21000024ff3db11c,32 is standby\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"From time to time we notice that some LUN’s are not optimal. It could be because of off-lining a LUN,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-924","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=924"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/924\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}