Amazon web services AWS-EC 2由于No/sbin/init而突然失去访问权限,正在尝试后退
在我的AWS EC2实例中,由于未知原因从12月6日起被锁定并失去访问权限,这不可能是我在EC2上所做的操作,因为我从12月1日起在海外度假,1月1日回来,我意识到服务器从12月6日起失去连接,我现在无法连接到EC2 EC2在CENTOS 7和PHP、NGINX、SSHD设置上运行 当我查看系统日志时,我看到了下面的内容Amazon web services AWS-EC 2由于No/sbin/init而突然失去访问权限,正在尝试后退,amazon-web-services,amazon-ec2,Amazon Web Services,Amazon Ec2,在我的AWS EC2实例中,由于未知原因从12月6日起被锁定并失去访问权限,这不可能是我在EC2上所做的操作,因为我从12月1日起在海外度假,1月1日回来,我意识到服务器从12月6日起失去连接,我现在无法连接到EC2 EC2在CENTOS 7和PHP、NGINX、SSHD设置上运行 当我查看系统日志时,我看到了下面的内容 [[32m OK [0m] Started Cleanup udevd DB. [[32m OK [0m] Reached target Switch Root.
[[32m OK [0m] Started Cleanup udevd DB.
[[32m OK [0m] Reached target Switch Root.
Starting Switch Root...
[ 6.058942] systemd-journald[99]: Received SIGTERM from PID 1 (systemd).
[ 6.077915] systemd[1]: No /sbin/init, trying fallback
[ 6.083729] systemd[1]: Failed to execute /bin/sh, giving up: No such file or directory
[ 180.596117] random: crng init done
如果您能了解问题所在,我们将不胜感激。简言之,我必须遵循以下步骤进行恢复,根本原因是磁盘已满
) Problem mounting the slaved volume (xfs_admin)
) Not able to chroot the environment (ln -s)
) Disk at 100% (df -h) Removing var/log files
) Rebuilt the initramfs (dracut -f)
) Rename the etc/fstab
) Switched the Slave volume back to original UUID (xfs_admin)
) Configured the Grub to boot the latest version of the kernel/initramfs
) Rebuilt Initramfs and Grub
这看起来像是损坏的根卷。您可以尝试再次停止和启动实例(通过web控制台)。