#Ontap how to automatically add who created a volume in its attributes
1 messages · Page 1 of 1 (latest)
User ID is the owner for the volume's root, it isn't who created the volume.
https://docs.netapp.com/us-en/ontap-cli/volume-create.html#parameters
If you want to know what user creates a volume, you could monitor the audit logs - /etc/log/mlog/audit.log.
I was going to add this to the details.... not in the logs.... we are not going to keep years of logs... as a matter of fact on the aiq.netapp site, you only keep a few months of logs/autosupports uploaded... we don't keep years of logs. in one of the databases that is kept at the system shell or lower, there should be something there
I don't think you need to keep the logs to document who created a volume, though it would require some automated log analysis / scripting.
There's probably a way to do this via RBAC as well. For example restricting what users can create a volume in a given SVM and ratcheting down access
this is not about restrictions, it is about information... e.g. I have a volume from 2021 that I have questions about, who created it... but we don't keep emails for that long and we don't keep logs for that long, and unfortunately not everything goes through the ticketing system... I am always amazed what information is kept at the lower levels
If you're looking to submit a feature request I'd get in touch with your account team and request an FEPVR for this feature.
As far as I am aware we do not have a databse with this info.
thanks.... if there is one, I will add it to the chat....
Thanks for your time
Now that I think of it that could actually be useful. Usually when there's a volume nobody knows about we check the creation-time or if there are any snapshots with a custom name but that's about it.
Would actually be helpful to add a field "created-by" that ONTAP would automatically fill with the ONTAP-user.
There are so many fields already (vol show [vol] -fields) don't think it would hurt to add one more.
If you want you could also use tags to manually document the user: https://docs.netapp.com/us-en/ontap/assign-tags-volumes-task.html
But that's only accessible via System Manager and REST, not via CLI unfortunately.
I agree it would be very nice to be able to add nodes to the volumes, luns and aggregates, much like the notes you can put on a VM in VMWare... in my mind it should not be that hard to add this to ONTAP, and with my experience with NetApp, we should have it in a dacades times 😉
it's a simple scripting exercise to extract that info from the audit logs and write it to a CSV file or similar
@pallid gust We recently added a similar feature in Harvest. See if it helps. More details are available @ https://github.com/NetApp/harvest/discussions/3478
that's actually a neat feature 🙂