FSx for ONTAP configuration options and examples
Learn about backend configuration options for Amazon FSx for ONTAP. This section provides backend configuration examples.
Backend configuration options
See the following table for the backend configuration options:
Parameter | Description | Example |
---|---|---|
|
Always 1 |
|
|
Name of the storage driver |
“ontap-nas”, “ontap-nas-economy”, “ontap-nas-flexgroup”, “ontap-san”, “ontap-san-economy” |
|
Custom name or the storage backend |
Driver name + “_” + dataLIF |
|
IP address of a cluster or SVM management LIF |
“10.0.0.1”, “[2001:1234:abcd::fefe]” |
|
IP address of protocol LIF. |
|
|
Enable automatic export policy creation and updating [Boolean]. |
"false" |
|
List of CIDRs to filter Kubernetes’ node IPs against when |
"[“0.0.0.0/0”, “::/0”]" |
|
Set of arbitrary JSON-formatted labels to apply on volumes |
"" |
|
Base64-encoded value of client certificate. Used for certificate-based auth |
"" |
|
Base64-encoded value of client private key. Used for certificate-based auth |
"" |
|
Base64-encoded value of trusted CA certificate. Optional. Used for certificate-based authentication. |
"" |
|
Username to connect to the cluster or SVM. Used for credential-based authentication. For example, vsadmin. |
|
|
Password to connect to the cluster or SVM. Used for credential-based authentication. |
|
|
Storage virtual machine to use |
Derived if an SVM managementLIF is specified. |
|
Name of the igroup for SAN volumes to use. Refer to Details about |
“trident-<backend-UUID>” |
|
Prefix used when provisioning new volumes in the SVM. |
“trident” |
|
Do not specify for Amazon FSx for NetApp ONTAP. |
Do not use. |
|
Fail provisioning if requested volume size is above this value. |
“” (not enforced by default) |
|
Maximum LUNs per Flexvol, must be in range [50, 200]. |
"100" |
|
Debug flags to use when troubleshooting. Example, {“api”:false, “method”:true} |
null |
|
Comma-separated list of NFS mount options. |
"" |
|
Configure NFS or SMB volumes creation. |
"nfs" |
|
Maximum Qtrees per FlexVol, must be in range [50, 300] |
"200" |
|
Name of the SMB share created using Shared Folder Microsoft Management Console. |
"smb-share" |
|
Boolean parameter to use ONTAP REST APIs. Tech preview |
"false" |
Details about igroupName
igroupName
can be set to an igroup that is already created on the ONTAP cluster. If unspecified, Astra Trident automatically creates an igroup named trident-<backend-UUID>
.
If providing a pre-defined igroupName, we recommend using one igroup per Kubernetes cluster, if the SVM is to be shared between environments. This is necessary for Astra Trident to automatically maintain IQN additions and deletions.
-
igroupName
can be updated to point to a new igroup that is created and managed on the SVM outside of Astra Trident. -
igroupName
can be omitted. In this case, Astra Trident will create and manage an igroup namedtrident-<backend-UUID>
automatically.
In both cases, volume attachments will continue to be accessible. Future volume attachments will use the updated igroup. This update does not disrupt access to volumes present on the backend.
Update dataLIF
after initial configuration
You can change the data LIF after initial configuration by running the following command to provide the new backend JSON file with updated data LIF.
tridentctl update backend <backend-name> -f <path-to-backend-json-file-with-updated-dataLIF>
If PVCs are attached to one or multiple pods, you must bring down all corresponding pods and then bring them back up in order to for the new data LIF to take effect. |
Backend configuration options for provisioning volumes
You can control default provisioning using these options in the defaults
section of the configuration. For an example, see the configuration examples below.
Parameter | Description | Default |
---|---|---|
|
Space-allocation for LUNs |
“true” |
|
Space reservation mode; “none” (thin) or “volume” (thick) |
“none” |
|
Snapshot policy to use |
“none” |
|
QoS policy group to assign for volumes created. Choose one of qosPolicy or adaptiveQosPolicy per storage pool or backend. |
“” |
|
Adaptive QoS policy group to assign for volumes created. Choose one of qosPolicy or adaptiveQosPolicy per storage pool or backend. |
“” |
|
Percentage of volume reserved for snapshots “0” |
If |
|
Split a clone from its parent upon creation |
“false” |
|
Enable NetApp Volume Encryption (NVE) on the new volume; defaults to |
“false” |
|
Enable LUKS encryption. Refer to Use Linux Unified Key Setup (LUKS). |
"" |
|
Tiering policy to use “none” |
“snapshot-only” for pre-ONTAP 9.5 SVM-DR configuration |
|
Mode for new volumes. |
“" |
|
Security style for new volumes. |
NFS default is |
Example
Using nasType
, node-stage-secret-name
, and node-stage-secret-namespace
, you can specify an SMB volume and provide the required Active Directory credentials. SMB volumes are supported using the ontap-nas
driver only.
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: nas-smb-sc provisioner: csi.trident.netapp.io parameters: backendType: "ontap-nas" trident.netapp.io/nasType: "smb" csi.storage.k8s.io/node-stage-secret-name: "smbcreds" csi.storage.k8s.io/node-stage-secret-namespace: "default"