DevBoi

[AWS] EC2 장애 반복 본문

Infra/[AWS]

[AWS] EC2 장애 반복

HiSmith 2024. 1. 6. 13:21
반응형

잘 동작하는 서버가 갑자기 동작을 안한다.

특정 시간이 지나면 장애가 발생하는 것인데, 아래와 같이 인스턴스가 다름을 확인했다.

 

상태 검사가 이 EC2는 1개가 실패한것이다.

아래와 같이 로그를 확인했다.

 

 

특정 이슈로 보이는 부분을 발견했다.

 

[  OK  ] Finished Record successful boot for GRUB.
         Starting GRUB failed boot detection...
[  OK  ] Started System Logging Service.
[  OK  ] Started User Login Management.
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Started chrony, an NTP client/server.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily dpkg database backup timer.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.

 

 

 

 

[  OK  ] Finished GRUB failed boot detection.

이 부분이라서 EC2를 재기동후에 아래와 같이 조치했다.

> sudo update-grub

 

커맨드로 해당 패키지를 업데이트 해줬다.

 

일단 이렇게 해두고 몇일 둬보자, 또 이상이있다면 이 글을 업데이트 해볼 예정이다.

우선은 이 글이 이게 마지막이라면 해당 조치로 처리된 것이다.

반응형