2012年8月7日火曜日
ec2-bundle-vol で鍵ファイルが削除される
ec2 tools を更新したインスタンスでAMIを取得し、そのAMIを起動した時の事です。
元のインスタンスでは動いていた ec2 tools のコマンドでエラーが発生する(;´Д`)
理由は、秘密鍵等々が無いから。
どうやらver.1.4.0.0以降ではこれらのファイルが削除されるのがデフォルトのようです。
以下、「--manual」より。
The recursive copying process copies directories from the volume into the image.
The special directories:
- '/dev'
- '/media'
- '/mnt'
- '/proc'
- '/sys'
are always excluded.
Files matching the following regular expressions:
- '*/#*#'
- '*/.#*'
- '*.sw'
- '*.swo'
- '*.swp'
- '*~'
- '*.pem'
- '*.priv'
- '*id_rsa*'
- '*id_dsa*'
- '*.gpg'
- '*.jks'
- '*/.ssh/authorized_keys'
- '*/.bash_history'
are excluded by default on Linux. Individual files that match these patterns may be
included by specifying the '--include' option.
ちなみに、これまで使っていたver.1.3-53773では削除されません。
マニュアルにも載っていません。うぐぅ…
仕方がないので、必要なものだけは「--include」で指定しました。
2012年7月18日水曜日
EBS が attaching から attached にならない
EC2にて、EBSを何度かattach/detachしている際に、
ステータスがattachingのまま変化せず、インスタンス側に接続されない事がありました。
■原因
attachしようとしていたデバイスが既に使用(mount)されていたから。
今回は、detachが成功していたのでそのままattachしてしまったのですが、インスタンス側でデバイス(/dev/sdg)がmountされたままでした。
なので、attach出来ずattachingから進まなかったのです。。。
■対応方法
1.mountされていないか確認し、もしされていたらumountする
2.未使用のデバイスを使用する(sdf - sdpの中から選択)
3.インスタンスを再起動する
登録:
投稿 (Atom)