In 6.1, there is a threshold field in /etc/quotas that can be used. If a write goes over the threshold it logs a message to the filer. So for example you could do:
/vol/vol0/mytree tree 50GB - 45GB
Now after 45GB you will see messages in the /etc/messages file.
It may not be exactly what you want, but it's a start. I'll admit I haven't played with this extensively yet, but it's there and may be worth investigating.
-- Adam Fox NetApp Professional Services, NC adamfox@netapp.com
-----Original Message----- From: Boyer, Steven [mailto:Steven.Boyer@GD-WTS-CENTCOM.COM] Sent: Thursday, June 14, 2001 4:56 PM To: 'Thompson, Tim' Cc: 'toasters@mathworks.com' Subject: RE: Qtree Utilization Alerts
Here is the script I wrote and use to email me, senior admins, helpdesk, and the user responsible for that section. It will also include first level subdirectories and their size in KB, MB, or GB makes it user friendly, some users have problems figuring out the numbers.
I left the name of my filer, cosmos, only as an example. Feel free to use it, at your own risk of course, but will be happy to answer any questions.
for the email portion at the bottom of the script I had to leave out the email names, but its simple to configure.
hope this helps
Steven
-----Original Message----- From: Thompson, Tim [ mailto:tim.thompson@netapp.com mailto:tim.thompson@netapp.com ] Sent: Wednesday, June 13, 2001 2:07 PM To: Boyer, Steven Subject: RE: Qtree Utilization Alerts
If you're willing to share the script, we could make it available on the NOW site. ...Tim...
-----Original Message----- From: Steven Boyer [ mailto:Steven.Boyer@GD-WTS-CENTCOM.COM mailto:Steven.Boyer@GD-WTS-CENTCOM.COM ] Sent: Tuesday, June 12, 2001 9:05 PM To: toasters@mathworks.com; Dale Wolf Subject: Re: Qtree Utilization Alerts
Dale
I wrote a script, on a Unix client, that looks at each tree in the /etc/quotas file. If the tree is within 90% of the three it then sends an email the user who is responsible for the tree, our helpdesk, and senior admins. The file that I email also includes the sub directories of that tree so the user can get an idea of were he might be able to cleanup data. My scripts run once an hour mon-fri.
---------- Original Message ---------------------------------- From: "Dale Wolf" wolfd@agcs.com Date: Tue, 12 Jun 2001 16:29:20 -0700
I am looking for a tool to send alerts in the form of email or NT alerts when a Qtree reaches some threshold or percentage (say 80%) of it's quota. I want to be able to extract or construct the alert only for certain Qtrees. Our Qtree naming standard makes it simple to identify an NTFS Qtree.
I've thought about automatically generating the Qtree report and writing a tool to parse the information out of the report and generate any alerts needed.
Any tools or suggestions are welcome.
Thanks.