Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Ubuntu not enough space on AWS EC2

  1. #1
    Join Date
    Dec 2011
    Beans
    6

    Ubuntu not enough space on AWS EC2

    I have 25GB volume on EC2. OS is Ubuntu 12.04 LTS. I can connect to it, but cannot even write 1KB. I tried to delete some files and write again - the same result - not enough space.


    I tried to check free space and got this error.


    df -h
    df: cannot read table of mounted file systems: No such file or directory


    Then I tried to get directory sizes. It seems that only 13GB from 25GB is full:


    du -h --max-depth=1
    18M ./boot
    16K ./lost+found
    4.0K ./tmp
    83M ./lib
    192K ./home
    8.7M ./bin
    4.0K ./selinux
    4.0K ./opt
    100K ./root
    8.0K ./dev
    du: cannot access `./proc/1312/task/1312/fd/4': No such file or directory
    du: cannot access `./proc/1312/task/1312/fdinfo/4': No such file or directory
    du: cannot access `./proc/1312/fd/4': No such file or directory
    du: cannot access `./proc/1312/fdinfo/4': No such file or directory
    0 ./proc
    7.9M ./sbin
    434M ./usr
    172K ./run
    13G ./var
    0 ./sys
    4.0K ./srv
    4.0K ./mnt
    4.0K ./lib64
    4.0K ./media
    5.8M ./etc
    13G .


    Mounts


    mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,relatime,size=1912272k,nr_inodes=478068,mode=7 55)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode =000)
    tmpfs on /run type tmpfs (rw,nosuid,relatime,size=768100k,mode=755)
    /dev/disk/by-label/cloudimg-rootfs on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered )
    none on /sys/fs/fuse/connections type fusectl (rw,relatime)
    none on /sys/kernel/debug type debugfs (rw,relatime)
    none on /sys/kernel/security type securityfs (rw,relatime)
    none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    none on /run/shm type tmpfs (rw,nosuid,nodev,relatime)


    How can I solve this problem?
    Last edited by cariboo907; September 1st, 2013 at 04:30 PM. Reason: normalize font to comply with forum C of C

  2. #2
    Join Date
    Jun 2006
    Location
    Houston, TX
    Beans
    1,103
    Distro
    Ubuntu 6.06

    Re: Ubuntu not enough space on AWS EC2

    I think you are missing a key part...
    lee@dev01:~$ mount
    /dev/sdb1 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    Note how in yours / is not mounted... Do you have a full system, or the Amazon static Ubuntu you can't really modify?

  3. #3
    Join Date
    Nov 2008
    Location
    Los Angeles
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu not enough space on AWS EC2

    Quote Originally Posted by bojloc View Post
    I have 25GB volume on EC2. OS is Ubuntu 12.04 LTS. I can connect to it, but cannot even write 1KB. I tried to delete some files and write again - the same result - not enough space.


    I tried to check free space and got this error.


    df -h
    df: cannot read table of mounted file systems: No such file or directory


    Then I tried to get directory sizes. It seems that only 13GB from 25GB is full:


    du -h --max-depth=1
    18M ./boot
    16K ./lost+found
    4.0K ./tmp
    83M ./lib
    192K ./home
    8.7M ./bin
    4.0K ./selinux
    4.0K ./opt
    100K ./root
    8.0K ./dev
    du: cannot access `./proc/1312/task/1312/fd/4': No such file or directory
    du: cannot access `./proc/1312/task/1312/fdinfo/4': No such file or directory
    du: cannot access `./proc/1312/fd/4': No such file or directory
    du: cannot access `./proc/1312/fdinfo/4': No such file or directory
    0 ./proc
    7.9M ./sbin
    434M ./usr
    172K ./run
    13G ./var
    0 ./sys
    4.0K ./srv
    4.0K ./mnt
    4.0K ./lib64
    4.0K ./media
    5.8M ./etc
    13G .


    Mounts


    mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,relatime,size=1912272k,nr_inodes=478068,mode=7 55)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode =000)
    tmpfs on /run type tmpfs (rw,nosuid,relatime,size=768100k,mode=755)
    /dev/disk/by-label/cloudimg-rootfs on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered )
    none on /sys/fs/fuse/connections type fusectl (rw,relatime)
    none on /sys/kernel/debug type debugfs (rw,relatime)
    none on /sys/kernel/security type securityfs (rw,relatime)
    none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    none on /run/shm type tmpfs (rw,nosuid,nodev,relatime)


    How can I solve this problem?


    When setting up the instance you should have a screen like below - make sure youve selected the volumes properly
    snapshot1.png

    df -h should look like
    snapshot2.jpg
    Last edited by sandyd; August 31st, 2013 at 12:22 AM.

  4. #4
    Join Date
    Dec 2011
    Beans
    6

    Re: Ubuntu not enough space on AWS EC2

    Here is 2 screenshots from EC2 control panel

    http://clip2net.com/s/5FcLVi
    http://clip2net.com/s/5FcNmA

  5. #5
    Join Date
    Dec 2011
    Beans
    6

    Re: Ubuntu not enough space on AWS EC2

    cat /etc/mtab cat: /etc/mtab: No such file or directory

    cat /etc/fstab
    LABEL=cloudimg-rootfs / ext4 defaults 0 0
    Last edited by bojloc; August 31st, 2013 at 10:04 AM.

  6. #6
    Join Date
    Dec 2011
    Beans
    6

    Re: Ubuntu not enough space on AWS EC2

    Quote Originally Posted by houstonbofh View Post
    I think you are missing a key part...


    Note how in yours / is not mounted... Do you have a full system, or the Amazon static Ubuntu you can't really modify?

    How can I mount it? I can modify this instance.

  7. #7
    Join Date
    Jun 2006
    Location
    Houston, TX
    Beans
    1,103
    Distro
    Ubuntu 6.06

    Re: Ubuntu not enough space on AWS EC2

    The key part missing is your root directory, but in the system and in the fstab. This is a major issue... I would start with a reboot and see if the root is found again.

  8. #8
    Join Date
    Dec 2011
    Beans
    6

    Re: Ubuntu not enough space on AWS EC2

    I tried to reboot - nothing happens

  9. #9
    Join Date
    Feb 2008
    Beans
    Hidden!

    Re: Ubuntu not enough space on AWS EC2

    DorkBlog

    If you want something you've never had, then you must do things you've never done.
    Tools every shell scripter should have, explainshell, shellcheck, and crontab sandbox.

  10. #10
    Join Date
    Dec 2011
    Beans
    6

    Re: Ubuntu not enough space on AWS EC2

    There are enough space on root - 25GB. And only 13GB are used. But I cannot write anything.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •