<?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: How to find the unused Lun. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049083#M304080</link>
    <description>I use the following to get information about the un-used disks.&lt;BR /&gt;&lt;BR /&gt;for dsk in /dev/dsk/c*&lt;BR /&gt;do&lt;BR /&gt;if ! pvdisplay $dsk &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt;echo "$dsk NOT IN USE"&lt;BR /&gt;diskinfo `echo $dsk|sed 's/dsk/rdsk/g'`&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Aug 2007 06:58:31 GMT</pubDate>
    <dc:creator>Ronald Schwartz_1</dc:creator>
    <dc:date>2007-08-07T06:58:31Z</dc:date>
    <item>
      <title>How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049072#M304069</link>
      <description>Hey All,&lt;BR /&gt;&lt;BR /&gt;  I have about 100 Luns in the servers and i just got new Lun of 50GB from the EVA. How do i find the unused Lun in the server . Is there a way to find it.&lt;BR /&gt;&lt;BR /&gt;  Answers are welcome with High Points.. Pls Help in this regards.</description>
      <pubDate>Fri, 03 Aug 2007 05:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049072#M304069</guid>
      <dc:creator>Makesh Annamalai</dc:creator>
      <dc:date>2007-08-03T05:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049073#M304070</link>
      <description>Try this,&lt;BR /&gt;&lt;BR /&gt;#ioscan -funCdisk &amp;gt; /tmp/used_disk_list&lt;BR /&gt;#ioscan -fnCdisk&lt;BR /&gt;#insf -eCdisk &amp;gt; /tmp/unused_disk_list&lt;BR /&gt;#diff /tmp/unused_disk_list /tmp/used_disk_list&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
      <pubDate>Fri, 03 Aug 2007 05:08:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049073#M304070</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-03T05:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049074#M304071</link>
      <description>Try this,&lt;BR /&gt;&lt;BR /&gt;#ioscan -funCdisk &amp;gt; /tmp/used_disk_list&lt;BR /&gt;#ioscan -fnCdisk&lt;BR /&gt;#insf -eCdisk &lt;BR /&gt;#ioscan -fnCdisk&amp;gt; /tmp/unused_disk_list&lt;BR /&gt;#diff /tmp/unused_disk_list /tmp/used_disk_list&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
      <pubDate>Fri, 03 Aug 2007 05:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049074#M304071</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-03T05:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049075#M304072</link>
      <description>A disk that is used is member of a volumegroup.&lt;BR /&gt;so check for each disk if it contains VG information&lt;BR /&gt;&lt;BR /&gt;vgdisplay /dev/dsk/cxtydz</description>
      <pubDate>Fri, 03 Aug 2007 05:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049075#M304072</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2007-08-03T05:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049076#M304073</link>
      <description>I can't check each disk right?</description>
      <pubDate>Fri, 03 Aug 2007 06:08:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049076#M304073</guid>
      <dc:creator>Makesh Annamalai</dc:creator>
      <dc:date>2007-08-03T06:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049077#M304074</link>
      <description>Awadesh !&lt;BR /&gt;&lt;BR /&gt;  Thanks for that solution. But what if the installation the spl file is done before capturing the Used Disk info ?&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Aug 2007 06:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049077#M304074</guid>
      <dc:creator>Makesh Annamalai</dc:creator>
      <dc:date>2007-08-03T06:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049078#M304075</link>
      <description>If you have already run ioscan without -k and then insf, discovering the new LUN will be very difficult. If you are using a database (Oracle, Informix, Sybase) or other application that uses raw disk partitions, you will have to get an exact inventory of the currently active raw disks. If you are sure that all of active LUNs are used in a volume group, you can use pvdisplay on each LUN to see if it is assigned to a VG.&lt;BR /&gt; &lt;BR /&gt;Another way is to list the disk device files by date order (date of creation). Use this command:&lt;BR /&gt; &lt;BR /&gt;ll -t /dev/dsk/ | head -5&lt;BR /&gt; &lt;BR /&gt;The most 5 recently created disk devices will be displayed at the top. You can use pvdisplay on the most recent device file to confirm that it is unused.</description>
      <pubDate>Fri, 03 Aug 2007 06:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049078#M304075</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-08-03T06:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049079#M304076</link>
      <description>Then u need to check all the file systems/volume groups/disk groups etc to find used devices. &lt;BR /&gt;in case of LVM you can do&lt;BR /&gt;# for vg in `vgdisplay|grep "VG Name"|awk '{print $3}'`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; vgdisplay -v $vg |grep "PV Name"&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;   PV Name                     /dev/dsk/c1t15d0&lt;BR /&gt;   PV Name                     /dev/dsk/c3t15d0&lt;BR /&gt;   PV Name                     /dev/dsk/c13t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c12t5d5&lt;BR /&gt;&lt;BR /&gt;Awadhesh&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Aug 2007 06:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049079#M304076</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-03T06:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049080#M304077</link>
      <description>you can use strings /etc/lvmtab also to view used disks.</description>
      <pubDate>Fri, 03 Aug 2007 07:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049080#M304077</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-03T07:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049081#M304078</link>
      <description>I  Like this scripot because it tells me the basic disk information such as disk name, size, and vg associated.&lt;BR /&gt;&lt;BR /&gt;You can try this script. it is simple for and awk combination. &lt;BR /&gt;Your output will something like this&lt;BR /&gt;&lt;BR /&gt; ./ioscan.sh &lt;BR /&gt;Checking 0/3/1/0/4/0&lt;BR /&gt;/dev/rdsk/c6t0d7:    0.54GB /dev/vg03   &lt;BR /&gt;/dev/rdsk/c6t1d0:    0.54GB /dev/vg04   &lt;BR /&gt;/dev/rdsk/c6t0d0:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d1:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d2:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d3:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d4:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d5:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t1d1:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t1d2:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d6:   11.24GB /dev/vg02   &lt;BR /&gt;Checking 0/4/1/0/4/0&lt;BR /&gt;/dev/rdsk/c4t0d7:    0.54GB /dev/vg03   &lt;BR /&gt;/dev/rdsk/c4t1d0:    0.54GB /dev/vg04   &lt;BR /&gt;/dev/rdsk/c4t0d0:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d1:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d2:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d3:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d4:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d5:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t1d1:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t1d2:    9.77GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d6:   11.24GB /dev/vg02   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you like it.</description>
      <pubDate>Fri, 03 Aug 2007 08:33:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049081#M304078</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-08-03T08:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049082#M304079</link>
      <description>Newly added LUNs will show up in the /var/adm/syslog/syslog.log file. So if you remember when you added them then you could grep for that days' date and the string "sdisk" in the syslog file to figure out the LUNs which were added.</description>
      <pubDate>Fri, 03 Aug 2007 09:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049082#M304079</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-03T09:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049083#M304080</link>
      <description>I use the following to get information about the un-used disks.&lt;BR /&gt;&lt;BR /&gt;for dsk in /dev/dsk/c*&lt;BR /&gt;do&lt;BR /&gt;if ! pvdisplay $dsk &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt;echo "$dsk NOT IN USE"&lt;BR /&gt;diskinfo `echo $dsk|sed 's/dsk/rdsk/g'`&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 06:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049083#M304080</guid>
      <dc:creator>Ronald Schwartz_1</dc:creator>
      <dc:date>2007-08-07T06:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the unused Lun.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049084#M304081</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;a bit too late but if you have hpux 11.31 you can use this:&lt;BR /&gt;#scsimgr -p get_attr all_lun -a device_file -a wwid&lt;BR /&gt;&lt;BR /&gt;then you can compare the WWID with the EVA.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 07 Aug 2007 07:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-unused-lun/m-p/4049084#M304081</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-08-07T07:07:52Z</dc:date>
    </item>
  </channel>
</rss>

