Linux – No space left on device

devicehard drivelinuxlinux-vserverpartition

I have a vServer and I can't upload/copy files.

It says "no space left on device" but I have like 130 GB on my hdd.

This is what it shows on: df -h /

df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/volume-root
                       39G   37G     0 100% /

This is what it shows on: df -i

df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/volume-root
                     2575440  293897 2281543   12% /
tmpfs                1024770       5 1024765    1% /lib/init/rw
udev                 1023447     517 1022930    1% /dev
tmpfs                1024770       1 1024769    1% /dev/shm
/dev/vda1              65536     222   65314    1% /boot
overflow             1024770       2 1024768    1% /tmp

It seems like the partition is nearly full (37gb out of 39gb) but I have 130 GB hdd, how can I fix this?

Disk /dev/vda: 167.5 GB, 167503724544 bytes
16 heads, 63 sectors/track, 324559 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e7311

Device Boot Start End Blocks Id System
/dev/vda1 *    3    523    262144 83 Linux
    Partition 1 does not end on cylinder boundary.
/dev/vda2    523  83221  41679872 8e Linux LVM
    Partition 2 does not end on cylinder boundary.

Best Answer

You probably have a LVM volume group (VG) of about 130 GiB size (with the very creative name "volume") in which just one logical volume (LV) has been created. Have a look at it:

vgdisplay -v

Not throwing all capacity in /dev/root was a goot idea IMHO. You can either extend (lvresize, lvextend) the existing LV (and after that the file system in it) or create new ones (preferably). Use lvcreate or (better) your distro's tool for that. And have a look at your disk partitioning:

fdisk -l /dev/vda
Related Topic