可以看出是/etc/resolv.conf的硬连接,inode出错了,所以需要将其删除,重建硬连接即可。
其解决办法如下:
$ ls -i /etc/resolv.conf
16711694 /etc/resolv.conf
$ sudo find /etc -inum 16711694
Password:
/etc/sysconfig/networking/profiles/default/resolv.conf
/etc/resolv.conf
$ sudo /usr/sbin/lsof|grep resolv.conf
$ sudo rm /etc/sysconfig/networking/profiles/default/resolv.conf
$ sudo restorecon /etc/resolv.conf
$ sudo ln /etc/resolv.conf /etc/sysconfig/networking/profiles/default/resolv.conf