2018年7月19日 星期四

samba 無法連線 & 刪除 log 檔案後無法恢復空間

校網伺服器 samba 突然無法連線,apache 正常。

重啟 samba 失敗
# systemctl restart smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.

檢查磁碟空間,發現「根」的空間已滿
# df
檔案系統              1K-區段      已用    可用 已用% 掛載點
/dev/mapper/cl-root  30385668  30385648       20  100% /
devtmpfs               929140         0   929140    0% /dev
tmpfs                  941172         0   941172    0% /dev/shm
tmpfs                  941172     87500   853672   10% /run
tmpfs                  941172         0   941172    0% /sys/fs/cgroup
/dev/sda1             1038336    272944   765392   27% /boot
/dev/sdb1           264090692 184621996 66030592   74% /cnes
tmpfs                   41188         0    41188    0% /run/user/0