Step 2: Mounting your file system from an Amazon EC2 Linux instance - FSx for ONTAP

Step 2: Mounting your file system from an Amazon EC2 Linux instance

You can mount your file system from an Amazon Elastic Compute Cloud (Amazon EC2) instance. This procedure uses an instance running Amazon Linux 2.

To mount your file system from Amazon EC2

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. Create or select an Amazon EC2 instance running Amazon Linux 2 that is in the same virtual private cloud (VPC) as your file system. For more information about launching an instance, see Step 1: Launch an instance in the Amazon EC2 User Guide for Linux Instances.

  3. Connect to your Amazon EC2 Linux instance. For more information, see Connect to your Linux instance in the Amazon EC2 User Guide for Linux Instances.

  4. Open a terminal on your Amazon EC2 instance using secure shell (SSH), and log in with the appropriate credentials.

  5. Make a directory on your Amazon EC2 instance for the volume's mount point with the following command.

    $ sudo mkdir /fsx
  6. Mount your Amazon FSx for NetApp ONTAP file system to the directory that you created. Use a mount command similar to the following example. In the following example, replace each user input placeholder with your own information.

    sudo mount -t nfs -o nfsvers=4.1 svm-01234567.fs-01234567.fsx.us-east-1.amazonaws.com:/vol1 /fsx