我有一个vServer,我不能上传/复制文件。
它说“设备上没有剩余空间”,但我的硬盘上有130 GB的空间。
这就是它显示的内容:df -h /
df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/volume-root 39G 37G 0 100% /
这就是它显示的内容: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
看起来分区差不多已经满了(39GB的容量是37GB),但是我有130GB硬盘,我该如何解决?
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.
您可能有一个大约130 GiB大小的LVM卷组(VG)(创意名称为“卷”),其中仅创build了一个逻辑卷(LV)。 看看它:
vgdisplay -v
不扔在/ dev / root的所有容量是一个很好的想法恕我直言。 您可以扩展( lvresize , lvextend )现有的LV(以及之后的文件系统)或创build新的(最好)。 使用lvcreate或(更好)你的发行版的工具。 并看看你的磁盘分区:
fdisk -l /dev/vda
df -i在这里不能certificate任何东西,1GB文件的一个inode会使得df -i的%更less。 您需要查看您的VG(卷组)中是否有空闲盘区您需要增加LV(逻辑卷)然后调整实际的fs