<?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: LUN Clear Host residuals in Red Hat linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6029811#M58645</link>
    <description>&lt;P&gt;This is related to Linux hot-plugging: once the kernel has seen a particular device, it tries to make sure that the device can keep the same device name(s) whenever possible, even after it is temporarily disconnected. To make the kernel completely forget a particular device, you will need to tell it that the removal is intentional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full RedHat-recommended procedure can be found in the RHEL 6 Storage Administration Guide:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html"&gt;https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a nutshell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;unmount filesystems, reduce disk out of LVM and/or otherwise stop applications from using it&lt;/LI&gt;&lt;LI&gt;if you use dm-multipath, identify the individual /dev/sd* devices with "multipath -l", then remove the multipath device with "multipath -f &amp;lt;multipathname&amp;gt;"&lt;/LI&gt;&lt;LI&gt;run "blockdev --flushbufs /dev/sdX" for the devices that will be removed (= component paths of the multipath device that was removed in the previous step). This ensures that all forms of disk I/O have been completed for the device(s).&lt;/LI&gt;&lt;LI&gt;finally tell the kernel to forget the /dev/sdX device(s):&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;echo 1 &amp;gt; /sys/block/sdX/device/delete&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the LUN was already unmounted, removed from the LVM and un-presented, you'll only need the "multipath -f" and "echo 1 &amp;gt; /sys/block/sdX/device/delete" steps. The "blockdev --flushbufs" step won't do any good if the disk/LUN is no longer accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also want to remove the WWID of the LUN from /etc/multipath.conf, if you used a custom multipath alias for the device, or from /etc/multipath/bindings, if you used the user_friendly_names feature of dm-multipath.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2013 08:32:05 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2013-04-15T08:32:05Z</dc:date>
    <item>
      <title>LUN Clear Host residuals in Red Hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6028721#M58644</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Red hat linux server running 6.3 version OS. And below is the problem description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assign a LUN to the server today with LUN ID as 4 from SAN. I scan that LUN and use it for my applications using LVM. i use that LUN for couple of months. After few days i do not need that LUN anymore, so i remove that LUN from LVM and release it to the storage pool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After few days, there is one more requirement for LUN, and i assign the same LUN with LUN ID 4 to the server again. And it still hold the old information from the last time it was assigned to the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i clear the Old LUN information from the server before assigning the same LUN again to the server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In HPUX there is a command scsimgr replace_wwid option to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2013 20:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6028721#M58644</guid>
      <dc:creator>vijay alur alur</dc:creator>
      <dc:date>2013-04-13T20:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: LUN Clear Host residuals in Red Hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6029811#M58645</link>
      <description>&lt;P&gt;This is related to Linux hot-plugging: once the kernel has seen a particular device, it tries to make sure that the device can keep the same device name(s) whenever possible, even after it is temporarily disconnected. To make the kernel completely forget a particular device, you will need to tell it that the removal is intentional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full RedHat-recommended procedure can be found in the RHEL 6 Storage Administration Guide:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html"&gt;https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a nutshell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;unmount filesystems, reduce disk out of LVM and/or otherwise stop applications from using it&lt;/LI&gt;&lt;LI&gt;if you use dm-multipath, identify the individual /dev/sd* devices with "multipath -l", then remove the multipath device with "multipath -f &amp;lt;multipathname&amp;gt;"&lt;/LI&gt;&lt;LI&gt;run "blockdev --flushbufs /dev/sdX" for the devices that will be removed (= component paths of the multipath device that was removed in the previous step). This ensures that all forms of disk I/O have been completed for the device(s).&lt;/LI&gt;&lt;LI&gt;finally tell the kernel to forget the /dev/sdX device(s):&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;echo 1 &amp;gt; /sys/block/sdX/device/delete&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the LUN was already unmounted, removed from the LVM and un-presented, you'll only need the "multipath -f" and "echo 1 &amp;gt; /sys/block/sdX/device/delete" steps. The "blockdev --flushbufs" step won't do any good if the disk/LUN is no longer accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also want to remove the WWID of the LUN from /etc/multipath.conf, if you used a custom multipath alias for the device, or from /etc/multipath/bindings, if you used the user_friendly_names feature of dm-multipath.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 08:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6029811#M58645</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-04-15T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: LUN Clear Host residuals in Red Hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6031663#M58646</link>
      <description>&lt;P&gt;Hi Matti,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try these steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 18:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6031663#M58646</guid>
      <dc:creator>vijay alur alur</dc:creator>
      <dc:date>2013-04-16T18:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: LUN Clear Host residuals in Red Hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6032763#M58647</link>
      <description>&lt;P&gt;Accepted your post as&amp;nbsp; a solution to my problem, a well deserved kudos given!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 17:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lun-clear-host-residuals-in-red-hat-linux/m-p/6032763#M58647</guid>
      <dc:creator>vijay alur alur</dc:creator>
      <dc:date>2013-04-17T17:11:55Z</dc:date>
    </item>
  </channel>
</rss>

