<?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: HP-UX raw disk space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391066#M350249</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;a) Slightly different methodology of calculation. bdf calculates in kb, even in this GB era.&lt;BR /&gt;b) The larger number to have a margin of error.&lt;BR /&gt;c) Calculate the data that needs to be backed up instead of backing up everything.&lt;BR /&gt;&lt;BR /&gt;My take:&lt;BR /&gt;I use ignite to back up vg00 and exclude any scratch data or stuff not needed to boot.&lt;BR /&gt;&lt;BR /&gt;I then use my backup tool to back up backup areas. I can't back up raw disk and don't try. I have scripted backups write backups using utilities provided by the software that uses the raw disk area. These write backups that I actually care about on a daily basis and I back this up. I try if possible to back up to a fast NFS mount point to simply things and not have a lot of scratch space on my systems.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 31 Mar 2009 09:19:15 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2009-03-31T09:19:15Z</dc:date>
    <item>
      <title>HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391065#M350248</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I have to calculate the total amount of space for each HP-UX servers in the environment, the total disk space should be inclusive of raw disk space in the system. The reason i'm doing this is to determine what kind of tape library and tape media is required to cater for backup for all HP-UX system.&lt;BR /&gt;&lt;BR /&gt;I'm using the script attached in order to help me to that. I took the script from another thread.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;#strt=$(ioscan -funC disk | awk '/rdsk/{print $2}')&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;strt=$(ioscan -funC disk |awk '{ if ($3 != "") printf ("%s",$0) ; else printf ("%s\n",$0)}' |grep -v DVD-ROM | grep -v Class | awk '/rdsk/{print $10}')&lt;BR /&gt;&lt;BR /&gt;i=0&lt;BR /&gt;&lt;BR /&gt;p1=0&lt;BR /&gt;&lt;BR /&gt;pT=0&lt;BR /&gt;&lt;BR /&gt;echo $strt &amp;gt; /tmp/siliniz&lt;BR /&gt;clear&lt;BR /&gt;for i in `cat /tmp/siliniz`&lt;BR /&gt;do&lt;BR /&gt;p1=$(diskinfo -b $i)&lt;BR /&gt;pT=$(expr $p1 + $pT)&lt;BR /&gt;done&lt;BR /&gt;Tot=$(expr $pT / 1048576)&lt;BR /&gt;echo "-------------------------"&lt;BR /&gt;echo " Total Disk Size: $Tot GB"&lt;BR /&gt;$Tot GB &amp;gt; Total Raw disks&lt;BR /&gt;/usr/bin/rm /tmp/siliniz&lt;BR /&gt;&lt;BR /&gt;The output from this script is 651 GB but the output from BDF is 561.58 as shown below:&lt;BR /&gt;&lt;BR /&gt;Filesystem&lt;BR /&gt; kbytes&lt;BR /&gt; used&lt;BR /&gt; avail&lt;BR /&gt; %used&lt;BR /&gt; Mounted&lt;BR /&gt; on&lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol3&lt;BR /&gt; 770,048.00&lt;BR /&gt; 192464&lt;BR /&gt; 573080&lt;BR /&gt; 25%&lt;BR /&gt; /&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol1&lt;BR /&gt; 491,952.00&lt;BR /&gt; 94080&lt;BR /&gt; 348672&lt;BR /&gt; 21%&lt;BR /&gt; /stand&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol8&lt;BR /&gt; 4,608,000.00&lt;BR /&gt; 3052320&lt;BR /&gt; 1543672&lt;BR /&gt; 66%&lt;BR /&gt; /var&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol7&lt;BR /&gt; 4,354,048.00&lt;BR /&gt; 2455288&lt;BR /&gt; 1883960&lt;BR /&gt; 57%&lt;BR /&gt; /usr&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vgemc01/openv&lt;BR /&gt; 560,414,720.00&lt;BR /&gt; 1.68E+08&lt;BR /&gt; 3.89E+08&lt;BR /&gt; 30%&lt;BR /&gt; /usr/openv&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol6&lt;BR /&gt; 2,097,152.00&lt;BR /&gt; 912200&lt;BR /&gt; 1176096&lt;BR /&gt; 44%&lt;BR /&gt; /tmp&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol5&lt;BR /&gt; 5,242,880.00&lt;BR /&gt; 2641240&lt;BR /&gt; 2581392&lt;BR /&gt; 51%&lt;BR /&gt; /opt&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vg00/lvol4&lt;BR /&gt; 397,312.00&lt;BR /&gt; 346760&lt;BR /&gt; 50552&lt;BR /&gt; 87%&lt;BR /&gt; /home&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;/dev/vgemc01/system&lt;BR /&gt; 10,485,760.00&lt;BR /&gt; 8730040&lt;BR /&gt; 1700888&lt;BR /&gt; 84%&lt;BR /&gt; /SYSTEM&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;Total (Kbyte)&lt;BR /&gt; 588,861,872.00&lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;Total (Mbyte)&lt;BR /&gt; 575,060.42&lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;Total (Gbyte)&lt;BR /&gt; 561.58&lt;BR /&gt; - total space require for backup&lt;BR /&gt;&lt;BR /&gt;Total number of space inclusive of swap space in the system is 909GB.&lt;BR /&gt;&lt;BR /&gt;My questions are :&lt;BR /&gt;a) What's the reason for the difference of space reported by the script and BDF?&lt;BR /&gt;b) Which is is more accurate for backup sizing?&lt;BR /&gt;c) Any other way to do this better, i mean to get the total amount of space inclusive of raw disk space?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 08:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391065#M350248</guid>
      <dc:creator>Media_Frozen</dc:creator>
      <dc:date>2009-03-31T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391066#M350249</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;a) Slightly different methodology of calculation. bdf calculates in kb, even in this GB era.&lt;BR /&gt;b) The larger number to have a margin of error.&lt;BR /&gt;c) Calculate the data that needs to be backed up instead of backing up everything.&lt;BR /&gt;&lt;BR /&gt;My take:&lt;BR /&gt;I use ignite to back up vg00 and exclude any scratch data or stuff not needed to boot.&lt;BR /&gt;&lt;BR /&gt;I then use my backup tool to back up backup areas. I can't back up raw disk and don't try. I have scripted backups write backups using utilities provided by the software that uses the raw disk area. These write backups that I actually care about on a daily basis and I back this up. I try if possible to back up to a fast NFS mount point to simply things and not have a lot of scratch space on my systems.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 31 Mar 2009 09:19:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391066#M350249</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-31T09:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391067#M350250</link>
      <description>@SEP&lt;BR /&gt;&lt;BR /&gt;a) Slightly different methodology of calculation. bdf calculates in kb, even in this GB era.&lt;BR /&gt;b) The larger number to have a margin of error.&lt;BR /&gt;c) Calculate the data that needs to be backed up instead of backing up everything.&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;a) Calculation using bdf by default is in kbytes but if i convert that to GB is 561GB but by using the script the GB reported is 651GB, I'm kind of confused here.&lt;BR /&gt;b) Meaning the script is likely not that accurate?&lt;BR /&gt;c) I have to put in buffer space for future growth, so I'm trying to get the actual space utilized and factor in maybe extra 40% for future growth.&lt;BR /&gt;&lt;BR /&gt;I would rather backup vg00 using make_tape_recovery, but because of company policy everything must be backed up using centralized backup application.&lt;BR /&gt;&lt;BR /&gt;I appreciate it if anyone could point me to the right direction to calculate the amount of space utilized inclusive of RAW disk space.</description>
      <pubDate>Tue, 31 Mar 2009 09:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391067#M350250</guid>
      <dc:creator>Media_Frozen</dc:creator>
      <dc:date>2009-03-31T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391068#M350251</link>
      <description>HI,&lt;BR /&gt;&amp;gt;&amp;gt;a) Calculation using bdf by default is in kbytes but if i convert that to GB is 561GB but by using the script the GB reported is 651GB, I'm kind of confused here.&lt;BR /&gt;&lt;BR /&gt;bdf never showes the raw file system due to that this difference would be came.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 31 Mar 2009 10:17:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391068#M350251</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-03-31T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391069#M350252</link>
      <description>The diskinfo command shows the size of each disk or LUN. If your question was: how much disk space is allocated to file systems, then bdf would be correct. However, you said you wanted raw space. All disk starts out as raw. You then allocate some space to file systems, and then allocate some space to swap (no filesystems), some space to the crash dump area, and if you are running Oracle, Sybase, Informix, or other major database vendor's product, large amounts of disk space may be allocated to the database but no files.&lt;BR /&gt; &lt;BR /&gt;For backup, you always exclude swap and dump areas (nothing to backup there). For databases using raw space, you'll need special software to properly backup and restore these raw disk areas. If you have no raw database usage, then bdf will give you the actual size. You may want to download the bdfmegs script (attached) which has a -s option to sum all the displayed items.&lt;BR /&gt; &lt;BR /&gt;In picking a tape backup system, be very careful not to concentrate on capacity only. Modern tape drives can be much faster than your system can handle, newer ones require more than 100 MBytes/sec to keep them running at full speed and many systems simply cannot keep up.  Also note that adding up what you have now is not a good idea...what about two years from now? Will your system disk space be 100% larger or 500% larger? What are the potential growth areas? &lt;BR /&gt; &lt;BR /&gt;When you pick a tape library, what are the backup goals? Do you expect everything to be backed up in a couple of hours? Are you going to run incremental backups of data files? Is the goal to provide completely automated backups? And the data is sensitive, what encryption will you use to protect tapes in the library or left around on a table?</description>
      <pubDate>Tue, 31 Mar 2009 10:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391069#M350252</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-03-31T10:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391070#M350253</link>
      <description>@Bill&lt;BR /&gt;&lt;BR /&gt;I understand bdf will only show filesystem only without RAW disk, but some of the database used here is utilizing raw disk space, how do I get the size of RAW disk space utilized by these databases using hp-ux command?</description>
      <pubDate>Tue, 31 Mar 2009 12:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391070#M350253</guid>
      <dc:creator>Media_Frozen</dc:creator>
      <dc:date>2009-03-31T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391071#M350254</link>
      <description>Hi Forzen,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;how do I get the size of RAW disk space utilized by these databases using hp-ux command?&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Can you list down the raw device files .?&lt;BR /&gt;used by the Database. Once done&lt;BR /&gt;&lt;BR /&gt;Use can use "lvdisplay " command to accute size of the raw device .&lt;BR /&gt;&lt;BR /&gt;Example:-&lt;BR /&gt;&lt;BR /&gt;/dev/vgraw/rlvol12&lt;BR /&gt;lvdisplay /dev/vgraw/lvol12&lt;BR /&gt;&lt;BR /&gt;Just suggestion.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 12:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391071#M350254</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-03-31T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391072#M350255</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need some manual work here. Collect the TOTAL PE and PE SIZE from all the VG's which will give the total raw space assiged to the system.&lt;BR /&gt;&lt;BR /&gt;If any vg is not activated, you need to consider that also.</description>
      <pubDate>Tue, 31 Mar 2009 12:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391072#M350255</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-31T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391073#M350256</link>
      <description>&lt;!--!*#--&gt;OK, you don't have to fully manual collect the PE Sizes, etc... I wrote a small script that does this, it's in the attachment. Not perfect, but usable. ;)&lt;BR /&gt;&lt;BR /&gt;Sample output:&lt;BR /&gt;&lt;BR /&gt;hi02dit1:/root # ./listdisks.sh&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vg00 **&lt;BR /&gt;&lt;BR /&gt;                140014 MB&lt;BR /&gt;                140014 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vg01 **&lt;BR /&gt;&lt;BR /&gt;                140014 MB&lt;BR /&gt;                140014 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vgapdfk **&lt;BR /&gt;&lt;BR /&gt;                XP Box: 00072307        LUN: 07:4B      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072314        LUN: 07:4B      Size: 3600 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vgapvkm **&lt;BR /&gt;&lt;BR /&gt;                XP Box: 00072307        LUN: 0A:2B      Size: 7200 MB&lt;BR /&gt;                XP Box: 00072314        LUN: 0A:2B      Size: 7200 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vgapspd **&lt;BR /&gt;&lt;BR /&gt;                XP Box: 00072307        LUN: 0A:06      Size: 7200 MB&lt;BR /&gt;                XP Box: 00072314        LUN: 0A:06      Size: 7200 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vgapstk **&lt;BR /&gt;&lt;BR /&gt;                XP Box: 00072314        LUN: 04:4B      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072314        LUN: 04:70      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072307        LUN: 04:4B      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072307        LUN: 04:70      Size: 3600 MB&lt;BR /&gt;&lt;BR /&gt;        ** VOLUMEGROUP vgaprad **&lt;BR /&gt;&lt;BR /&gt;                XP Box: 00072314        LUN: 03:4B      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072314        LUN: 03:70      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072307        LUN: 03:4B      Size: 3600 MB&lt;BR /&gt;                XP Box: 00072307        LUN: 03:70      Size: 3600 MB&lt;BR /&gt;hi02dit1:/root #&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Apr 2009 13:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391073#M350256</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-02T13:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391074#M350257</link>
      <description>ok, here is the version 2, it uses diskinfo for all disks. (the previous one used diskinfo only for local disks in vg00 or vg01, and xpinfo for the luns in the xp boxes.)&lt;BR /&gt;&lt;BR /&gt;I'm not sure if you have read_lvmtab installed, afaik it is not supported by HP (but still useful).&lt;BR /&gt;&lt;BR /&gt;anyway, this is only a starting point, with a little brainstorming you can customize the snippet and make your own working based on your environment.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Apr 2009 13:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391074#M350257</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-02T13:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX raw disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391075#M350258</link>
      <description>&lt;!--!*#--&gt;It sounds like you weren't the system administrator that created all the volumes on the system. In that case, you can safely assume that if an lvol exists, it is (or was) needed for something. This script will find all the disks and LUNs that are in volume groups and show the PV name, PE size (MB), Total PE's and the total MB for each volume group.&lt;BR /&gt; &lt;BR /&gt;vgdisplay|awk '/VG Name/{printf $3" "};\&lt;BR /&gt;   /PE Size/{printf $4" "}; \&lt;BR /&gt;   /Total PE/{getline ;printf $3"\n"}' \&lt;BR /&gt;   | awk '{print $1,$2,$3,$2*$3" "}'&lt;BR /&gt; &lt;BR /&gt;Whether all the lvols use all the space or not, these PVs have been assigned to volumes and therefore are in use and may be in use in the future.</description>
      <pubDate>Fri, 03 Apr 2009 01:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-raw-disk-space/m-p/4391075#M350258</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-04-03T01:09:48Z</dc:date>
    </item>
  </channel>
</rss>

