style= »text-align: center; »>Lab7c : Mounting on Amazon EC , Linux instances using the EFS mount helpersudo mount -t efs -o tls fs-abcd123456789ef0.efs.us-east-2.amazonaws.com efs/
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/
sudo mount -t efs -o tls fs-abcd123456789ef0.efs.us-east-2.amazonaws.com efs/
>
This procedure requires the following:
- You have installed the
amazon-efs-utils
package on the ECsudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/
instance. For more information, see Manually installing the Amazon EFS client. - You have created mount targets for the file system. For more information, see Creating and managing mount targets and security groups.
sudo mount -t efs -o tls,mounttargetip=mount-target-ip
file-system-id
efs-mount-point
/
>To mount your Amazon EFS file system using the mount helper on EC
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/
Linux instances
sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
>
efs-mount-point
/
- Open a terminal window on your EC
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/
instance through Secure Shell (SSH), and log in with the appropriate user name. For more information, seesudo mount -t efs -o tls
/latest/UserGuide/AccessingInstancesLinux.html">Connect to your Linux instance using SSH for Linux instances.file-system-dns-name
efs-mount-point
/ - Create a directory
efs
that you will use as the file system mount point using the following command:sudo mkdir efs
> - Run one of the following commands to mount your file system.
sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
efs-mount-point
/> sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
efs-mount-point
/>
If the EC
,
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/instance and the file system you are mounting are located in different AWS Regions, see Mounting Amazon EFS file systems from a different AWS Region to edit the
region
property in theefs-utils.conf
file.- To mount using the file system id:
,
sudo mount -t efs
file-system-id
efs-mount-point
/>
Use the ID of the file system you are mounting in place
andfile-system-id
efs
in place ofefs-mount-point
.sudo mount -t efs -o tls
XhSDfile-system-dns-name
efs-mount-point
/,
sudo mkdir efs
llt9UwFq9AA==" data-testid="codeBtnContainer">
sudo mkdir efs
">sudo mount -t efs fs-abcd,
sudo mount -t efs
file-system-id
efs-mount-point
/,
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/,
sudo mount -t efs -o tls fs-abcd123456789ef0.efs.us-east-2.amazonaws.com efs/
,
sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
efs-mount-point
/,
sudo mount -t efs -o tls,mounttargetip=192.0.2.0 fs-abcd123456789ef0 efs/
6789ef
,
sudo mkdir efs
efs/
Alternatively, if you want to use encryption of data in transit, you can mount your file system with the following command.
sudo mount -t efs -o tls
XhSDfile-system-dns-name
efs-mount-point
/,
sudo mkdir efs
llt9UwFq9AA==" data-testid="codeBtnContainer">
sudo mkdir efs
">sudo mount -t efs -o tls fs-abcd,
sudo mount -t efs
file-system-id
efs-mount-point
/,
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/,
sudo mount -t efs -o tls fs-abcd123456789ef0.efs.us-east-2.amazonaws.com efs/
,
sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
efs-mount-point
/,
sudo mount -t efs -o tls,mounttargetip=192.0.2.0 fs-abcd123456789ef0 efs/
6789ef
,
sudo mkdir efs
:/ efs/
- To mount using the file system DNS name:
,
sudo mount -t efs -o tls
file-system-dns-name
efs-mount-point
/>
,
sudo mount -t efs -o tls fs-abcd123456789ef0.efs.us-east-2.amazonaws.com efs/
>
- To mount using the mount target IP address:
,
sudo mount -t efs -o tls,mounttargetip=
mount-target-ip
file-system-id
efs-mount-point
/>
,
sudo mount -t efs -o tls,mounttargetip=192.0.2.0 fs-abcd123456789ef0 efs/
>
You can view and copy the exact commands to mount your file system in the Attach dialog box.
- In the Amazon EFS console, choose the file system that you want to mount to display its details page.
- To display the mount commands to use for this file system, choose Attach in the upper right.The Attach screen displays the exact commands to use for mounting the file system in the following ways:
- (Mount via DNS) Using the file system's DNS name with the EFS mount helper or an NFS client.
- (Mount via IP) Using the mount target IP address in the selected Availability Zone with an NFS client.
- To mount using the file system id:
Note ,