<?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: Showing free space in volume group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173644#M682196</link>
    <description>Sorry if I'm being unclear.&lt;BR /&gt;&lt;BR /&gt;Another example.&lt;BR /&gt;My vg00 is 70GB. Vgdisplay says I have 10GB free. That wouldn't fit on a 40GB ignite tape. But those 60GB allocated are not really filled with data. Perhaps only 30GB is really used. That would fit a ignite tape.&lt;BR /&gt;&lt;BR /&gt;(Please, don't send replies about ignite :-)</description>
    <pubDate>Wed, 06 May 2009 13:22:59 GMT</pubDate>
    <dc:creator>Michiel van Vlijmen</dc:creator>
    <dc:date>2009-05-06T13:22:59Z</dc:date>
    <item>
      <title>Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173639#M682191</link>
      <description>Goodday,&lt;BR /&gt;&lt;BR /&gt;I'm looking for a script/program to show the free space in a volume group.&lt;BR /&gt;vgdisplay will not do because it shows only the allocated space. I want to see what's really in use.&lt;BR /&gt;Counting all the free space for filesystems in vg00 is kind of awkward.&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 12:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173639#M682191</guid>
      <dc:creator>Michiel van Vlijmen</dc:creator>
      <dc:date>2009-05-06T12:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173640#M682192</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;vgdisplay &lt;VOLUME group="" name_path=""&gt;&lt;BR /&gt;&lt;BR /&gt;This shows free space in PE's not MB or anything.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/VOLUME&gt;</description>
      <pubDate>Wed, 06 May 2009 12:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173640#M682192</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-06T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173641#M682193</link>
      <description>vgdisplay will show you the free PEs (not allocated to LVOLs).&lt;BR /&gt;&lt;BR /&gt;If you want to know about free space in your certain file systems you should start with bdf or something similar.</description>
      <pubDate>Wed, 06 May 2009 12:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173641#M682193</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-05-06T12:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173642#M682194</link>
      <description>Thanks for your replies but it's not really what I meant.&lt;BR /&gt;When I make a vg of 100GB with an fs of 20GB, my free space in that vg is 70GB. But until I start with wrting to the fs, the free space is still 100GB in the vg.&lt;BR /&gt;So: vgdisplay doesn't help and BDF shows no totals for volume groups.</description>
      <pubDate>Wed, 06 May 2009 12:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173642#M682194</guid>
      <dc:creator>Michiel van Vlijmen</dc:creator>
      <dc:date>2009-05-06T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173643#M682195</link>
      <description>So you are asking for free space in the file systems in a volume group? I don't see a real use of this.&lt;BR /&gt;&lt;BR /&gt;Example: You have a vg01 with let's say 1000 lvols, each file system has 1MB free - so your result would be 1000MB free. IMHO useless.</description>
      <pubDate>Wed, 06 May 2009 13:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173643#M682195</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-05-06T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173644#M682196</link>
      <description>Sorry if I'm being unclear.&lt;BR /&gt;&lt;BR /&gt;Another example.&lt;BR /&gt;My vg00 is 70GB. Vgdisplay says I have 10GB free. That wouldn't fit on a 40GB ignite tape. But those 60GB allocated are not really filled with data. Perhaps only 30GB is really used. That would fit a ignite tape.&lt;BR /&gt;&lt;BR /&gt;(Please, don't send replies about ignite :-)</description>
      <pubDate>Wed, 06 May 2009 13:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173644#M682196</guid>
      <dc:creator>Michiel van Vlijmen</dc:creator>
      <dc:date>2009-05-06T13:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173645#M682197</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;you'll find it in attachement.&lt;BR /&gt;&lt;BR /&gt;you can add an specific vg in argument&lt;BR /&gt;&lt;BR /&gt;# vgview vg00&lt;BR /&gt;/-------------------------------------------------------------------------------\&lt;BR /&gt;| vg00                                                                          |&lt;BR /&gt;|-------------------------------------------------------------------------------|&lt;BR /&gt;| TOTAL (Gbytes): 271.6875                                                      |&lt;BR /&gt;|       (Mbytes): 278208                                                        |&lt;BR /&gt;|       (Kbytes): 284884992                                                     |&lt;BR /&gt;|           (PE): 8694                                                          |&lt;BR /&gt;|                                                                               |&lt;BR /&gt;| USED  (Gbytes): 107.21875                                                     |&lt;BR /&gt;|       (Mbytes): 109792                                                        |&lt;BR /&gt;|       (Kbytes): 112427008                                                     |&lt;BR /&gt;|           (PE): 3431                                                          |&lt;BR /&gt;|                                                                               |&lt;BR /&gt;| FREE  (Gbytes): 164.46875                                                     |&lt;BR /&gt;|       (Mbytes): 168416                                                        |&lt;BR /&gt;|       (Kbytes): 172457984                                                     |&lt;BR /&gt;|           (PE): 5263                                                          |&lt;BR /&gt;|-------------------------------------------------------------------------------|&lt;BR /&gt;|       - LV Name       : /dev/vg00/lvol1                                       |&lt;BR /&gt;|       - MountPoint    : /stand                                                |&lt;BR /&gt;|           SIZE    (Gb): 1                                                     |&lt;BR /&gt;|                   (Mb): 1024                                                  |&lt;BR /&gt;|                   (Kb): 1048576                                               |&lt;BR /&gt;|           Free LE     : 32                                                    |&lt;BR /&gt;|           LE Size (Mb): 32                                                    |&lt;BR /&gt;|           Free LE (Gb): 1                                                     |&lt;BR /&gt;|                   (Mb): 1024                                                  |&lt;BR /&gt;|                   (Kb): 1048576                                               |&lt;BR /&gt;|                                                                               |&lt;BR /&gt;|       - LV Name       : /dev/vg00/lvol2                                       |&lt;BR /&gt;|       - MountPoint    :                                                       |&lt;BR /&gt;|           SIZE    (Gb): 11.96875                                              |&lt;BR /&gt;|                   (Mb): 12256                                                 |&lt;BR /&gt;|                   (Kb): 12550144                                              |&lt;BR /&gt;|           Free LE     : 383                                                   |&lt;BR /&gt;|           LE Size (Mb): 32                                                    |&lt;BR /&gt;|           Free LE (Gb): 11.96875                                              |&lt;BR /&gt;|                   (Mb): 12256                                                 |&lt;BR /&gt;|                   (Kb): 12550144                                              |&lt;BR /&gt;|{..SNIP..}                                           |&lt;BR /&gt;\-------------------------------------------------------------------------------/&lt;BR /&gt;pour augmenter un FS:&lt;BR /&gt;     lvextend -L &lt;FINAL_MB_SIZE&gt; &lt;LVNAME&gt;&lt;BR /&gt;     fsadm -F vxfs -v -b &lt;FINAL_KB_SIZE&gt; &lt;MOUNTPOINT&gt;&lt;BR /&gt;pour reduire un FS - pour le faire a chaud, necessite une license JFS&lt;BR /&gt;     fsadm -F vxfs -v -b &lt;FINAL_KB_SIZE&gt; &lt;MOUNTPOINT&gt;&lt;BR /&gt;     lvreduce -L &lt;FINAL_MB_SIZE&gt; &lt;LVNAME&gt;&lt;BR /&gt;&lt;/LVNAME&gt;&lt;/FINAL_MB_SIZE&gt;&lt;/MOUNTPOINT&gt;&lt;/FINAL_KB_SIZE&gt;&lt;/MOUNTPOINT&gt;&lt;/FINAL_KB_SIZE&gt;&lt;/LVNAME&gt;&lt;/FINAL_MB_SIZE&gt;</description>
      <pubDate>Wed, 06 May 2009 13:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173645#M682197</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2009-05-06T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173646#M682198</link>
      <description>Note:&lt;BR /&gt;the script i posted above does not take care of mirrors.&lt;BR /&gt;If you have it, divide the result.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Wed, 06 May 2009 13:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173646#M682198</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2009-05-06T13:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173647#M682199</link>
      <description>then you are looking for something like this:&lt;BR /&gt;&lt;BR /&gt;read vg #interactively input vg name here&lt;BR /&gt;free=0&lt;BR /&gt;bdf | grep "${vg}" | while read line;do&lt;BR /&gt;f=`echo $line | awk {'print $4'}`&lt;BR /&gt;(( free=$free+$f ))&lt;BR /&gt;done&lt;BR /&gt;echo "You have " $free " kilobytes in this vg"&lt;BR /&gt;&lt;BR /&gt;to find the space used, replace $4 with $3 on the third line, between the awk brackets.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Wed, 06 May 2009 13:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173647#M682199</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-05-06T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173648#M682200</link>
      <description>&lt;!--!*#--&gt;&amp;gt; My vg00 is 70GB. Vgdisplay says I have 10GB free. That wouldn't fit on a 40GB ignite tape. But those 60GB allocated are not really filled with data. Perhaps only 30GB is really used. That would fit a ignite tape.&lt;BR /&gt; &lt;BR /&gt;vgdisplay will not report anything about filesystems. When you use Ignite, you are backing up filesystems, not volume group space, so vgdisplay is meaningless for Ignite tape space. bdf will tell you what space is actually used (and therefore backed up with Ignite). Since bdf is in Kbytes and there isn't an option to sum total the filesystem information, I wrote a wrapper script called bdfmegs. To see all the space actually used in vg00, run this script like this:&lt;BR /&gt; &lt;BR /&gt;$ bdfmegs -s -c 3 -V vg00&lt;BR /&gt;File-System      Mbytes    Used   Avail %Used Mounted on&lt;BR /&gt;/dev/vg00/lvol4    4096      12    3832    1% /tmp&lt;BR /&gt;/dev/vg00/lvol1     291      52     210   20% /stand&lt;BR /&gt;/dev/vg00/lvol3    2504     543    1960   22% /&lt;BR /&gt;/dev/vg00/lvol5    5000    3013    1862   62% /home&lt;BR /&gt;/dev/vg00/lvol8    8192    3191    4983   40% /var&lt;BR /&gt;/dev/vg00/sybe2    4000    3341     617   85% /sybe2&lt;BR /&gt;/dev/vg00/lvol7    9600    4050    5507   43% /usr&lt;BR /&gt;/dev/vg00/lvol6    8800    6305    2475   72% /opt&lt;BR /&gt;-- sum totals -    41.5g   20.0g   20.9g   --- sum totals ---&lt;BR /&gt; &lt;BR /&gt;-s is the option to produce a sum total&lt;BR /&gt;-c 3 sorts column 3 (Used)&lt;BR /&gt;-V vg00 selects only vg00 volumes&lt;BR /&gt; &lt;BR /&gt;Here is the usage information (bdfmegs -h):&lt;BR /&gt; &lt;BR /&gt;Usage:  bdfmegs [ -cghlNPpqstuVv ] [ &lt;FILE&gt; ]&lt;BR /&gt;  where: &lt;BR /&gt;    -c # = Sort on column #&lt;BR /&gt;    -g = show gigabytes, otherwise megabytes&lt;BR /&gt;    -h = Usage (return code=0, Usage to stdout)&lt;BR /&gt;    -l = local (no NFS)&lt;BR /&gt;    -N &lt;VGNAMES&gt; = skip one or more volume groups&lt;BR /&gt;        Repeat -N or use commas: -N vg10,vg24 &lt;BR /&gt;    -p ## = highlight % -ge ##&lt;BR /&gt;    -P ## = show only % -ge ##&lt;BR /&gt;    -q = suppress header line and no char enhancements&lt;BR /&gt;    -s = summarize total, used and available&lt;BR /&gt;    -t &lt;FS&gt; = specifc filesystem: (hfs vxfs nfs cdfs cifs autofs DevFS)&lt;BR /&gt;    -u = usage (return code=0, Usage to stdout)&lt;BR /&gt;    -v = verbose (type, version, largefiles)&lt;BR /&gt;         (version info read permission for mountpoint)&lt;BR /&gt;    -V &lt;VGNAME&gt; = select one or more volume groups&lt;BR /&gt;       Repeat -V or use commas: -V vg00,vg01&lt;BR /&gt;&lt;BR /&gt;File(s) or dirpath(s) may be specified to reduce the output of bdfmegs:&lt;BR /&gt;&lt;BR /&gt;       bdfmegs -vg /usr/contrib/bin /var/tmp&lt;BR /&gt;     &lt;BR /&gt;If bdfmegs is run as bdfgigs (ie, a link), then -g is default.&lt;BR /&gt;                                         (bdfmegs ver 5.1_Apr2009)&lt;BR /&gt;&lt;/VGNAME&gt;&lt;/FS&gt;&lt;/VGNAMES&gt;&lt;/FILE&gt;</description>
      <pubDate>Wed, 06 May 2009 16:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173648#M682200</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-05-06T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173649#M682201</link>
      <description>Free MBin VGs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for list in /dev/vg*&lt;BR /&gt;do&lt;BR /&gt;        pesize=`vgdisplay /dev/vg00|awk '/PE Size/ {print $4}'`&lt;BR /&gt;        pefree=`vgdisplay /dev/vg00|awk '/Free PE/ {print $3}'`&lt;BR /&gt;        echo "$list   $(( pesize * pefree )) MB"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 19:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173649#M682201</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-05-06T19:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173650#M682202</link>
      <description>Hi Bill and Cedrick,&lt;BR /&gt;&lt;BR /&gt;Thanks for the scripts. these are very help- and usefull. I specially like the bdf wrapper which does exactly what I need, great.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Michiel</description>
      <pubDate>Thu, 07 May 2009 06:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173650#M682202</guid>
      <dc:creator>Michiel van Vlijmen</dc:creator>
      <dc:date>2009-05-07T06:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Showing free space in volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173651#M682203</link>
      <description>Hi Bill and Cedrick,&lt;BR /&gt;&lt;BR /&gt;Thanks for the scripts. these are very help- and usefull. I specially like the bdf wrapper which does exactly what I need, great.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Michiel</description>
      <pubDate>Thu, 07 May 2009 06:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/showing-free-space-in-volume-group/m-p/5173651#M682203</guid>
      <dc:creator>Michiel van Vlijmen</dc:creator>
      <dc:date>2009-05-07T06:23:54Z</dc:date>
    </item>
  </channel>
</rss>

