ec2でリージョン間の移動
ec2でus-eastからap-northeastにubuntuサーバを移動した。
移行するとebsからinstance-storeになってしまうので、
それをebsに直すとこまで。
やり方
1.javaをインストール(tools系で使うんだったはず)
sudo apt-get install default-javaとかなんとか
2.ec2-api-tools ec2-ami-toolsをインストール
ubuntuはapt-getでいれられない。
multivarseがどうのこうのみたいな。。。よくわからん。
https://groups.google.com/forum/#!topic/ec2ubuntu/a-9kxKqLcfU
の
a.) get (older) versions released with karmic by adding
multiverse to /etc/apt/sources.list:
をやる。
3.image作成、us-eastのs3にアップロード、us-eastのs3からap-northeastのs3にアップロード
http://d.hatena.ne.jp/oranie/20110303/1299148252
や
http://phpspot.org/blog/archives/2011/03/amazon_ec2_1.html
を参考に。
4.インスタンスを作成すると案の定(instance-store)なので
http://blog.serverworks.co.jp/tech/2010/08/20/ebs-instance-convert-reg/
や
http://d.hatena.ne.jp/j3tm0t0/20110413/1302684912
を参考にebsにする(まだここまでいってない)
これでいいはず!!