RE: figuring out space

From: Zelli, Brian <Brian.Zelli_at_RoswellPark.org>
Date: Wed, 23 Sep 2015 11:53:06 +0000
Message-ID: <7DCF5A73984B85409A1FB7B957E590ED8B47F8C9_at_EXMB1rsc.roswellpark.org>



Ok, I ran the script but the %Used doesn’t’ seem right. I have 851968 Total mb, 781564 Used mb and the %used is saying 2% whereas I do it by a calculator and get 8%.....

Brian

From: Kenny Payton [mailto:k3nnyp_at_gmail.com] Sent: Wednesday, September 23, 2015 7:20 AM To: Stefan Knecht
Cc: tkiernan_at_pti-nps.com; Zelli, Brian; oracle-l (oracle-l_at_freelists.org) Subject: Re: figuring out space

Sorry about that, I suppose I should have mentioned that we are 100% external redundancy.

Kenny

On Sep 23, 2015, at 4:21 AM, Stefan Knecht <knecht.stefan_at_gmail.com<mailto:knecht.stefan_at_gmail.com>> wrote:

You shouldn't be using free_mb - you should always be using usable_file_mb. Otherwise, as soon as you're dealing with a diskgroup that's anything but EXTERNAL redundancy, you'll be looking at the wrong numbers.

Stefan

On Wed, Sep 23, 2015 at 7:40 AM, Kenny Payton <k3nnyp_at_gmail.com<mailto:k3nnyp_at_gmail.com>> wrote: Here is the query I have wrapped with an asmdf shell script so I can just type asmdf and get a report that looks similar to df with total, used, free and %Used columns. You can wrap something like this with an alert based on percentages if you wish.

set pages 80 lines 90 head on feedback off tab off

col "Disk Group" format a25
col "Total(MB)" format 999999999999
col "Used(MB)" format 999999999999
col "Free(MB)" format 999999999999
col "%Used" format 999999999999

select dg.name<http://dg.name/>||'/' "Disk Group", dg.total_mb "Total(MB)", (dg.total_mb - dg.free_mb) "Used(MB)", dg.free_mb "Free(MB)", round(((dg.total_mb - dg.free_mb)/dg.total_mb)*100) "%Used" from v$asm_diskgroup dg
where dg.total_mb > 0
order by 2 desc

On Sep 22, 2015, at 11:34 AM, TJ Kiernan <tkiernan_at_pti-nps.com<mailto:tkiernan_at_pti-nps.com>> wrote:

Usable and free can vary if you have ACFS volumes defined. Maybe there are other scenarios that will cause them to be different, but that’s at least an example. If I wanted to know how much space I have available in terms of a percentage, I’d go with usable/total.

HTH,
T. J.

From: oracle-l-bounce_at_freelists.org<mailto:oracle-l-bounce_at_freelists.org> [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Zelli, Brian Sent: Tuesday, September 22, 2015 10:22 AM To: oracle-l (oracle-l_at_freelists.org<mailto:oracle-l_at_freelists.org>) Subject: figuring out space

So I’m using ASM and trying to create a report that alerts me to space issues. Using gv$asm_diskgroup I have total space, usable space and free space. It looks like usable and free have the same value. I’m trying to figure out a calculation that will alert me when there is only about 30% left. For the life of me, I can’t see to get the calc right. Help!!!!!

Brian

This email message may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.

This email message may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Sep 23 2015 - 13:53:06 CEST

Original text of this message