<?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 hard disk space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571808#M831065</link>
    <description>Hi all,&lt;BR /&gt;What is the command to get the hd space for the server. I am using bdf and sum up total kb only 22G. using ioscan I can find out 4 hd 18G and another 10hd with unknown size.&lt;BR /&gt;I check my oracle db was entitle to  diff vg like, vg02/rlvol1  vg03/rlvol14 and etc.&lt;BR /&gt;But from bdf this vg02 and vg03 were not listed. Hp configure this as raw device and also mirror hd. How to get all disk size to document it.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 27 Jun 2005 20:47:56 GMT</pubDate>
    <dc:creator>Fauziah Mahdan</dc:creator>
    <dc:date>2005-06-27T20:47:56Z</dc:date>
    <item>
      <title>hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571808#M831065</link>
      <description>Hi all,&lt;BR /&gt;What is the command to get the hd space for the server. I am using bdf and sum up total kb only 22G. using ioscan I can find out 4 hd 18G and another 10hd with unknown size.&lt;BR /&gt;I check my oracle db was entitle to  diff vg like, vg02/rlvol1  vg03/rlvol14 and etc.&lt;BR /&gt;But from bdf this vg02 and vg03 were not listed. Hp configure this as raw device and also mirror hd. How to get all disk size to document it.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 27 Jun 2005 20:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571808#M831065</guid>
      <dc:creator>Fauziah Mahdan</dc:creator>
      <dc:date>2005-06-27T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571809#M831066</link>
      <description>#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;for i in vg02 vg03&lt;BR /&gt;do&lt;BR /&gt;  echo $i&lt;BR /&gt;  for x in `vgdisplay -v $i|grep -v Alternate|grep PV\ Name|awk -F/ '{print $4}'`&lt;BR /&gt;  do&lt;BR /&gt;    diskinfo -v /dev/rdsk/$x&lt;BR /&gt;  done&lt;BR /&gt;  echo ""&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;sample output like following.&lt;BR /&gt;&lt;BR /&gt;vg02&lt;BR /&gt;SCSI describe of /dev/rdsk/c4t2d0:&lt;BR /&gt;             vendor: HP      &lt;BR /&gt;         product id: C5447A          &lt;BR /&gt;               type: direct access&lt;BR /&gt;               size: 101376000 Kbytes&lt;BR /&gt;   bytes per sector: 512&lt;BR /&gt;          rev level: HP62&lt;BR /&gt;    blocks per disk: 202752000&lt;BR /&gt;        ISO version: 0&lt;BR /&gt;       ECMA version: 0&lt;BR /&gt;       ANSI version: 2&lt;BR /&gt;    removable media: no&lt;BR /&gt;    response format: 2&lt;BR /&gt;&lt;BR /&gt;vg03&lt;BR /&gt;SCSI describe of /dev/rdsk/c4t1d0:&lt;BR /&gt;             vendor: HP      &lt;BR /&gt;         product id: C5447A          &lt;BR /&gt;               type: direct access&lt;BR /&gt;               size: 162527744 Kbytes&lt;BR /&gt;   bytes per sector: 512&lt;BR /&gt;          rev level: HP62&lt;BR /&gt;    blocks per disk: 325055488&lt;BR /&gt;        ISO version: 0&lt;BR /&gt;       ECMA version: 0&lt;BR /&gt;       ANSI version: 2&lt;BR /&gt;    removable media: no&lt;BR /&gt;    response format: 2</description>
      <pubDate>Mon, 27 Jun 2005 21:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571809#M831066</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-06-27T21:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571810#M831067</link>
      <description>Use the following command.&lt;BR /&gt;&lt;BR /&gt;vgdisplay |egrep "VG Name|PE Size|Total PE"&lt;BR /&gt;&lt;BR /&gt;Then, multiply the "PE Size" and "Total PE" to get the VG size (in Mbytes).&lt;BR /&gt;&lt;BR /&gt;--Shyjith</description>
      <pubDate>Tue, 28 Jun 2005 04:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571810#M831067</guid>
      <dc:creator>Shyjith P K</dc:creator>
      <dc:date>2005-06-28T04:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571811#M831068</link>
      <description>if you want to get detailed info, for example, which disk are in which vg&lt;BR /&gt;&lt;BR /&gt;use &lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg02 | more&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Tue, 28 Jun 2005 07:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571811#M831068</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-06-28T07:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571812#M831069</link>
      <description>bdf only shows file system information. Since you are also using raw devices this would not work on these.&lt;BR /&gt;&lt;BR /&gt;As previously mentioned you can use vgdisplay on each volume group and pull the total amount in each volume group (Total PE * PE Size = Mb). You can also determine how much of that space has been allocated (Alloc PE * PE Size =Mb).&lt;BR /&gt;&lt;BR /&gt;To see how many disks have been assigned to the server (note: some may not have been assigned to volume groups and therefore vgdisplay wouldn't show them); Run ioscan and get the /dev/rdsk/c*t*d* for each disk. Then run 'diskinfo /dev/rdsk/c*t*d*' and it will show you the size of each disk.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Tue, 28 Jun 2005 08:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571812#M831069</guid>
      <dc:creator>David Child_1</dc:creator>
      <dc:date>2005-06-28T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: hard disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571813#M831070</link>
      <description>This can get quite involved&lt;BR /&gt;as it depends on what you are regarding as used hard disk space.&lt;BR /&gt; &lt;BR /&gt;Since you are talking about a DB I would assume it's mainly its allocated disk space.&lt;BR /&gt;Then again DB disk space usually isn't internal one but comes from external SAN storage.&lt;BR /&gt; &lt;BR /&gt;Thus I assume you would want to discard the root disks in vg00.&lt;BR /&gt; &lt;BR /&gt;As we don't know whether the DB is using filesystem or raw devices the easiest summation would add total PEs times the the PE sizes of each VG not being vg00.&lt;BR /&gt; &lt;BR /&gt;Let's collect VGs&lt;BR /&gt; &lt;BR /&gt;# vgs=$(vgdisplay 2&amp;gt;/dev/null|awk '/VG Name/&amp;amp;&amp;amp;$NF!~/vg00/{print$NF}')&lt;BR /&gt; &lt;BR /&gt;# typeset -i tot=0 pe sz                                                                         &lt;BR /&gt;# vgdisplay $vgs|awk '/Total PE|PE Size/{print$NF}'|while read sz;read pe;do tot=$((tot+(sz*pe)));done&lt;BR /&gt; &lt;BR /&gt;This yields in my case some 420 GB used up disk space in non Root VGs. &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;# echo "scale=2;$tot/2^10"|bc                                                                &lt;BR /&gt;423.88&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Ok, this was based on rather crude assumptions.&lt;BR /&gt;Maybe your users/clients are paying for disk space actually allocated rather than captured in a VG?&lt;BR /&gt; &lt;BR /&gt;Then yop would have to sum up the sizes of all LVs of those VGs.&lt;BR /&gt; &lt;BR /&gt;e.g.&lt;BR /&gt; &lt;BR /&gt;# lvdisplay $(vgdisplay -v $vgs|awk '/LV Name/{print$NF}')|awk '/LV Size/{s+=$NF};END{printf"%10.2f\n",s/2^10}'                                   &lt;BR /&gt;339.69&lt;BR /&gt; &lt;BR /&gt;As you can see this, we still have some free PEs in our VGs for lvextends.&lt;BR /&gt; &lt;BR /&gt;However, consider that our host just might be a cluster node whose packages use storage from cluster shared VGs.&lt;BR /&gt; &lt;BR /&gt;Then you would have to do a similar summation on every clsuter node as well.</description>
      <pubDate>Tue, 28 Jun 2005 08:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hard-disk-space/m-p/3571813#M831070</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-06-28T08:58:57Z</dc:date>
    </item>
  </channel>
</rss>

