Re: figuring out space

  • From: Kenny Payton <k3nnyp@xxxxxxxxx>
  • To: Stefan Knecht <knecht.stefan@xxxxxxxxx>
  • Date: Wed, 23 Sep 2015 07:19:51 -0400

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@xxxxxxxxx> 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@xxxxxxxxx
<mailto:k3nnyp@xxxxxxxxx>> 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@xxxxxxxxxxx
<mailto:tkiernan@xxxxxxxxxxx>> 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@xxxxxxxxxxxxx <mailto:oracle-l-bounce@xxxxxxxxxxxxx>
[mailto:oracle-l-bounce@xxxxxxxxxxxxx
<mailto:oracle-l-bounce@xxxxxxxxxxxxx>] On Behalf Of Zelli, Brian
Sent: Tuesday, September 22, 2015 10:22 AM
To: oracle-l (oracle-l@xxxxxxxxxxxxx <mailto:oracle-l@xxxxxxxxxxxxx>)
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.



Other related posts: