如果在AWS EC2的某個instance view的console裡出現AMI: Unavailable
這表示你的instance A已經掛了就算重新restart都沒用的話
1.請先將instance A停掉(狀態是stop)
2.再到左邊選單ELASTIC BLOCK STORE > Volumes找出instance A的所屬的Volume ID然後按右鍵選擇Detach Volume
3.到Dashboard新建一個instance X (跟instance A同樣系統,是WIN就裝WIN,是linux就裝linux)
4.裝好新的instance X之後, 再到左邊選單ELASTIC BLOCK STORE > Volumes找出instance A的所屬的Volume ID然後按右鍵選擇Attach Volume把它加到instance X
5.遠端登入instance X再將加載的Volume mount起來就可以了,但是AP應該還是要重新安裝只是一些資料還在而已.
建議最好還是隨時備份或是有作image,不怕花錢那就做Snapshots
沒有留言:
張貼留言