EC2でkernel panic

散々、作業した後なので、原因明確に出来ないのですが、
・t1.microからm1.smallにインスタンス変更
・ntpセットアップなどなど。

ググってると、
AWS/EC2
https://forums.aws.amazon.com/thread.jspa?threadID=75911
こんなのある。現象似てる。やってみる。

・microに戻す。
・Managemant Consoleから起動(Start)する。正常起動する!
パーティション確認

$ sudo fdisk -l /dev/xvda

Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1               1          14      112423+  83  Linux
/dev/xvda2              15         668     5253255   83  Linux
/dev/xvda3             669        1044     3020220   82  Linux swap / Solaris

・xvda3を削除

$ sudo fdisk /dev/xvda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1               1          14      112423+  83  Linux
/dev/xvda2              15         668     5253255   83  Linux
/dev/xvda3             669        1044     3020220   82  Linux swap / Solaris

Command (m for help): d
Partition number (1-4): 3

Command (m for help): p

Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1               1          14      112423+  83  Linux
/dev/xvda2              15         668     5253255   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource                                                                                                                                                 busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

・rebootしてちゃんと起動するか確かめる。
・shutdownする。
インスタンスタイプを、smallに変更して起動する→正常起動する!

https://forums.aws.amazon.com/thread.jspa?threadID=75911
この内容としては、Rightscaleのバグらしいです。
スワップ無し状態は、ちょっと不安ですが、
またスワップ作って、起動しなくなったら面倒だし・・・。
様子見。

コマンド忘れすぎ。メモ。
mysql
・テーブル一覧

show tables

この前に、

use schema_name

これをよく忘れる。

・カラム一覧

describe table_name