Skip to content
Advertisement

write error disk full in EC2 Machine [closed]

I have my EC2 linux instance where some softwares are installed. I downloaded a new zip and was trying to unzip it.

I got this error write error (disk full?). Continue? (y/n/^C) n

The zip is not corrupted and I can unzip it from other instances.

I change instance type from small to medium and then large.Nothing worked.

I ran df -h .

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         16G   56K   16G   1% /dev
tmpfs            16G     0   16G   0% /dev/shm
/dev/xvda1      9.8G  9.7G     0 100% /

I think /dev/xvda1 is culprit. How can i increase the size of this? What is this /dev/xvda1

Advertisement

Answer

It is not a matter of instance type. You must change the volume (EBS) size.

  1. Go to console and select the EBS of that instance , click action dropdown menu , then click modify volume ( A form will appear with the current volume size, increase it )

enter image description here

enter image description here

  1. Try to remove some kilobytes to be able to run (3). rm -rf /tmp/* for example.

  2. Grow/Expand your filesystem :

    sudo growpart /dev/xvda 1
    sudo resize2fs /dev/xvda1
    

NOTES :

  • check Step(1) by lsblk command and check step (3 ) by df -h

  • Scale down your instance before receiving a huge billing the end of month 😅 ( Let it small as it was )

Advertisement