<?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: Script to discover unused disks? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377730#M560901</link>
    <description>I use a few scripts attached.  Tar these files into a directory and run the check_devs.sh file.  It will run xpinfo (if you are using a SAN) on the local system and output a couple files to the /tmp directory.&lt;BR /&gt;&lt;BR /&gt;in /tmp you will see a &lt;BR /&gt;&lt;BR /&gt;&lt;SYSNAME&gt;_notused_devices.out - list of drives mapped to the system but not used&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;&lt;SYSNAME&gt;_used_devices.out - list of disks used and mounted to the server&lt;BR /&gt;&lt;BR /&gt;the only thing you have to watch out for is the command devices.  Though they show in the unused file, they XP uses them.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Darren&lt;/SYSNAME&gt;&lt;/SYSNAME&gt;</description>
    <pubDate>Fri, 13 Mar 2009 13:21:57 GMT</pubDate>
    <dc:creator>Darren Etheridge_2</dc:creator>
    <dc:date>2009-03-13T13:21:57Z</dc:date>
    <item>
      <title>Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377724#M560895</link>
      <description>&lt;BR /&gt;I need a script which will correlate disks to VGs and also list unused disks.&lt;BR /&gt;&lt;BR /&gt;I know I can do some commands like ls /dev/dsk/* but I need a script which will understand alternate links.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377724#M560895</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2009-03-12T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377725#M560896</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, define "unused".  If we are talking about LVM disks, then if you do a 'vgexport' the LVM headers are still on the physical disk and can be read, but that doesn't define "unused".&lt;BR /&gt;&lt;BR /&gt;If you have any raw disk devices then the only sure way to identify them is to _document_ the devices somewhere.&lt;BR /&gt;&lt;BR /&gt;As for alternate links, these are only paths that lead to the _same_ physical volume.  Hence interrogating the LVM PVID and/or LVM VGID in the case of LVM disks, yields the same ID.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 12 Mar 2009 13:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377725#M560896</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-12T13:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377726#M560897</link>
      <description>Hi,&lt;BR /&gt;  If you have Base VxVM installed on your machine, You can also use the following command:&lt;BR /&gt;&lt;BR /&gt;# vxdisk list&lt;BR /&gt;DEVICE       TYPE            DISK         GROUP        STATUS&lt;BR /&gt;&lt;BR /&gt;c3t3d0       auto:cdsdisk    -            -            online &amp;lt;-- Initialized by VXVM but unused&lt;BR /&gt;c3t8d0       auto:LVM        -            -            LVM &amp;lt;----- Initialized and in use by LVM&lt;BR /&gt;c5t0d0       auto:none       -            -            online invalid &amp;lt;--- Free disk</description>
      <pubDate>Thu, 12 Mar 2009 14:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377726#M560897</guid>
      <dc:creator>Shailendran V Naidu</dc:creator>
      <dc:date>2009-03-12T14:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377727#M560898</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;maybe you find this one useful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Fri, 13 Mar 2009 07:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377727#M560898</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2009-03-13T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377728#M560899</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please assign some points who give there valuable time for your problem.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 13 Mar 2009 10:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377728#M560899</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-03-13T10:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377729#M560900</link>
      <description>"unused" is really such an open term.  You don't mention alot about your storage environment.&lt;BR /&gt;&lt;BR /&gt;What you can see from a server perspective may very likely not tell you about unused disk if you have SAN attached storage.  There could be disk on your array that has not been mapped and/or masked.  So sitting at the command line running a script that is geared to LVM or VxVM commands will only reflect the disk that the server has masked.&lt;BR /&gt;&lt;BR /&gt;You may need to check both views.  What the server(s) can see using LVM/VxVM scripts - and - if there is any disk available on an array.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Fri, 13 Mar 2009 10:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377729#M560900</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2009-03-13T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377730#M560901</link>
      <description>I use a few scripts attached.  Tar these files into a directory and run the check_devs.sh file.  It will run xpinfo (if you are using a SAN) on the local system and output a couple files to the /tmp directory.&lt;BR /&gt;&lt;BR /&gt;in /tmp you will see a &lt;BR /&gt;&lt;BR /&gt;&lt;SYSNAME&gt;_notused_devices.out - list of drives mapped to the system but not used&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;&lt;SYSNAME&gt;_used_devices.out - list of disks used and mounted to the server&lt;BR /&gt;&lt;BR /&gt;the only thing you have to watch out for is the command devices.  Though they show in the unused file, they XP uses them.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Darren&lt;/SYSNAME&gt;&lt;/SYSNAME&gt;</description>
      <pubDate>Fri, 13 Mar 2009 13:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377730#M560901</guid>
      <dc:creator>Darren Etheridge_2</dc:creator>
      <dc:date>2009-03-13T13:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377731#M560902</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you have a HA Tools instaled in your serveur,&lt;BR /&gt;You can use this:&lt;BR /&gt;&lt;BR /&gt;for i in `ioscan -kfnCdisk|grep dev|awk '{print $2}'`&lt;BR /&gt;do&lt;BR /&gt;Jrdvgid $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If the disk is not used you have this message in the output &lt;BR /&gt;&lt;BR /&gt;/dev/rdsk/c15t0d0      VGID= No LVM information&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Apr 2009 18:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377731#M560902</guid>
      <dc:creator>saber_lahlib</dc:creator>
      <dc:date>2009-04-13T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script to discover unused disks?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377732#M560903</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;If you want I can attach two little scripts for this task. &lt;BR /&gt;The first one is my stake at what you needed, but I never got around to make it work flawless, it actually has little bugs :(&lt;BR /&gt;- It understands about alternate paths for disks that are used in a VG, but wont figure out alternates for unused disks. &lt;BR /&gt;For me it doesnt matter too much.&lt;BR /&gt;- to deal with exported VG's it also scans over /etc/lvmconf/ backup files, but this will override previously detected active VG membership. With a level head you'll probably fix that in seconds. :)&lt;BR /&gt;&lt;BR /&gt;The second one is able to scan VGID and PVID of a disk, I at times use it to make 100% sure a given disk is not in use by any system in our landscape.&lt;BR /&gt;&lt;BR /&gt;If someone feels like it I'd happily discuss rewriting parts of these scripts, by myself I just never got it right :)&lt;BR /&gt;&lt;BR /&gt;Of course, these come without any promises, merely something for you to start from.&lt;BR /&gt;&lt;BR /&gt;#1 &lt;A href="http://rabf.net/p/vgsl9b76.html" target="_blank"&gt;http://rabf.net/p/vgsl9b76.html&lt;/A&gt;&lt;BR /&gt;#2 &lt;A href="http://rafb.net/p/9ZBCwI59.html" target="_blank"&gt;http://rafb.net/p/9ZBCwI59.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best wishes, &lt;BR /&gt;Florian</description>
      <pubDate>Thu, 16 Apr 2009 11:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-discover-unused-disks/m-p/4377732#M560903</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2009-04-16T11:31:52Z</dc:date>
    </item>
  </channel>
</rss>

