Not enough space on device and unable to SSH.

0

Hi all,
So I am an noob to AWS but I have been running a bitnami-wordpress site on an Ubuntu EC2 t3.small for about 2 years. I recently came across an issue where I can not longer access my site (Service unavailable 503) and I am also unable to SSH in to my instance (timed out). After looking at the system log I found several errors with "OSError: No space left on device". So I did the following steps

Stop the instance.
Created a snap of the volume.
Created a new volume from snap with larger size.
Detached the old volume and attached the new one.
Start the instance.

Looking at the system log after starting the instance, I am still getting the not enough space error and an error with "Failed to start Apply the settings specified in cloud-config". Since I cant SSH in to the instance, I am unable to extend the os to the new volume. Can someone please help with his issue. Thank you.

Sincerely,
Steve

SteveZ
已提問 4 年前檢視次數 633 次
2 個答案
0

maybe you can spin up a temp new running instance.

Connect/mount the "full" volume to the new running instance

cd into it and delete some stuff to free up space and
then you should be able to run it and expand the file system.

As a root user the system should reserve a small amount of
space for the root user and should be able to mount and free up
some space.

Thinking about it, once you have the full volume mounted to
the temp running instance you should be able to expand the file
system from there.

Edited by: piken2 on Jun 29, 2020 5:27 PM

Edited by: piken2 on Jun 29, 2020 5:29 PM

piken2
已回答 4 年前
0

Thank you very much that solved my issue!

SteveZ
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南