내용으로 건너뛰기

One of my ec2 instance (Amazon Linux) stopped booting suddenly today!

0

I have tried reboot multiple times, no luck, and I could see in the system log below warning. I use this environment for learning/upgrade myself, and bit new to these kind of issues, appreciate any insights on this regard.

Warning: Boot has failed. To debug this issue add "rd.shell rd.debug" to the kernel command line. I have tried repairing using xfs_repair, in CloudShell, and getting Device or resource busy.

Also, tried rebooting from Cloud Shell, and found below.

[cloudshell-user@ip-<...........> ~]$ reboot System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down [cloudshell-user@ip-<...........> ~]$

Regards, Prasad Bayi

질문됨 2년 전859회 조회

3개 답변
1
수락된 답변

1.Try to detach and attach volume to new instance 2.Then run fsck -y /dev/your partition name 3.and repair it by running xfs_repair

답변함 2년 전

전문가

검토됨 2년 전

전문가

검토됨 2년 전

  • Looking in to this approach, Mohammed. thanks much! I will keep you posted how it goes. As I type, xfs_repair in progress!!

  • I have done this exercise successfully, and recovered all my data. BIG thank you, Mohammed!

0

thank you for the quick response, well appreciated. I tried rebooting from EC2 Dashboard, Its in Running state, but 1/2 checks passed, and not been able to connect. Below are the few ways I tried connecting, but no luck:

  1. From my regular ssh (Connection failed...)
  2. EC2 serial console (Connection stuck with blank window)
  3. Connect using EC2 Instance Connect (Failed to connect to your instance EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html.)

I am not really sure any other approaches will be there to help to connect to do other checks. once again, thank you for your time and efforts

답변함 2년 전

0

Most welcome :)

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠