I already have a ec2 instance running ubuntu on a micro instance. The hard drive is only 7gb. I am shutting down an old server and migrating it to this one. The old server has 15gb of data I need to transfer to the ec2 instance. How can I either a) increase the size of the root ebs drive or b) (the preferred method) add ANOTHER ebs drive so I can transfer the files over and later delete if i need to.
|
Amazon details the process of attaching EBS volumes, quite well in their documentation Via the console:
Via the command line:
You can't resize an EBS volume live - the process entails creating a snapshot, and making a new, larger volume from that snapshot. To resize a root EBS volume:
Additionally, it is worth mentioning that Also keep in mind that you must pass your private key and certificate to almost all EC2 API commands, or alternatively, you can set ( The root volume will be automatically mounted (provided that you have it attached as the same device as the previous root volume). Other, additional EBS volumes that you attach are only made available as devices - they are not automatically mounted. You can get a list of the attached 'volumes' using |
|||||||
|
|
Increasing the size of root EBS drive is quite complicated and involves quite a bit of work. The easier way is to add another EBS volume of desired size, mount and symlink. |
|||||
|
|
The easiest way to do this is to create another EBS volume of the desired size in the web interface and then attach it to the running instance with the old data. Then you can format the new drive, mount it and copy over the files. |
|||
|
|