问题代码:
[cuixiaohuan lamp]$ mkdir test
mkdir: cannot create directory `test': Invalid argument
Linux操作系统正常,没有其他问题;问题突然发生了,如何解决?
关于环境:
# linux
[cuixiaohuan ~]$ uname -a
Linux cuixiaohuan 2.6.32_1-10-0-0 #1 SMP Fri Feb 1 17:20:11 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
# file permission
[cuixiaohuan lamp]$ ll
total 5744
drwxrwxrwx 16 work work 4096 Jan 21 14:33 apache2
drwxrwxrwx 5 work work 4096 Jul 19 2013 memcached
drwxrwxrwx 13 work work 4096 Jan 8 10:50 mysql5
drwxrwxrwx 8 work work 4096 Dec 7 17:25 php5
# about disk and inonde
[cuixiaohuan lamp]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 8.2G 7.0G 1.2G 86% /
/dev/sda3 1.4T 939G 402G 71% /home
[cuixiaohuan lamp]$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 1098880 573014 525866 53% /
/dev/sda3 181288960 6331853 174957107 4% /home
# mount info
[cuixiaohuan lamp]$ mount
/dev/sda2 on / type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /home type ext2 (rw)
日志信息如下
strace info是正常的,有人告诉我为什么以及如何修复?
答案 0 :(得分:0)
有时会在文件系统损坏的情况下发生这种情况。
您可以在文件系统上尝试fsck
。