Amazon EFS provides simple
scalable,fully managed elastic NFS file system for use with AWS Cloud services
and on prem resources.
It can built to scale on demand to
petabytes without distrpting applications and growing and shrinking
automatically.
you can avoid the complexity of
deploying, patching, and maintaining complex file system configurations.
- Write files to and read files from your Amazon EFS file
system by using the NFSv4 protocol.
- Any number of EC2 instances can work with your file
system at the same time, and your instances can be in multiple
Availability Zones in a regio
EFS creation
1.Need to creaete networkaccess
select VPC and required subnets
where you want to create
2.Need to configure file system
settings
select enable lifecycle
managment(for price deduction we need to enable lifecycle policy to move not
accessed for a periodlike 8daysor 15days..etc)
select throughput mode (based on you
regular files transactions)
select performace mode(if required
select max I/O)
select Enacryption(for security)
3.configure client access
set policy for client access(either
root need to access by default others have read only like that)
4.Access Points
select filesystem owner/Group and
permissions here
5.Review.
final step creation custom efs
when you create EC2 you need to
select cusotm filesystem or you need to mount custom efs
After adding custom efs on ec2
the mount point show like the below
[ec2-user@ip-172-31-7-239 ~]$ df -h
Filesystem
Size Used Avail Use% Mounted on
devtmpfs
475M 0 475M 0% /dev
tmpfs
492M 0 492M 0% /dev/shm
tmpfs
492M 464K 492M 1% /run
tmpfs
492M 0 492M 0% /sys/fs/cgroup
/dev/xvda1
8.0G 1.3G 6.8G 16% /
127.0.0.1:/
8.0E 0 8.0E 0% /mnt/efs/fs1
tmpfs
99M 0 99M 0%
/run/user/1000
[ec2-user@ip-172-31-7-239 ~]$ cat
/mnt/efs/fs1
once i deleted EFS in AWS
it will automatically unmount it and
show like below
[ec2-user@ip-172-31-7-239 ~]$ df -h
Filesystem
Size Used Avail Use% Mounted on
devtmpfs
475M 0 475M 0% /dev
tmpfs
492M 0 492M 0% /dev/shm
tmpfs
492M 404K 492M 1% /run
tmpfs
492M 0 492M 0% /sys/fs/cgroup
/dev/xvda1
8.0G 1.3G 6.8G 16% /
tmpfs
99M 0 99M 0%
/run/user/1000
[ec2-user@ip-172-31-7-239 ~]$
No comments:
Post a Comment