Mount EBS EC2 Test

Mount EBS EC2 Postgres Test

  1. Identify EBS Device:

    • SSH into each instance.
    • Run lsblk to list block devices.
    • Find the EBS device (e.g., nvme1n1).

    Create VPC

  2. Check if EBS is Empty:

    • Run sudo file -s /dev/nvme1n1.
    • If empty, the output will indicate ‘data’.
  3. Format EBS (if needed):

    • If empty, format with sudo mkfs -t xfs /dev/nvme1n1.
  4. Create Mount Point and Mount EBS:

    • Create a directory: sudo mkdir /backup.
    • Mount EBS: sudo mount /dev/nvme1n1 /backup.
  5. Verify Mount:

    • Run df -h to see the mounted file systems.

    Create VPC

    Create VPC