Menu

NetApp IT Insider Tips on ONTAP Management Using Ansible

Victor Ifediora
1,525 views

Check out these NetApp IT insider tips on ONTAP management using Ansible. As storage management experts, NetApp IT leans on tools like Red Hat Ansible to help automate the delivery of consistent storage environments, reduce configuration errors, and respond to threshold limits. Two years ago, our team started using ONTAP® Ansible modules to reduce day 0 build times from a 2-day manual process to a 10-minute automated process.

Today, our use of Ansible has grown to include the following:

  • Manage adaptive quality of service (AQoS)
  • Enforce Snapshot™ policies
  • Manage inode full alerts
  • Provision end-to-end storage virtual machines (SVMs)
Ansible’s main goals are simplicity and ease of use. I find that Ansible does not requires special coding skills. It’s very easy to use and decipher. There are many Ansible modules for NetApp® ONTAP, Element®, and E-Series systems that are fully supported and documented. You can also join the Slack channel, where NetApp Ansible developers are ready to answer your questions.

To use Ansible, you need to install the Ansible engine on your control machine.

Manage Adaptive QoS (AQoS) Policies

The Ansible playbook does the following:

  • Creates new AQoS policy groups on each SVM
  • Disassociates the volumes from the old QoS policy groups and deletes the policy groups
  • Assigns AQoS policy groups to volumes, depending on the hosting SVM and aggregate
  • Scans the clusters every hour to identify new SVMs and creates all the policies for those SVMs
  • Identifies all the new volumes that were created and assigns the AQoS policy to the volumes
ONTAP Management with Ansible: Adaptive QoS (AQoS) Policies


Enforce Snapshot Policy
Enforcement of Snapshot policy uses the NetApp Ansible module in these ways:
  • Creates a playbook that assigns Snapshot policy based on the type of volume
  • Automation determines the type of volume, database, data protection, read only, nondatabase, and VMDK volumes
  • If a volume is a database or VMDK or nondatabase, assigns the proper Snapshot policy
  • Skips data protection volumes because they always have a Snapshot policy of None (ONTAP does not allow you to modify Snapshot policy for data protection volumes.)
ONTAP Management with Ansible: enforcing snapshot policy


Manage Inodes by Using Ansible, Zenoss, and ServiceNow
The Ansible play book does the following:
  • Active IQ® Unified Manager generates an inode full alert and sends a trap to Zenoss
  • Zenoss automatically opens a ServiceNow incident and assigns it to Storage Operations
  • Simultaneously, Auto Response kicks in and activates Ansible playbook
  • Ansible playbook modifies the inode, then closes the ticket in ServiceNow
  • Sends email to the operations team
ONTAP Management with Ansible: Manage Inodes by Using Ansible, Zenoss, and ServiceNow


Provision End-to-End Storage Virtual Machine
Provisioning the SVM uses the NetApp Ansible module in these ways:
  • Playbook prompts for the cluster name to create the SVM
  • Prompts for the username and password and the name of the SVM to create
  • The playbook uses the cluster management subnet because all of the SVM management interface is in the same subnet as the cluster management interface
  • The playbook queries the Infoblox for the next available IP in that subnet
Infoblox returns the next available IP and the playbook uses that IP to create a DNS entry for the SVM and also to configure the management interface for the SVM
ONTAP Management with Ansible: Provisioning End-to-End Storage Virtual Machine
Check out the recent webinar I recorded with a co-worker to learn how NetApp IT has adopted automation and infrastructure as code for storage management. Please share via your social media platform of choice.

  The NetApp on NetApp blogs feature advice from NetApp IT subject matter experts who share their real experiences in using industry-leading NetApp data management solutions to support business goals. To learn more, visit www.NetAppIT.com

Victor Ifediora

View all Posts by Victor Ifediora

Next Steps

Drift chat loading