ec2 实例无法启动

ec2 实例无法启动

我有一个 EBS 支持的 EC2 实例,它无法启动系统日志显示:

    [    0.881605] Write protecting the kernel read-only data: 1196k

    Loading, please wait...

        %GCouldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Couldn't get a file descriptor referring to the console
    Begin: Loading essential drivers... ...
    [    1.006136] fuse init (API version 7.12)

    Done.
    Begin: Running /scripts/init-premount ...
    Done.
    Begin: Mounting root file system... ...
    Begin: Running /scripts/local-top ...
    Done.
    Begin: Waiting for root file system... ...
    Done.
    Begin: Running /scripts/local-premount ...
    Done.
    [    1.320965] kjournald starting.  Commit interval 5 seconds

    [    1.320984] EXT3-fs: mounted filesystem with writeback data mode.

    Begin: Running /scripts/local-bottom ...
    Done.
    Done.
    Begin: Running /scripts/init-bottom ...
    Begin: Starting AppArmor profiles ...
    chroot: cannot execute /etc/apparmor/initramfs: No such file or directory
    Failure: AppArmor profiles failed to load
    Done.
    [    3.741464] EXT3-fs warning: checktime reached, running e2fsck is recommended

    [    3.742696] EXT3 FS on sda1, internal journal

    init: console-setup main process (2139) terminated with status 1


        %Ginit: plymouth main process (341) killed by SEGV signal

    init: plymouth-splash main process (2431) terminated with status 2

    init: squid main process (2493) killed by ABRT signal

    cloud-init running: Sun, 02 Dec 2012 20:36:06 +0000. up 5.77 seconds
    init: ureadahead-other main process (2511) terminated with status 4

    swapon: /dev/sda3: swapon failed: Device or resource busy
    mountall: swapon /dev/sda3 [2513] terminated with status 255
    mountall: Problem activating swap: /dev/sda3
    init: ureadahead-other main process (2522) terminated with status 4

    mountall: Disconnected from Plymouth
    Close

这是否意味着我的 sda1 磁盘有问题?我有一个快照可以用来代替。

答案1

由于系统无法安装交换或 apparmor 配置文件,因此实例肯定存在问题。

这是来自社区 AMI 的新实例还是定制的实例?

在您确定导致该实例无法挂载交换的原因之前,建议使用快照。

相关内容