Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

In general, attaching and using an EBS volume can be done like so (from StackOverflow Add EBS to ubuntu EC2 instance):1.

  1. Create EBS volume in the EC2 section of the AWS console.

...

  1. Attach EBS volume to `/dev/

...

  1. sdf` (EC2's external name for this particular device number).

...

  1. Format file system `/dev/

...

  1. xvdf` (Ubuntu's internal name for this particular device number):

    Code Block
    sudo mkfs.ext4 /dev/xvdf

...

  1. Mount file system (with update to /etc/fstab so it stays mounted on reboot):

    Code Block
    sudo mkdir -m 

...

  1. 777 /vol
    echo "/dev/xvdf /vol auto noatime 0 0" | sudo tee -a /etc/fstab
    sudo mount /vol

To mount an existing EBS volume, attach the volume to your instance in the AWS Console, then mount it:

Code Block
sudo mkdir -m 777 /vol
sudo mount /dev/xvdf /vol

Like a real hard-drive, EBS volumes can only be attached to a single instance. But, they can be shared by NFS. <<How to do this?>>

Accessing source code repos on worker nodes

...