<?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 Remove a SAN LUN device from Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175124#M50754</link>
    <description>Environment: EVA 6100 and 8000. Proliant DL580G5 and RedHat 5.2.&lt;BR /&gt;&lt;BR /&gt;What we had to do: We had to resize a LUN for OracleASM.&lt;BR /&gt;&lt;BR /&gt;What we did: We created a new LUN with the same LUN number a previous deleted LUN on the same host. &lt;BR /&gt;Added the new WWID to the multipath.conf. &lt;BR /&gt;Ran /opt/hp/hp_fibreutils/hp_rescan -a&lt;BR /&gt;and multipath -v2&lt;BR /&gt;&lt;BR /&gt;What we've seen: after the multipath -v2 command we have seen, that the size of the LUN isn't the same as we configured on the EVA. It was the same size the LUN had before.&lt;BR /&gt;&lt;BR /&gt;We had changed the LUN number on the EVA and after that the right size was recognized...&lt;BR /&gt;&lt;BR /&gt;From my point of view there seems to be data stored in the devices somehow. I guess, that after a reboot this would work okay - but a reboot was not a option for us...&lt;BR /&gt;Is there a prooven way to remove the multipath, device mapper devices?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help in advance!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 May 2009 06:09:47 GMT</pubDate>
    <dc:creator>Adrian Gehrig</dc:creator>
    <dc:date>2009-05-14T06:09:47Z</dc:date>
    <item>
      <title>Remove a SAN LUN device from Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175124#M50754</link>
      <description>Environment: EVA 6100 and 8000. Proliant DL580G5 and RedHat 5.2.&lt;BR /&gt;&lt;BR /&gt;What we had to do: We had to resize a LUN for OracleASM.&lt;BR /&gt;&lt;BR /&gt;What we did: We created a new LUN with the same LUN number a previous deleted LUN on the same host. &lt;BR /&gt;Added the new WWID to the multipath.conf. &lt;BR /&gt;Ran /opt/hp/hp_fibreutils/hp_rescan -a&lt;BR /&gt;and multipath -v2&lt;BR /&gt;&lt;BR /&gt;What we've seen: after the multipath -v2 command we have seen, that the size of the LUN isn't the same as we configured on the EVA. It was the same size the LUN had before.&lt;BR /&gt;&lt;BR /&gt;We had changed the LUN number on the EVA and after that the right size was recognized...&lt;BR /&gt;&lt;BR /&gt;From my point of view there seems to be data stored in the devices somehow. I guess, that after a reboot this would work okay - but a reboot was not a option for us...&lt;BR /&gt;Is there a prooven way to remove the multipath, device mapper devices?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help in advance!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 06:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175124#M50754</guid>
      <dc:creator>Adrian Gehrig</dc:creator>
      <dc:date>2009-05-14T06:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a SAN LUN device from Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175125#M50755</link>
      <description>The multipath devices can be removed with "multipath -f &lt;DEVICE&gt;", when the multipath device is unused, i.e. any filesystems on it are unmounted and VG deactivated.&lt;BR /&gt;&lt;BR /&gt;To fully purge the system's information about a particular LUN, you should also remove the /dev/sd* devices underlying the multipath device.&lt;BR /&gt;&lt;BR /&gt;Please see this RedHat Knowledge Base document:&lt;BR /&gt;&lt;A href="http://kbase.redhat.com/faq/docs/DOC-3942" target="_blank"&gt;http://kbase.redhat.com/faq/docs/DOC-3942&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Summary: to remove a device:&lt;BR /&gt;echo 1 &amp;gt; /sys/block/&lt;DEV&gt;/device/delete&lt;BR /&gt;&lt;BR /&gt;Of course, you should use the "multipath -l" listing to identify the correct /dev/sd* devices *before* removing the multipath device.&lt;BR /&gt;&lt;BR /&gt;Then use hp_rescan or the methods listed in the above-mentioned RHKB document to re-scan the storage. That should re-create the /dev/sd* devices (but the device names are not guaranteed to be the same as before).&lt;BR /&gt;Then re-create the multipath device.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/DEV&gt;&lt;/DEVICE&gt;</description>
      <pubDate>Thu, 14 May 2009 07:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175125#M50755</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-14T07:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a SAN LUN device from Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175126#M50756</link>
      <description>Thanks for your help! This works fine.</description>
      <pubDate>Thu, 14 May 2009 07:49:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175126#M50756</guid>
      <dc:creator>Adrian Gehrig</dc:creator>
      <dc:date>2009-05-14T07:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a SAN LUN device from Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175127#M50757</link>
      <description>Thanks again</description>
      <pubDate>Thu, 14 May 2009 07:50:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-a-san-lun-device-from-linux/m-p/5175127#M50757</guid>
      <dc:creator>Adrian Gehrig</dc:creator>
      <dc:date>2009-05-14T07:50:13Z</dc:date>
    </item>
  </channel>
</rss>

