创建实例映像后,aws ec2 ssh失败

时间:2020-04-07 09:21:10

标签: amazon-web-services amazon-ec2

我定期创建正在运行的实例的映像,而无需先停止它。多年来一直没有任何问题。今晚,我创建了该实例的另一个映像(除了“ sudo yum update -y”之外,未对虚拟服务器设置进行任何更改),并注意到我的ssh会话已关闭。创建映像后,它似乎已重新启动。然后,Web控制台显示1/2状态检查通过。我重新启动了几次,状态保持不变。日志显示:

Setting hostname localhost.localdomain:  [  OK  ]

Setting up Logical Volume Management: [    3.756261] random: lvm: uninitialized urandom read (4 bytes read)
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
[  OK  ]

Checking filesystems
Checking all file systems.
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/xvda1 
/: clean, 437670/1048576 files, 3117833/4193787 blocks
[/sbin/fsck.xfs (1) -- /mnt/pgsql-data] fsck.xfs -a /dev/xvdf 
[/sbin/fsck.ext2 (2) -- /mnt/couchbase] fsck.ext2 -a /dev/xvdg 
/sbin/fsck.xfs: XFS file system.
fsck.ext2: Bad magic number in super-block while trying to open /dev/xvdg
/dev/xvdg: 
The superblock could not be read or does not describe a valid ext2/ext3/ext4
[    3.811304] random: crng init done
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

[FAILED]


*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
/dev/fd/9: line 2: plymouth: command not found
Give root password for maintenance
(or type Control-D to continue): 

/ dev / xvdg似乎未通过磁盘检查。我从实例中分离了卷,然后重新启动。我仍然无法ssh进入。我将其重新连接并重新启动。现在它说状态检查2/2通过了,但是我仍然无法ssh再次登录,并且日志仍然显示如上所述的/ dev / xvdg问题。

任何帮助将不胜感激。谢谢!

托马斯

0 个答案:

没有答案