ONTAP Discussions

QUESTION - is there an event for volume creation?

emanuel
3,161 Views

Hello everyone.

Is there a way to generate an event when a new volume is created?

Thanks, Emanuel

5 REPLIES 5

rshiva
3,161 Views

Hi Emanuel,

Check out the "volume-online" event. (dfm event list | grep -i volume-online)

Thanks and regards

Shiva Raja

emanuel
3,161 Views

Hello Shiva

We may be able to use the volume-online but if existing volumes come and go ( online / offline for whatever reason ) it may not work for this customer.  We will consider this for their use and see if it works for them.

Emanuel

adaikkap
3,161 Views

Hi Emanuel,

     Shiva is right, we only have volume-online event we dont have volume discovered event like the one for volume-clone:discovered.

But adding little logic can help you verify if the volume was discovered or it went offline and came back online.

For a volume run this report.

dfm report view events-history <volumename-or-id>

The oldest event in the chronology for the volume offline is the time when this volume was created.

[root@lnx ~]# dfm report view events-history 901 | more
Severity Event ID Event                                                          Triggered    Ack'ed By Ack'ed       Deleted By Deleted      Source ID Source
-------- -------- -------------------------------------------------------------- ------------ --------- ------------ ---------- ------------ --------- -----------------
Normal   9931     Volume Growth Rate OK                                          28 Jan 14:19                                                901       SE-Storage2:/vol0
Normal   3075     No Schedule Conflict between snapshot and snapvault schedules  20 Jan 12:59                                                901       SE-Storage2:/vol0
Normal   3074     No Schedule Conflict between snapshot and SnapMirror schedules 20 Jan 12:59                                                901       SE-Storage2:/vol0
Normal   3073     Snapshots Age: Normal                                          20 Jan 12:59                                                901       SE-Storage2:/vol0
Normal   3072     Snapshots Count: Normal                                        20 Jan 12:59                                                901       SE-Storage2:/vol0
Normal   2781     Volume Space Reserve OK                                        20 Jan 12:50                                                901       SE-Storage2:/vol0
Normal   2780     Volume Next Snapshot Possible                                  20 Jan 12:50                                                901       SE-Storage2:/vol0
Normal   2779     Volume First Snapshot OK                                       20 Jan 12:50                                                901       SE-Storage2:/vol0
Normal   2778     Inodes Utilization Normal                                      20 Jan 12:50                                                901       SE-Storage2:/vol0
Normal   2777     Volume Space Normal                                            20 Jan 12:50                                                901       SE-Storage2:/vol0
Normal   2361     Scheduled Snapshots Enabled                                    20 Jan 12:48                                                901       SE-Storage2:/vol0
Normal   2360     Volume Online                                                  20 Jan 12:48                                                901       SE-Storage2:/vol0
[root@lnx ~]#

emanuel
3,161 Views

Hello Adai

Yes i think this is a good work around for them.

Thank you Guys!

adaikkap
3,161 Views

Another way, I can think of is parse the dfmmonitor.log.

Regards

adai

Public