EBS Contd
Tasks
- Create an ec2 instance
- Create a new empty volume (Size 1 GB)
- Attach the volume to ec2
- Mount this to ec2 instance
- Create a xfs based file system
- Lets mount this to a folder /tools
- Restart the machine
- See what are mounts attached.
- If we need to preserve the mounts we need to deal with fstab
- Execute
sudo blkid
and make a note of block id info
/dev/xvdf: UUID="1b12551c-f61d-4847-bd9d-30fbff96668a" BLOCK_SIZE="512" TYPE="xfs"
- Add the following info to /etc/fstab
UUID=ed4b67f9-3002-461b-ac30-0bb71e4c3f4c /tools xfs defaults,nofail 1 2
- Lets restart the machine and check mounts
-
Refer Here for the instructions
-
Lab Setup
- Ensure you have two linux instances up and running in the same region
- Try doing the single machine and attaching disks in windows