Gathering disk statistics
 
*
Welcome, Guest. Please login or register. January 09, 2009, 10:35:44 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Gathering disk statistics  (Read 1649 times)
0 Members and 1 Guest are viewing this topic.
Dan_the_man
Jr. Member
**
Posts: 5


« Reply #4 on: May 03, 2007, 12:53:26 PM »

Sounds good,
   I will see if I can get my hands on a script that would work, that would do the trick.
Thanks again
Dan
Logged
Michael
Administrator
Hero Member
*****
Posts: 539


« Reply #3 on: May 03, 2007, 07:54:34 AM »

Again, it depends on what your managers wants in his reports.  Smiley

For keeping track of available "raw" storage that is allocated to a volume group, lsvg vgName will give the best high level view - total size in PP, PP size, # PP used, # PP free, # PP stale (generally zero) summarized, and basically the sizes also calculated in terms of MByte for all combined disks in a volume group.

To use lspv hdiskX a disk must be part of a volume group. This data is similiar to the lsvg vgName command, but is limited to the specific disk. To keep track of disks that are completely 'free'/unused, lspv woth no argument should suffice. In any case the contents of the disk(s) with no volume group name behind them are potential candidates for being added to a volumn group.

I suspect the lsvg vgName, e.g. lsvg rootvg is the command you will want. Rather than look for a specific tool (although you might want to check on what nmon collects, and whether sar collects such data) I would probably write a sed/awk or perl program to extract the data on a 'regular' basis (daily, weekly, or monthly) with CSV output for easy import to a spreadsheet.
If you wanted to get fancier you could consider putting it into a database that the spreadsheet program could query for the data. I"d only do something like that because I wanted to learn a new trick, or I had use for the methods in a broader sense.

Maybe someone has the basics of a script already. ??
Logged
Dan_the_man
Jr. Member
**
Posts: 5


« Reply #2 on: May 02, 2007, 02:43:39 PM »

Thank you for your reply,
I should have stated that we are running AIX 5.2


    My manager wants me to find this disk information and put it in a spreadsheet on a monthly basis, I have been using the lsvg command to calculate the free space of the vg but I know I don't understand it as well as I should.

Should I use the lspv command on each pv one by one and then add all of the free space or is there a simple way to gather this information.
Thanks

Logged
Michael
Administrator
Hero Member
*****
Posts: 539


« Reply #1 on: May 02, 2007, 01:59:38 PM »

Well, there are many statistics to be collected. If it is just low-level disk usage the command lspv might be enough. Within AIX, starting with AIX 5.2 I believe, there is a renewed accounting package (I have never looked at).

So, the AIX version, kinds of statistics (disk, filesystem, i/o transfers, etc.) would also be helpful in answering your question.

p.s. you are welcome. The forums are here so we can help each other!
Logged
Dan_the_man
Jr. Member
**
Posts: 5


« on: May 02, 2007, 12:54:03 PM »

Hello,
     This is my first post so I would like to say hello and thanks for the forum.
My question is-
   I need to show the UNIX disk statistics for the two AIX boxes we have, a listing of total, used, and free. We currently have both internal SCSI drives and they share an SSA drive 32 (36GB) disks

Is there a third party software than can be used? What would you suggest?
Thanks
Dan
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 1.431 seconds with 18 queries.




eXTReMe Tracker

Terms of Use and Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET