在 Ubuntu VM 上升级 MySQL 服务器的尝试失败后,它似乎已经占用了所有剩余的分区空间
reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477
reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19
reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42
reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795
reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252
reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668
emitting double-array: 100% |###########################################|
reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316
emitting matrix : 100% |###########################################|
done!
sed: couldn't flush stdout: No space left on device
dpkg: error processing package mecab-ipadic-utf8 (--configure):
subprocess installed post-installation script returned error exit status 4
Processing triggers for libc-bin (2.23-0ubuntu11) ...
dpkg: unrecoverable fatal error, aborting:
unable to fill /var/lib/dpkg/updates/tmp.i with padding: No space left on device
E: Sub-process /usr/bin/dpkg returned an error code (2)
诊断:
(base) ubuntu@db-server-2:~$ sudo du -sh /
du: cannot access '/proc/22686/task/22686/fd/4': No such file or directory
du: cannot access '/proc/22686/task/22686/fdinfo/4': No such file or directory
du: cannot access '/proc/22686/fd/3': No such file or directory
du: cannot access '/proc/22686/fdinfo/3': No such file or directory
2.9G /
(base) ubuntu@db-server-2:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 799M 8.6M 790M 2% /run
/dev/vda1 2.9G 2.9G 0 100% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 799M 0 799M 0% /run/user/1000
(base) ubuntu@db-server-2:~$ sudo df -i /
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vda1 384000 152311 231689 40% /
看起来 /dev/vda1 已满。
我是一个 Linux 新手,有几个问题:
如何释放空间?我是否要转到根目录并 du -hs 每个目录?如果是这样,我在寻找什么?
我为虚拟机分配了 80G 虚拟磁盘空间,为什么 vda1 分区这么小?如果这是个问题,我该如何增加它的大小?
提前致谢!