Mount Server file with EBS volume in aws-cli
Here we will attach our Server folder with EBS volume. By chance if our EC2 instance crashed then all the data including our website will be lost. To prevent this we will attach that folder with an EBS volume in EC2 service.
Note- Create and Attach an EBS volume with aws-cli
To check the partitions use command
fdisk -l
Now enter into the hardisk and create partition, use command
fdisk name
Inside the hardisk type n and press enter(4times).
After this type w to save the changes.
Now format the partition created, use command
mkfs.ext4 name
At last mount your folder with formated partition, use command
mount name /folder
Now create a html file in it.
Lets check our server working or not.
Thank You for reading.
I would like to thanks Vimal Daga Sir.
My Email — ayanchawlae@gmail.com
Comments
Post a Comment