[root@010 ~]# /usr/sbin/useradd resin
useradd: unable to lock password file
[root@010 ~]# df
检查磁盘空间足够
[root@gtecd010 ~]# df
Filesystem 1K-块 已用 可用 已用% 挂载点
/dev/sda6 2063504 1269408 689276 65% /
/dev/sda7 43674320 81980 41373768 1% /backup
/dev/sda2 1035692 39800 943280 5% /boot
none 517168 0 517168 0% /dev/shm
/dev/sda3 20641788 3938852 15654296 21% /usr
/dev/sdb1 70557052 22418288 44554668 34% /www
/dev/sda7 43674320 81980 41373768 1% /tmp
inode数仅为3, 初步分析为inode不够建用户文件而导致用户不能添加
[root@gtecd010 ~]# df -i
Filesystem Inode (I)已用 (I)可用 (I)已用% 挂载点
/dev/sda6 262144 262141 3 100% /
/dev/sda7 5554176 19 5554157 1% /backup
/dev/sda2 131616 38 131578 1% /boot
none 129292 1 129291 1% /dev/shm
/dev/sda3 2626560 127673 2498887 5% /usr
/dev/sdb1 8962048 18155 8943893 1% /www
/dev/sda7 5554176 19 5554157 1% /tmp
清理部份文件后:
[root@gtecd010 www]# df -i
Filesystem Inode (I)已用 (I)可用 (I)已用% 挂载点
/dev/sda6 262144 261890 254 100% /
/dev/sda7 5554176 19 5554157 1% /backup
/dev/sda2 131616 38 131578 1% /boot
none 129292 1 129291 1% /dev/shm
/dev/sda3 2626560 127673 2498887 5% /usr
/dev/sdb1 8962048 18155 8943893 1% /www
/dev/sda7 5554176 19 5554157 1% /tmp
[root@gtecd010 www]# /usr/sbin/useradd resin
[root@gtecd010 www]# ll
total 0
[root@gtecd010 www]# df -i
Filesystem Inode (I)已用 (I)可用 (I)已用% 挂载点
/dev/sda6 262144 261906 238 100% /
/dev/sda7 5554176 19 5554157 1% /backup
/dev/sda2 131616 38 131578 1% /boot
none 129292 1 129291 1% /dev/shm
/dev/sda3 2626560 127673 2498887 5% /usr
/dev/sdb1 8962048 18155 8943893 1% /www
/dev/sda7 5554176 19 5554157 1% /tmp
l
阅读(2474) | 评论(0) | 转发(0) |