I am hosting a Wave in a Box server on Ubuntu EC2 instance. I started with a 32 bit micro one and then gradually upgraded to a small and now to a medium. However, as the number of users and stored data grows - the machine runs out of memory, so I want to upgrade to a large instance. The problem is - it's not possible to do by merely stopping the instance, changing the type and restarting. I guess I would need to create a 64 bit large instance and attach to it the volume from the medium instance. The questions are: 1. Is it possible? If so - can someone please help me to write a EC2 console commands based script to do it开发者_如何学JAVA? 2. Is there some other, easier way to upgrade 32 bit medium instance to a 64 bit large one? Thanks!
Unfortunately, like other OS's, I don't think there is a way to upgrade
32 bit to 64 bit. You'll almost certainly need to do a reinstall.
This is how I would do it:
- Backup your important (everything that is required) data.
- Create an EBS volume.
- Attach it to EC2 machine.
- Dump all my valuable/important data on it.
- Detach it from the EC2 machine.
- Blow the current EC2 machine.
- I would create a
snapshot
of the root-device, in-case if it's useful in future.
- I would create a
- Launch an EBS backed 64-bit Ubuntu instance.
- Attach the above EBS volume to this machine.
- Copy your data to it's place.
- Make sure things are working.
- Detach it from the new machine
- Kill the EBS volume.
精彩评论