Open ttimbers opened 4 years ago
fs-6be16a86 is the name of our EFS filesystem we are going to pilot.
@ttimbers, I have mounted the efs on the grading server.
Cool, can you now create a zfs filesystem on it via zfs create
? And if you can do that, can you mount this to the student hub and access the files stored there from both instances?
@hsmohammed - I am trying to work on replicating what we did here... your documentation will be really helpful!
Ah - I think these are them: https://github.com/UBC-DSCI/rudaux/wiki/Create-new-EFS-volume-shared-between-multiple-EC2-instances, right?
Note to myself, I should create ansible roles(?) to do these three steps:
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-f0e16a1d.efs.ca-central-1.amazonaws.com:/ efs
related to JHub infra. Transferring.
To set up your EC2 instance:
Using the Amazon EC2 console, associate your EC2 instance with a VPC security group that enables access to your mount target. For example, if you assigned the "default" security group to your mount target, you should assign the "default" security group to your EC2 instance. Learn more Open an SSH client and connect to your EC2 instance. (Find out how to connect.) If you're using an Amazon Linux EC2 instance, install the EFS mount helper with the following command: sudo yum install -y amazon-efs-utils You can still use the EFS mount helper if you're not using an Amazon Linux instance. Learn more
If you're not using the EFS mount helper, install the NFS client on your EC2 instance: On a Red Hat Enterprise Linux or SUSE Linux instance, use this command: sudo yum install -y nfs-utils On an Ubuntu instance, use this command: sudo apt-get install nfs-common Mounting your file system
Open an SSH client and connect to your EC2 instance. (Find out how to connect). Create a new directory on your EC2 instance, such as "efs". sudo mkdir efs Mount your file system with a method listed following. If you need encryption of data in transit, use the EFS mount helper and the TLS mount option. Mounting considerations Using the EFS mount helper: sudo mount -t efs fs-f0e16a1d:/ efs Using the EFS mount helper and the TLS mount option: sudo mount -t efs -o tls fs-f0e16a1d:/ efs Using the NFS client: sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-f0e16a1d.efs.ca-central-1.amazonaws.com:/ efs If you can't to connect, see our troubleshooting documentation.