<?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: identify free disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907291#M405443</link>
    <description>if your disk structure is fully LVM type, i.e., you do not have any HFS disks in the mix, this following set of commands will do the trick for you:&lt;BR /&gt;&lt;BR /&gt;# works only for LVM disk structures&lt;BR /&gt;strings /etc/lvmtab &amp;gt;/tmp/disks.lst&lt;BR /&gt;for hwp in `ioscan -fknC disk | grep ^disk |awk {'print $3'}`&lt;BR /&gt;do&lt;BR /&gt;devdrv=`ioscan -fknH ${hwp} | tail -1`&lt;BR /&gt;blockdevice=`echo ${devdrv}|awk {'print $1'}`&lt;BR /&gt;rawdevice=`echo ${devdrv}|awk {'print $2'}`&lt;BR /&gt;diskid=`echo ${blockdevice}|cut -d/ -f4`&lt;BR /&gt;grep -q ${diskid} /tmp/disks.lst&lt;BR /&gt;r=${?}&lt;BR /&gt;if [ ${r} -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "DISK "${diskid}" is already in use"&lt;BR /&gt;else&lt;BR /&gt;echo "DISK "${diskid}" is available"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
    <pubDate>Tue, 14 Jun 2005 15:30:11 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-06-14T15:30:11Z</dc:date>
    <item>
      <title>identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907285#M405437</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to create a new filesystem - I know the procedure for this however I want to discopver how much free disk is assigned to the server.&lt;BR /&gt;&lt;BR /&gt;When I run ioscan I get lots of disk so is there a script or something I can use to identify what is free.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 14 Jun 2005 14:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907285#M405437</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2005-06-14T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907286#M405438</link>
      <description>Lawrenzo,&lt;BR /&gt;&lt;BR /&gt;There are many scripts floating around doing what you are trying to accomplish, unfortunately, I can not remember the locations of any of them myself. But I have a BIG warning. If you are in a serviceguard environment and some of those disk you see in ioscan output were used by the clustered packages, what may seem to be a free disk on one node may actually beused on the other. This is a big CAUTION. &lt;BR /&gt;&lt;BR /&gt;Otherwise, I am sure someone will let you know where you can find the garden variety of these scripts.</description>
      <pubDate>Tue, 14 Jun 2005 14:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907286#M405438</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-14T14:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907287#M405439</link>
      <description>I will second the warning. MC/SG environment be very sure of the disk you are choosing. &lt;BR /&gt;&lt;BR /&gt;If no MC/SG, what you can do is correlate the /dev/dsk values from the vgdisplay -v output with the ioscan -fnCdisk output. &lt;BR /&gt;&lt;BR /&gt;Those disks not in vgdisplay output but in the ioscan output as CLAIMED will be unassigned disks to a system.&lt;BR /&gt;&lt;BR /&gt;Again, no MC/SG (or any kind of clustering) in the environment!&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 14:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907287#M405439</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-06-14T14:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907288#M405440</link>
      <description>I'm not good enough to write a script that would do this and I wouldn't trust anyone else's script either. I can tell you what to look for but it's not a fully inclusive disk.&lt;BR /&gt;&lt;BR /&gt;Is it used by LVM?&lt;BR /&gt;Is it used by VxVM?&lt;BR /&gt;Is it used as swap?&lt;BR /&gt;It is used as a raw device by Oracle, Informix, etc?&lt;BR /&gt;It is used as a raw device by some other application?&lt;BR /&gt;As mentioned, if this is part of a ServiceGuard cluster you have to be extra careful.&lt;BR /&gt;&lt;BR /&gt;You start with an ioscan to see what is visible but by far the most difficult to determine are those disks used as raw devices.&lt;BR /&gt;&lt;BR /&gt;This really comes down to system documentation and then not trusting it either, you follow up with careful tests of your own (vgdisplay's, swapinfo, bdf's + looking at Oracle/Informix/etc.).</description>
      <pubDate>Tue, 14 Jun 2005 14:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907288#M405440</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-14T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907289#M405441</link>
      <description>Lawrenzo: I believe your co-workers in US (I assume that you are in MBNA UK) have a script to identify free disk. I believe they also have a NFS filesystem that is accessible for your corporation. You can find variety of scripts for different needs. Hope it helps.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 15:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907289#M405441</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2005-06-14T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907290#M405442</link>
      <description>1) run ioscan - list all avail&lt;BR /&gt;ioscan -funC disk| grep -E -v "disk|Class|==="|awk '{print $1}'|sort&lt;BR /&gt;&lt;BR /&gt;2) list used ones&lt;BR /&gt;vgdisplay -v |grep "PV Name" |awk '{print $3}'|sort&lt;BR /&gt;&lt;BR /&gt;compare the output of each, u will know which one is not used&lt;BR /&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;Basheer</description>
      <pubDate>Tue, 14 Jun 2005 15:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907290#M405442</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2005-06-14T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907291#M405443</link>
      <description>if your disk structure is fully LVM type, i.e., you do not have any HFS disks in the mix, this following set of commands will do the trick for you:&lt;BR /&gt;&lt;BR /&gt;# works only for LVM disk structures&lt;BR /&gt;strings /etc/lvmtab &amp;gt;/tmp/disks.lst&lt;BR /&gt;for hwp in `ioscan -fknC disk | grep ^disk |awk {'print $3'}`&lt;BR /&gt;do&lt;BR /&gt;devdrv=`ioscan -fknH ${hwp} | tail -1`&lt;BR /&gt;blockdevice=`echo ${devdrv}|awk {'print $1'}`&lt;BR /&gt;rawdevice=`echo ${devdrv}|awk {'print $2'}`&lt;BR /&gt;diskid=`echo ${blockdevice}|cut -d/ -f4`&lt;BR /&gt;grep -q ${diskid} /tmp/disks.lst&lt;BR /&gt;r=${?}&lt;BR /&gt;if [ ${r} -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "DISK "${diskid}" is already in use"&lt;BR /&gt;else&lt;BR /&gt;echo "DISK "${diskid}" is available"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Tue, 14 Jun 2005 15:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907291#M405443</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-14T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907292#M405444</link>
      <description>I will repeat my warning. All of these scripts will tell you some of the disks that might be available but it's the raw disks in use that will get you in trouble everytime.</description>
      <pubDate>Tue, 14 Jun 2005 16:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907292#M405444</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-14T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: identify free disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907293#M405445</link>
      <description>Thank you all for your feedback,&lt;BR /&gt;&lt;BR /&gt;The system is clustered so I will go to our capacity team who will have the free disk info.&lt;BR /&gt;&lt;BR /&gt;Lawrenzo</description>
      <pubDate>Tue, 14 Jun 2005 17:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-free-disk/m-p/4907293#M405445</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2005-06-14T17:34:33Z</dc:date>
    </item>
  </channel>
</rss>

