让我解释一下我使用的操作系统的规格和我的 VPS 的存储空间信息
这是我的操作系统
vico@vicoartwork:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
我的 Inode 空间
vico@vicoartwork:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/ploop27163p1 100195056 39685 100155371 1% /
devtmpfs 65536 55 65481 1% /dev
tmpfs 65536 1 65535 1% /dev/shm
tmpfs 65536 161 65375 1% /run
tmpfs 65536 2 65534 1% /run/lock
tmpfs 65536 10 65526 1% /sys/fs/cgroup
none 65536 1 65535 1% /run/shm
我的存储空间
vico@vicoartwork:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop27163p1 15G 1.3G 13G 9% /
devtmpfs 256M 0 256M 0% /dev
tmpfs 256M 0 256M 0% /dev/shm
tmpfs 256M 4.4M 252M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 256M 0 256M 0% /sys/fs/cgroup
none 256M 0 256M 0% /run/shm
这是我之前第三次重建 VPS,我之前安装GO
使用过GVM
。但是它占用了太多的存储空间。450MB
因为我编译了 go1.4 然后是 go1.8.1。因为占用了太多空间并且no space left on device
出现错误,我重建了我的 vps 并从 golang 网站下载 go 二进制文件。
当我尝试运行 go file 时,它的响应如下
vico@vicoartwork:~/go1.8.1/go/InfusedProject/src/infused-japanese$ go run infused-japanese.go
# command-line-arguments
/home/vico/go1.8.1/go/pkg/tool/linux_amd64/link: flushing $WORK/command-line-arguments/_obj/exe/infused-japanese: write $WORK/command-line-arguments/_obj/exe/infused-japanese: no space left on device
通常如果 dlv,使用相同的命令
vico@vicoartwork:~/go1.8.1/go/InfusedProject/src/infused-japanese$ dlv debug --headless --listen=:2345 --api-version=2
mkdir /tmp/go-build722616582: no space left on device
exit status 1
从我的本地计算机提交 16kb 文件,推送到服务器。然后拉取
vico@vicoartwork:~/go1.8.1/go/InfusedProject/src/infused-japanese$ git pull origin master
Enter passphrase for key '/home/vico/.ssh/id_rsa':
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
error: unable to create temporary file: No space left on device
fatal: failed to write object
fatal: unpack-objects failed
我已经尝试搜索大量不必要的文件并将其删除。但仍然不起作用。
所以我尝试删除我的 go 文件夹并再次下载
vico@vicoartwork:~$ rm -rf go1.8.1
vico@vicoartwork:~$ wget https://redirector.gvt1.com/edgedl/go/go1.8.1.linux-amd64.tar.gz
--2017-11-06 17:32:11-- https://redirector.gvt1.com/edgedl/go/go1.8.1.linux-amd64.tar.gz
Resolving redirector.gvt1.com (redirector.gvt1.com)... 74.125.130.138, 74.125.130.139, 74.125.130.100, ...
Connecting to redirector.gvt1.com (redirector.gvt1.com)|74.125.130.138|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://r3---sn-poqvn5u-jb36.gvt1.com/edgedl/go/go1.8.1.linux-amd64.tar.gz?cms_redirect=yes&expire=1510021931&ip=101.50.1.2&ipbits=0&mm=28&mn=sn-poqvn5u-jb36&ms=nvh&mt=1510007181&mv=u&pl=22&shardbypass=yes&sparams=expire,ip,ipbits,mm,mn,ms,mv,pl,shardbypass&signature=31C9F99CCC6E64C815A0D1778B67BAF14251E059.48B5A4A4B42034F1958D81CD5FDBBBAFDEAA0E1C&key=cms1 [following]
--2017-11-06 17:32:11-- https://r3---sn-poqvn5u-jb36.gvt1.com/edgedl/go/go1.8.1.linux-amd64.tar.gz?cms_redirect=yes&expire=1510021931&ip=101.50.1.2&ipbits=0&mm=28&mn=sn-poqvn5u-jb36&ms=nvh&mt=1510007181&mv=u&pl=22&shardbypass=yes&sparams=expire,ip,ipbits,mm,mn,ms,mv,pl,shardbypass&signature=31C9F99CCC6E64C815A0D1778B67BAF14251E059.48B5A4A4B42034F1958D81CD5FDBBBAFDEAA0E1C&key=cms1
Resolving r3---sn-poqvn5u-jb36.gvt1.com (r3---sn-poqvn5u-jb36.gvt1.com)... 114.4.7.14, 2407:0:0:13::e
Connecting to r3---sn-poqvn5u-jb36.gvt1.com (r3---sn-poqvn5u-jb36.gvt1.com)|114.4.7.14|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 91277742 (87M) [application/x-gzip]
go1.8.1.linux-amd64.tar.gz: No space left on device
Cannot write to 'go1.8.1.linux-amd64.tar.gz' (Success).
仍然有错误,只有重建我的 vps 后它才会再次工作。
答案1
如果您控制主机节点,请检查以确保支持 ploop 映像的底层文件系统有剩余空间,并且映像所有者的磁盘配额低于其磁盘配额。如果没有,您应该联系您的提供商。