我最近从 ubuntu 16.04 升级到 18.04.1,遇到了一些问题。为了尝试一些事情,我启动了一个全新的 VM,安装了所有更新并安装了我的媒体共享。然后我尝试启动 plex 媒体服务器,但失败了,并收到以下错误:
Sep 26 15:05:44 plex rsyslogd[1053]: file '6' write error: No space left on device [v8.32.0 try http://www.rsyslog.com/e/2027 ]
Sep 26 15:05:44 plex rsyslogd[1053]: action 'action 3' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.32.0 try http://www.rsyslog.com/e/2027 ]
Sep 26 15:05:44 plex rsyslogd[1053]: file '6' write error: No space left on device [v8.32.0 try http://www.rsyslog.com/e/2027 ]
Sep 26 15:05:44 plex sudo[1895]: pam_unix(sudo:session): session closed for user root
Sep 26 15:05:49 plex sudo[1898]: plex : TTY=pts/0 ; PWD=/dev/mapper ; USER=root ; COMMAND=/bin/journalctl -xe
Sep 26 15:05:49 plex sudo[1898]: pam_unix(sudo:session): session opened for user root by plex(uid=0)
然后我检查了我的文件系统:
plex@plex:/dev/mapper$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 5.9G 0 5.9G 0% /dev
tmpfs 1.2G 1.2M 1.2G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 3.9G 3.7G 0 100% /
tmpfs 5.9G 4.0K 5.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.9G 0 5.9G 0% /sys/fs/cgroup
/dev/loop1 88M 88M 0 100% /snap/core/5328
/dev/loop0 87M 87M 0 100% /snap/core/4917
/dev/sda2 976M 142M 768M 16% /boot
//192.168.178.200/Coding 66T 52T 15T 79% /coding
//192.168.178.200/Music 66T 52T 15T 78% /music
//192.168.178.200/Series 66T 52T 15T 78% /series
//192.168.178.200/Movies 66T 52T 15T 79% /movies
//192.168.178.200/Audioooks 66T 52T 15T 79% /audiobooks
tmpfs 1.2G 0 1.2G 0% /run/user/1000
据我所知,两个卡扣式安装座都应该使用 100%。这是映射器造成的吗?
通过 Google 搜索该问题,我发现了没有任何剩余 inode 的可能原因,因此我检查了:
plex@plex:/dev/mapper$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 1529447 436 1529011 1% /dev
tmpfs 1537097 693 1536404 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 262144 215596 46548 83% /
tmpfs 1537097 2 1537095 1% /dev/shm
tmpfs 1537097 3 1537094 1% /run/lock
tmpfs 1537097 18 1537079 1% /sys/fs/cgroup
/dev/loop1 12860 12860 0 100% /snap/core/5328
/dev/loop0 12842 12842 0 100% /snap/core/4917
/dev/sda2 65536 313 65223 1% /boot
//192.168.178.200/Coding 0 0 0 - /coding
//192.168.178.200/Music 0 0 0 - /music
//192.168.178.200/Series 0 0 0 - /series
//192.168.178.200/Movies 0 0 0 - /movies
//192.168.178.200/Audioooks 0 0 0 - /audiobooks
tmpfs 1537097 10 1537087 1% /run/user/1000
这是我的 /etc/fstab:
UUID=9dd0cc79-c15f-11e8-925a-000c291f8ddc / ext4 defaults 0 0
UUID=9dd0cc78-c15f-11e8-925a-000c291f8ddc /boot ext4 defaults 0 0
//192.168.178.200/Music /music cifs credentials=/home/plex/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
//192.168.178.200/Movies /movies cifs credentials=/home/plex/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
//192.168.178.200/Series /series cifs credentials=/home/plex/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
//192.168.178.200/Audioooks /audiobooks cifs credentials=/home/plex/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
//192.168.178.200/Coding /coding cifs credentials=/home/plex/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
我是否遗漏了什么?
谢谢你的帮助!
答案1
您的根文件系统只有 4GB 并且已满:
/dev/mapper/ubuntu--vg-ubuntu--lv 3.9G 3.7G 0 100% /
答案2
如果您的卷组中还有剩余空间(使用 vgs 检查),则可以将一些空间添加到您的完整逻辑卷中:
lvextend -L +2G /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv