<?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: finding unused disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639929#M43352</link>
    <description>Hi &lt;BR /&gt;I known that it can be hard, but two commands:&lt;BR /&gt;#ioscan -fnCdisk&lt;BR /&gt;and output of &lt;BR /&gt;#strings /etc/lvmtab &lt;BR /&gt;can resolve Your problem.&lt;BR /&gt;regards Seba</description>
    <pubDate>Mon, 07 Jan 2002 10:49:06 GMT</pubDate>
    <dc:creator>Sebastian Galeski_1</dc:creator>
    <dc:date>2002-01-07T10:49:06Z</dc:date>
    <item>
      <title>finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639928#M43351</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm having problem in finding unused physical disk from my EMC disk which is around 200. &lt;BR /&gt;I need to identify the disk for me to be able to add it on my volume group which it almost full.&lt;BR /&gt;&lt;BR /&gt;Hope an export can help me on this.&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;&lt;BR /&gt;bernard</description>
      <pubDate>Mon, 07 Jan 2002 10:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639928#M43351</guid>
      <dc:creator>Bernard  Bravo</dc:creator>
      <dc:date>2002-01-07T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639929#M43352</link>
      <description>Hi &lt;BR /&gt;I known that it can be hard, but two commands:&lt;BR /&gt;#ioscan -fnCdisk&lt;BR /&gt;and output of &lt;BR /&gt;#strings /etc/lvmtab &lt;BR /&gt;can resolve Your problem.&lt;BR /&gt;regards Seba</description>
      <pubDate>Mon, 07 Jan 2002 10:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639929#M43352</guid>
      <dc:creator>Sebastian Galeski_1</dc:creator>
      <dc:date>2002-01-07T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639930#M43353</link>
      <description>Sam / Disks and filesystems, Disk devices&lt;BR /&gt;Will show all disks and the vg's they are in.&lt;BR /&gt;you will be able to find the unassigned disk here.</description>
      <pubDate>Mon, 07 Jan 2002 11:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639930#M43353</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2002-01-07T11:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639931#M43354</link>
      <description>Hi Bernard,&lt;BR /&gt;&lt;BR /&gt;Run the following commands.&lt;BR /&gt;&lt;BR /&gt;1. *** All the disks on the system ***&lt;BR /&gt;&lt;BR /&gt; ioscan -fnC disk |grep dsk|awk '{print $1} &amp;gt; alldisks.out&lt;BR /&gt;&lt;BR /&gt;2. *** Disks that are currently used ****&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v |grep dsk |awk '{print $3}' &amp;gt; currentdisks.out&lt;BR /&gt;&lt;BR /&gt;3. Now it it easy to find out the disks that are unused. using a combination of sort, uniq or even by a small shell script like this&lt;BR /&gt;&lt;BR /&gt;for i in `cat alldisks.out`&lt;BR /&gt;do&lt;BR /&gt;grep $i currentdisks.out &amp;gt; /dev/null&lt;BR /&gt;if [ $? != 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo $i &amp;gt;&amp;gt; unused.out&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This unused.out will contain all the unused disks. Also you need to make sure that this disk is literally unused before adding it. Do a pvdisplay on the disk. Sometimes the alternate links are not configured and they may be mistaken as unused disks. You can use inq command to find this also. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 07 Jan 2002 11:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639931#M43354</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-07T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639932#M43355</link>
      <description>Hi Bernard,&lt;BR /&gt;&lt;BR /&gt;Try something like:&lt;BR /&gt;&lt;BR /&gt;ioscan -fnCdisk | sed -n 's+.*\(/dev/dsk/[^ ]*\).*+\1+p' | sort &amp;gt; /tmp/ioscan.out&lt;BR /&gt;strings /etc/lvmtab | grep dsk | sort | comm -3 - /tmp/ioscan.out&lt;BR /&gt;&lt;BR /&gt;This will give you a list of devices in ioscan output but not in /etc/lvmtab and vice versa (in different columns).  Obviously the CD will be one of the missing devices if you have one.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 07 Jan 2002 11:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639932#M43355</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-07T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639933#M43356</link>
      <description>Hi,&lt;BR /&gt;this is a tough question.&lt;BR /&gt;# strings /etc/lvmtab&lt;BR /&gt;#vgdisplay -v |grep dsk .....&lt;BR /&gt;&lt;BR /&gt;shows the vg's and lv's for the current OS.&lt;BR /&gt;if you looked thru SAM, even though other disks had data(disks belonging another OS) shows disk unused. If you had information(written) about the disks will be useful in situations like this.</description>
      <pubDate>Mon, 07 Jan 2002 12:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639933#M43356</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-01-07T12:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639934#M43357</link>
      <description>Hi Bernard,&lt;BR /&gt;&lt;BR /&gt;If you have luns on the EMC allocated to your HP that are not in a volume group then you can see those as unused in SAM (Disks and File Systems -&amp;gt; Disk Devices).  ioscan will also show all EMC luns available to the HP.&lt;BR /&gt;&lt;BR /&gt;On my systems (with an EMC Symmetrix), we only allocate EMC luns when needed using SDR.  Until that is done, ioscan will not see the "disks" on the HP.&lt;BR /&gt;&lt;BR /&gt;If you don't find unused disks with SAM and / or ioscan, you need to determine if you have luns on the EMC that could be allocated to your HP.  If you have EMC's Control Center you can find that info.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 07 Jan 2002 15:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639934#M43357</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-07T15:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639935#M43358</link>
      <description>EMC has a utility called 'inq' any you can run that to see which disks have or have not been allocated.&lt;BR /&gt;If you have multiple servers connected to the same EMC, you can include all your server names so you get one big picture.&lt;BR /&gt;Check on your server and see if this utility is there..if it is not than check with your EMC SE.  Or if you really need&lt;BR /&gt;it .. I could email you a copy of mine. Just post your email.&lt;BR /&gt;I'll try to check back later to see.&lt;BR /&gt;&lt;BR /&gt;TIP: If you run any raw devices..than the inq utility will not reflect them..so be careful.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rit</description>
      <pubDate>Mon, 07 Jan 2002 16:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639935#M43358</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-01-07T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639936#M43359</link>
      <description>Try this small script, it reports MB used on each physical volume.&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;PVLIST=`vgdisplay -v | grep "PV Name" | awk '{print $3}'`&lt;BR /&gt;for disk in $PVLIST&lt;BR /&gt;do&lt;BR /&gt;  free=`pvdisplay $disk | grep "Free PE" | awk '{print $3}'`&lt;BR /&gt;  integer EXPR&lt;BR /&gt;  ((EXPR=${free}*4))&lt;BR /&gt;  ((TOTAL=${TOTAL}+${EXPR}))&lt;BR /&gt;print $disk = $EXPR MB Free&lt;BR /&gt;done&lt;BR /&gt;print Total Free space = $TOTAL MB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jan 2002 16:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639936#M43359</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-01-07T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639937#M43360</link>
      <description>Ooops Sorry ALL - it would help if I read what the actual issue was.. INQ works well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck...</description>
      <pubDate>Mon, 07 Jan 2002 16:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639937#M43360</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-01-07T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639938#M43361</link>
      <description>Hello Bernard,&lt;BR /&gt;&lt;BR /&gt;be VERY careful here:&lt;BR /&gt;even if you find some *unused* LUNs (read: drives), they might be in use by another SYSTEM!!!&lt;BR /&gt;I had some very long nights in the past, cleaning up from that having happened at a customer's site :-(&lt;BR /&gt;I would NEVER use SAM in a multi-host-on-one-RAID or -SAN environment...&lt;BR /&gt;Hence, check all those *candidate* LUNs, wether &lt;BR /&gt;- they are in the output of&lt;BR /&gt;vgdisplay -v | grep /dsk/&lt;BR /&gt;on ALL systems connected to that EMC box&lt;BR /&gt;- some other OS (read: Windows, Solaris...) uses them&lt;BR /&gt;- they contain "vgexport"ed VGs!&lt;BR /&gt;- somebody else has those kept as "reserve" for your or another system&lt;BR /&gt;- EMC does itself use those for something like "AutoLUN XP" does for the Hp SureStore XPs&lt;BR /&gt;&lt;BR /&gt;Just my ???0.02,&lt;BR /&gt;Wodisc</description>
      <pubDate>Mon, 07 Jan 2002 16:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639938#M43361</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-01-07T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: finding unused disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639939#M43362</link>
      <description>Excellent point, Wodisch!  Shame on me for not pointing out that shared disks could be used by another system.&lt;BR /&gt;&lt;BR /&gt;One note about inq.  On my HPs, inq doesn't show luns that are not allocated by the EMC to that server.  I only know about them by using Control Center.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 07 Jan 2002 17:12:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-unused-disk/m-p/2639939#M43362</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-07T17:12:54Z</dc:date>
    </item>
  </channel>
</rss>

