I am looking for projects to work on
Please contact with me at!

Saturday, August 17, 2013

create an EC2 instance with additional storage (EBS)

  1. Create EBS volume.
  2. Attach EBS volume to /dev/sdf (EC2's external name for this particular device number).
  3. Format file system /dev/xvdf (Ubuntu's internal name for this particular device number):
    sudo mkfs.ext4 /dev/xvdf
  4. Mount file system (with update to /etc/fstab so it stays mounted on reboot):
    sudo mkdir -m 000 /vol
    echo "/dev/xvdf /vol auto noatime 0 0" | sudo tee -a /etc/fstab
    sudo mount /vol
Here is AWS relevant doc.
groups visudo uncomment grant privilidge to wheel group ln -s /source/dir ./softlinkName ssh-keygen 1) I will send you an private key file in separate email. Say, its name is damodar.pem. you download and run “chmod 600 damodar.pem” 2) Ssh into ec2 instance: “ssh -i ./damodar.pem “ 3) After you login, you will see a soft link called workingDir under your home directory. It linked to folder /vol/damodarSandbox. /vol is mount with an EBS volume, which gives you larger storage size. You can run df command to check it. 4) Your account damodar is in sudoer list. So, you can run sudo command. 5) To connect to redshift, you can run command “ psql -h -p 5439 -U YourDBname -d ddwstore” wget --no-cookies --no-check-certificate --header "Cookie:" ""

No comments:

Post a Comment