<?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: calculating total and free disk space on a system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464906#M360338</link>
    <description>HI James&lt;BR /&gt;I want to calculate the free space in the VGs. &lt;BR /&gt;&lt;BR /&gt;When we give vgdisplay command we get alloc Pe and Free PE.&lt;BR /&gt;&lt;BR /&gt;I want to calculate the sum of all free space left and total allocated space left in VG.&lt;BR /&gt;I am looking for a script to do so&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amit Manna&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Jul 2009 15:47:04 GMT</pubDate>
    <dc:creator>Amit Manna_4</dc:creator>
    <dc:date>2009-07-22T15:47:04Z</dc:date>
    <item>
      <title>calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464904#M360336</link>
      <description>hi&lt;BR /&gt;Is there any script for calculating the total and free disk space left on a HP Unix system&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464904#M360336</guid>
      <dc:creator>Amit Manna_4</dc:creator>
      <dc:date>2009-07-22T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464905#M360337</link>
      <description>Hi Amit:&lt;BR /&gt;&lt;BR /&gt;Define "free".&lt;BR /&gt;&lt;BR /&gt;If you mean "free" spaces within mounted filesystems, use 'bdf'.  If you mean free physical disk extents within LVM volume groups, start with 'vgdisplay'.  If you mean "unused" physical disks, tell us how you know they are truly unused if they could be raw volumes.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 22 Jul 2009 15:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464905#M360337</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-22T15:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464906#M360338</link>
      <description>HI James&lt;BR /&gt;I want to calculate the free space in the VGs. &lt;BR /&gt;&lt;BR /&gt;When we give vgdisplay command we get alloc Pe and Free PE.&lt;BR /&gt;&lt;BR /&gt;I want to calculate the sum of all free space left and total allocated space left in VG.&lt;BR /&gt;I am looking for a script to do so&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amit Manna&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464906#M360338</guid>
      <dc:creator>Amit Manna_4</dc:creator>
      <dc:date>2009-07-22T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464907#M360339</link>
      <description>Hi Amit,&lt;BR /&gt;&lt;BR /&gt;   What output you want exactly. Free disk space in a VG, you can find with vgdisplay command. In a disk, you can find with pvdisplay command. bdf tells you the free space in the FS.&lt;BR /&gt;&lt;BR /&gt;Or, please elaborate your question on what else you need.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 16:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464907#M360339</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-22T16:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464908#M360340</link>
      <description>**When we give vgdisplay command we get alloc Pe and Free PE.**&lt;BR /&gt;&lt;BR /&gt;vgdisplay will tell this information only i.e. &lt;BR /&gt;&lt;BR /&gt;Total PE - Total disk space alloted to that VG.&lt;BR /&gt;&lt;BR /&gt;Alloc PE - Disk space allocated to LVs in that VG.&lt;BR /&gt;&lt;BR /&gt;Free PE - Unused Disk space in that VG.&lt;BR /&gt;&lt;BR /&gt;  But you need to see the PE size of that VG, which helps you calculate the space in MB. To calculate the space, use the formula:-&lt;BR /&gt;&lt;BR /&gt;  Space(MB) = PE Size * No. of PEs</description>
      <pubDate>Wed, 22 Jul 2009 16:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464908#M360340</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-22T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464909#M360341</link>
      <description>vgdisplay|grep "VG Name"|awk '{print $3}|'|while read a&lt;BR /&gt;do&lt;BR /&gt;vgdisplay $a|grep "PE Size"|awk '{print $4}'|read b&lt;BR /&gt;vgdisplay $a|grep "Total PE"|awk '{print $3}'|read c&lt;BR /&gt;vgdisplay $a|grep "Free PE"|awk '{print $3}'|read d&lt;BR /&gt;echo "$a $(b*c) $(b*d)"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;first column will be vg name second column will be total size of vg and third column will be free space in VG &lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 16:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464909#M360341</guid>
      <dc:creator>Roopesh Francis_1</dc:creator>
      <dc:date>2009-07-22T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464910#M360342</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For Calculating Total Disk with &amp;amp; Free Disk Space with the VG.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please follow the below step.&lt;BR /&gt;Run the command vgdiaply&lt;BR /&gt;&lt;BR /&gt;#root # vgdisplay&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      17&lt;BR /&gt;Open LV                     17&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      4&lt;BR /&gt;Act PV                      4&lt;BR /&gt;Max PE per PV               4384&lt;BR /&gt;VGDA                        8&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    17394&lt;BR /&gt;Alloc PE                    6019&lt;BR /&gt;Free PE                     11375&lt;BR /&gt;Total PVG                   2&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;Cur PV - 4 - Means 4 Disk are using with the VG00&lt;BR /&gt;&lt;BR /&gt;Free PE - 11375 - Means Free space Avilable on the VG.&lt;BR /&gt;&lt;BR /&gt;For Calcuting the Total Free Space in the VG&lt;BR /&gt;is.&lt;BR /&gt;&lt;BR /&gt;PE Size * Free PE = Total Free Space&lt;BR /&gt;&lt;BR /&gt;Example - 4*11375 = 45500 is the Free Space in the VG&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Vinod Kumar Yadav&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 16:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464910#M360342</guid>
      <dc:creator>Vinod Kumar Yadav</dc:creator>
      <dc:date>2009-07-22T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464911#M360343</link>
      <description>small correction in the previous post&lt;BR /&gt;vgdisplay|grep "VG Name"|awk '{print $3}|'|while read a&lt;BR /&gt;do&lt;BR /&gt;vgdisplay $a|grep "PE Size"|awk '{print $4}'|read b&lt;BR /&gt;vgdisplay $a|grep "Total PE"|awk '{print $3}'|read c&lt;BR /&gt;vgdisplay $a|grep "Free PE"|awk '{print $3}'|read d&lt;BR /&gt;echo "$a $((b*c)) $((b*d))"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;first column will be vg name second column will be total size of vg and third column will be free space in VG &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 16:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464911#M360343</guid>
      <dc:creator>Roopesh Francis_1</dc:creator>
      <dc:date>2009-07-22T16:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464912#M360344</link>
      <description>The above is not working&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amit Manna&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jul 2009 10:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464912#M360344</guid>
      <dc:creator>Amit Manna_4</dc:creator>
      <dc:date>2009-07-23T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464913#M360345</link>
      <description>paste the output</description>
      <pubDate>Thu, 23 Jul 2009 13:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464913#M360345</guid>
      <dc:creator>Roopesh Francis_1</dc:creator>
      <dc:date>2009-07-23T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464914#M360346</link>
      <description>&lt;!--!*#--&gt;here it is corrected:&lt;BR /&gt;&lt;BR /&gt;vgdisplay 2&amp;gt;/dev/null |grep "VG Name"|awk '{print $3}'|while read a&lt;BR /&gt;do&lt;BR /&gt;vgdisplay $a|grep "PE Size"|awk '{print $4}'|read b&lt;BR /&gt;vgdisplay $a|grep "Total PE"|awk '{print $3}'|read c&lt;BR /&gt;vgdisplay $a|grep "Free PE"|awk '{print $3}'|read d&lt;BR /&gt;echo "$a $((b*c)) $((b*d))"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it should work like a charm:&lt;BR /&gt;&lt;BR /&gt;# vgdisplay 2&amp;gt;/dev/null |grep "VG Name"|awk '{print $3}'|while read a&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; vgdisplay $a|grep "PE Size"|awk '{print $4}'|read b&lt;BR /&gt;&amp;gt; vgdisplay $a|grep "Total PE"|awk '{print $3}'|read c&lt;BR /&gt;&amp;gt; vgdisplay $a|grep "Free PE"|awk '{print $3}'|read d&lt;BR /&gt;&amp;gt; echo "$a $((b*c)) $((b*d))"&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;/dev/vg00 139968 63712&lt;BR /&gt;/dev/vghomeora 139968 103968&lt;BR /&gt;/dev/vgquorum1 14368 13856&lt;BR /&gt;/dev/vgignite 115072 30336&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464914#M360346</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-07-23T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464915#M360347</link>
      <description>there was a pipe in the first line at the end of the awk statement ;)&lt;BR /&gt;(and i added the error redirection just to don't get confused because of disabled VGs)</description>
      <pubDate>Thu, 23 Jul 2009 15:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464915#M360347</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-07-23T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464916#M360348</link>
      <description>@Ranju Did you read the question, Amit is asking how to see total &amp;amp; free space available in VG's &amp;amp; need script, if you have so many VG's in system OMG&lt;BR /&gt;&lt;BR /&gt;@Amit, Please find attached script, which will give total size of vg, Free size in VG&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Thu, 23 Jul 2009 17:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464916#M360348</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2009-07-23T17:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464917#M360349</link>
      <description>hi Sanjeev&lt;BR /&gt;Can we get the sum of total space and free space in all VGs?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jul 2009 08:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464917#M360349</guid>
      <dc:creator>Amit Manna_4</dc:creator>
      <dc:date>2009-07-24T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculating total and free disk space on a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464918#M360350</link>
      <description>Amit&lt;BR /&gt;&lt;BR /&gt;Yes, With this Script you can have both&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Fri, 24 Jul 2009 10:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-total-and-free-disk-space-on-a-system/m-p/4464918#M360350</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2009-07-24T10:11:08Z</dc:date>
    </item>
  </channel>
</rss>

