2011-07-19 03:48 PM
I am trying to get an DFM email alert sent when volumes auto-grow. This is because my Production SQL LUNs are in volumes that are set to grow automatically if they reach their pre-defined threshold. If the SQL volumes needs to autogrow then i would like to be alerted, investigate (with the DBAs) why and if required increase the size of the volumes (or decrease the size if the increase is not warranted).
However my attempt to get this alert through has failed so far. If I "test" the alarm i do get a test email, however the SNMP trap does not seem to be sent from the filers to the admin host where DFM resides (which should trigger the email alert). I receive other email alerts for other events just fine.
I have created a test volume and added it to an Alarm in DFM. I have then enabled the "vol autosize" function on this volume and then filled the volume up with data files. When the volume reaches its capacity threshold I can see a message on the filer console that the volumes does indeed autogrow but am not receiving the email alert about it.
1)Add the DFM server as traphost to filer using snmp traphost add <dfm-ip-address> and set init to "1".
2)Create a volume of size say 2GB on ontap and let dfm discover it.
3)Enable autosize for newly created volume by vol autosize <vol> -m <size> on eg: vol autosize vol_autosize -m 3g -i 100g on
4)Created an e-mail alert(alarm) for the event " volume-autosized" on group of volumes which my test volume is part of.
5)I have written data on this volume to fill it up and trigger autogrow function (successfully).
6)Now on filer console you can see meesages like "JUNE 28 17:06:02 EST [NASHC01: wafl.vol.autoSize.done:info]: Automatic increase size of volume 'test_vol_autogrow' by 102400 kbytes done.."
However as stated i do not receive the email alert from DFM warning me that the volume has grown in size.
Can anyone advise how to get this email alert working? Thanks in advance.
2011-07-23 04:09 AM
The problem could be DFM is not receiving the SNMP trap for this event.
Can you paste the output of dfm report view snmp-traps-all <host-ip/host-id>?
2011-07-24 12:39 PM
Also check the following command in the filer.
192.168.98.10 (192.168.98.10) <192.168.98.10>
Make sure your DFM server is under traphosts and init is set to 1.
2011-07-25 05:02 PM
As stipulated earlier I have added the DFM server as traphost and init is set to 1 (but here is the output anyway).
192.168.86.39 (uppstxxxxxx.xxx.mgmt.det) <192.168.86.39>
thanks for your reply though.
2011-07-25 10:32 PM
The problem is clear. DFM is not receiving any traps from that particular storage system. Once DFM receives traps, it will generate the event
and an e-mail alert will be sent for the same.
2011-07-26 12:57 AM
This is what I did.
My snmp setting on the filer.
192.168.98.10 (192.168.98.10) <192.168.98.10>
My DFM settings
C:\>dfm options list snmpTrapListenerEnabled
Then created a volume in the filer.
sim1> vol create auto_grow_test -s none aggr1 25m
Creation of volume 'auto_grow_test' with size 25m on containing aggregate
'aggr1' has completed.
Turned on autosize and below are its details.
sim1> vol autosize auto_grow_test
Volume autosize is currently ON for volume 'auto_grow_test'.
The volume is set to grow to a maximum of 40 MB, in increments of 5 MB.
Discovered that volume in dfm, forcefully instead of waiting by issuing the below cli.
dfm host discover <filerid/name>
Then kept writing to the volume such that it will autogrow.
Below are the messages from the filer.
sim1*> df -h auto_grow_test
Filesystem total used avail capacity Mounted on
/vol/auto_grow_test/ 26MB 21MB 4768KB 82% /vol/auto_grow_test/
/vol/auto_grow_test/.snapshot 6756KB 0KB 6756KB 0% /vol/auto_grow_test/.snapshot
sim1*> Tue Jul 26 13:23:07 GMT [wafl.vol.autoSize.done:info]: Automatic increase size of volume 'auto_grow_test' by 5120 kbytes done.
sim1*> Tue Jul 26 13:23:17 GMT [wafl.vol.autoSize.done:info]: Automatic increase size of volume 'auto_grow_test' by 2048 kbytes done.
sim1*> Tue Jul 26 13:23:30 GMT [wafl.vol.autoSize.fail:info]: Unable to grow volume 'auto_grow_test' to recover space: Volume cannot be grown beyond maximum growth limit
Tue Jul 26 13:24:00 GMT [monitor.globalStatus.nonCritical:warning]: /vol/auto_grow_test is full (using or reserving 100% of space and 9% of inodes, using 100% of reserve).
Below is the report in DFM where I see the auto-size event.
C:\>dfm report view events-history 228
Severity Event ID Event
----------- -------- --------------------------------------------------
Error 325 Volume Full
Information 324 Volume Autosized
Information 322 Volume Autosized
Information 319 Volume Autosized
Warning 317 Volume Almost Full 26 Jul 13:18
Information 315 Volume Autosized
Normal 313 No Schedule Conflict between snapshot and snapvault schedules 26 Jul 13:18
Normal 312 No Schedule Conflict between snapshot and SnapMirror schedules 26 Jul 13:18
Normal 311 Snapshots Age: Normal 26 Jul 13:18
Normal 310 Snapshots Count: Normal 26 Jul 13:18
Information 309 Volume Autosized
Information 307 Volume Autosized
Normal 304 Volume Space Reserve OK 26 Jul 13:17
Normal 303 Volume Next Snapshot Possible 26 Jul 13:17
Normal 302 Volume First Snapshot OK 26 Jul 13:17
Normal 301 Inodes Utilization Normal 26 Jul 13:17
Normal 300 Volume Space Normal 26 Jul 13:17
Normal 299 Scheduled Snapshots Enabled 26 Jul 13:17
Normal 298 Volume Online
Where 228 is the volume id in dfm.
Hope this helps.