1. 程式人生 > >E297: Write error in swap file

E297: Write error in swap file

e297: write error in swap file

當我使用vim編輯一個常用的配置文件的時候出現一個錯誤:


E297: Write error in swap file


然後上網查找原因,說是磁盤空間不足,於是我就查看一下機器磁盤空間使用情況:


sht-sgmhadoopdn-02:postgres:/usr/local/pgsql/data:>df -Th

Filesystem Type Size Used Avail Use% Mounted on

/dev/sda3 ext4 71G 68G 15M 100% /

tmpfs tmpfs 2.9G 4.0K 2.9G 1% /dev/shm

/dev/sda1 ext4 248M 34M 202M 15% /boot


果然根目錄‘/‘使用率100%,然後刪除一些不用的軟件包,再次編輯配置文件,沒有報錯。


本文出自 “10979687” 博客,請務必保留此出處http://10989687.blog.51cto.com/10979687/1976541

E297: Write error in swap file