AWS Classroomnotes 20/Apr/2023

EBS Contd

Tasks

  • Create an ec2 instance
    Preview
  • Create a new empty volume (Size 1 GB)
    Preview
  • Attach the volume to ec2
    Preview
    Preview
  • Mount this to ec2 instance
    Preview
  • Create a xfs based file system
    Preview
  • Lets mount this to a folder /tools
    Preview
    Preview
  • Restart the machine
  • See what are mounts attached.
    Preview
    Preview
  • 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
    Preview
  • 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

Overview of Disks on Windows and linux

Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner