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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube