Skip to content

AWS Lambda function to monitor FSxN at regular interval and auto-resize when threshold is exceeded

License

Notifications You must be signed in to change notification settings

NetApp/fsxn-monitoring-auto-resizing

Repository files navigation

FSx for ONTAP Monitoring and Auto-Resizing using AWS Lambda Function

FSx for ONTAP is a first party enterprise-grade cloud storage service available on AWS that provides highly reliable, scalable, high-performing and feature-rich file storage built on the popular NetApp ONTAP file system.

FSx for ONTAP provides seamless deployment and management. No storage expertise is required to get started. To further simplify monitoring, an AWS lamdba function (to automate resizing of total storage capacity, volume size or LUN size based on threshold) can be used.  This document provides a step by step guide to create an automated setup that monitors FSx for ONTAP at regular intervals, notifies and resizes when a user-specified threshold is crossed and notifies the administrator of the resizing activity.

License

By accessing, downloading, installing or using the content in this repository, you agree the terms of the License laid out in License file.

Note that there are certain restrictions around producing and/or sharing any derivative works with the content in this repository. Please make sure you read the terms of the License before using the content. If you do not agree to all of the terms, do not access, download or use the content in this repository.

Copyright: 2023 NetApp Inc.

Features

The solution provides the following features:

  • Ability to monitor:
    • Usage of overall Storage Capacity of FSx for ONTAP
    • Usage of each volume (thin provisioned / thick provisioned)
    • Usage of each LUN (thin provisioned / thick provisioned)
  • Ability to resize any of the above when a user-defined threshold is breached
  • Alerting mechanism to receive usage warning and resizing notifications via email
  • Ability to delete snapshots older than user-defined threshold
  • Ability to get a list of FlexClone volumes and snapshots associated
  • Ability to run the checks at a regular interval
  • Ability to use the solution with or without internet access
  • Ability to deploy the solution manually or using AWS CloudFormation Template

Pre-requisites

Before you begin, ensure that the following prerequisites are met:

  • FSx for ONTAP is deployed
  • Private subnet with connectivity to FSx for ONTAP
  • "fsxadmin" password has been set for FSx for ONTAP

Solution Architecture and Deployment Guide

The documentation for the solution architecture used and the deployment guidelines are available at https://docs.netapp.com/us-en/netapp-solutions/automation/fsxn_monitoring_resizing_automation.html

Note: The solution is provided as-is. Please test before deploying to production

Author Information

  • Dhruv Tyagi - NetApp Solutions Engineering Team
  • Vedant Sethia - NetApp Solutions Engineering Team
  • Niyaz Mohamed - NetApp Solutions Engineering Team

About

AWS Lambda function to monitor FSxN at regular interval and auto-resize when threshold is exceeded

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages