[HPADM] Summary Disk space usage

From: Buddy Mills (ramill_at_wm.edu)
Date: 10/11/05

  • Next message: Naylor, Jim: "[HPADM] RE: -SUMMARY2- Help lost /dev/vg00 and another question on /dev/krm"
    To: <hpux-admin@DutchWorks.nl>
    Date: Tue, 11 Oct 2005 09:59:25 -0400
    
    

    Thanks to Andy Belville for the quick answer and the script that work for me
    with no changes.

    Andy's response:
    For volume groups, you could write a simple script to show what's been used
    in the VG. Since actual disks shouldn't matter ( that's the point of the
    VG ). If disks are _absolutely_ necessary, it wouldn't take much more
    scripting to get done.

    Here's an example of a one-liner for printing out the percentage for a VG:

    # vgdisplay vg00 | \> awk '{if ( $0 ~ /Total PE/){TOTAL=$3}; if( $0 ~ /Alloc
    PE/> ){ALLOC=$3}}END{printf("%i %% allocated\n", ALLOC/TOTAL*100)}'

    Buddy Mills
    The College of William and Mary
    757-221-2099 ramill@wm.edu

    ----- Original Message -----
    > Is there a command that will give me the total % used (or avail) on any
    > given drive, whole drive or volume group? I know that I should be looking
    > at each file system, but the "pointy hair boss" wants me to report daily
    on
    > the % of whole drive used like.., uug I hate saying it, he says Windows
    > does.
    >
    > With out going into a lot of discussion with him on stuff he does not
    > understand. Mainly that Windows also reports on the file system and he is
    > just looking at one filesystem on his local PC. I need to grant the
    > request. After all he does control my pay.
    >
    > I don't want to waste time adding up the bytes each day via "bdf". I
    > could write a script, but was hoping there was a quick command that I have
    > missed.
    >
    > Anybody?
    >
    > Thanks in advance and death to all pointy hair bosses everywhere, well
    > maybe just broken leg.
    >
    > Buddy Mills
    > 757-221-2099
    > ramill@wm.edu
    >

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Naylor, Jim: "[HPADM] RE: -SUMMARY2- Help lost /dev/vg00 and another question on /dev/krm"

    Relevant Pages

    • Re: Removable Drive Letter Mapping
      ... You could try the script below. ... Modify Line 8 to reflect the number of flash disks you wish to monitor. ... Connect one of your USB drives and watch what happens. ...
      (microsoft.public.windowsxp.general)
    • SUMMARY: storage array error notifications
      ... thanks to Tom Jones for sending me the script he uses to monitor ... I monitor my 3510s as part of my system monitoring scripts. ... Here's a portion from my script, using sccli commands: ... sccli> show disks ...
      (SunManagers)
    • Re: GEOM_FOX woes
      ... The setup ... >labels on the disks, according to the script in the announce message: ...
      (freebsd-current)
    • Re: Best place to spin down disk after boot?
      ... > Hi, I have a 5.1Release machine with currently four SCSI disks, out of ... Now I just wonder whether it would be more elegant to place a script ... # Script to spin down unneeded SCSI disks right after system start ...
      (freebsd-questions)
    • Summary: quick way to mirror a pair of disks using SDS
      ... If you have FC disks, you will have to rebuild the ... devices for the OBP. ... (if either slice 5 or 6 is assigned, ... Will the above script take care of dumpadm, ...
      (SunManagers)