This page provides instructions for how to connect NFSv4.1 clients. This page covers only Linux-specific instructions.
Before you begin
Before you connect NFSv4.1 clients, make sure that your volume's export policy lets you to mount the volume. For more information, see NFS file-level access control for UNIX-style volumes. After that, complete the following prerequisites for the different NFSv4.1 options.
NFSv4.1 with numeric IDs
Using numeric IDs versus NFSv4 security identifiers requires a few client configurations:
Edit the
/etc/idmapd.conf
file and change the domain todefaultv4iddomain.com
.Activate changes by running the following command:
nfsidmap -c
Mount the volume.
NFSv4.1 with security principals
Using NFSv4 security principals requires you to configure name mapping on the NFS client and server. NetApp Volumes configures the server by attaching an Active Directory policy and enabling LDAP on the storage pool before it creates a volume.
Edit the
/etc/idmapd.conf
and change the domain todomain = <FDQN_of_Windows_Domain>
.Activate changes by running the following command:
nfsidmap -c
Set up an LDAP client to connect to Active Directory.
Reconfigure
/etc/nsswitch.conf
to use LDAP for user and group lookups.For more information on how to configure LDAP, refer to the following resources:
NFSv4.1 with Kerberos
Set up LDAP as described in NFSv4.1 with Security principals.
Configure a Kerberos client to connect to Active Directory as Key Distribution Center. For more information on how to set up Kerberos, refer to the following resources:
Connect NFSv4.1 clients
When you enable NFSv4.1, volumes with service levels Standard, Premium, and
Extreme automatically enable NFSv4.2 too. The Linux mount command always mounts
the highest available NFS version, unless you specify the version to mount. If
you want to mount with NFSv4.1, use the -o vers=4.1
parameter in your mount
command.
Use the following instructions to connect NFsv4.1 clients using either the Google Cloud console or Google Cloud SDK:
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes.
Click
Show more.Select Mount instructions.
Follow the mount instructions shown in the Google Cloud console.
gcloud
Look up the mount instructions for a volume using the following command:
gcloud netapp volumes describe VOLUME_NAME \ --project=PROJECT_ID \ --location=LOCATION \ --format="value(mountOptions.instructions)"
Replace the following information:
VOLUME_NAME
: the name of the volume.PROJECT_ID
: the name of the project the volume is in.LOCATION
: the location of the volume.
For more information on additional optional flags, see Google Cloud SDK documentation on volumes.
What's next
Connect large capacity volumes with multiple storage endpoints.