Chinaunix首页 | 论坛 | 博客
  • 博客访问: 854995
  • 博文数量: 254
  • 博客积分: 5350
  • 博客等级: 大校
  • 技术积分: 2045
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-27 13:27
文章分类

全部博文(254)

文章存档

2015年(1)

2014年(9)

2013年(17)

2012年(30)

2011年(150)

2010年(17)

2009年(28)

2008年(2)

分类: LINUX

2011-08-16 13:22:19

 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

centos 5.2系统

tail /var/log/messages

  1. Sep  7 18:04:31 bora ntpd[4063]: synchronized to 220.130.158.71, stratum 2
  2. Sep  7 18:35:57 bora restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

解决方法

  1. $ ls -i /etc/resolv.conf #get inode
  2. 16711694 /etc/resolv.conf
  3. $ sudo find /etc -inum 16711694#find hard link
  4. Password:
  5. /etc/sysconfig/networking/profiles/default/resolv.conf
  6. /etc/resolv.conf
  7. $ sudo /usr/sbin/lsof|grep resolv.conf #make sure it is not open
  8. $ sudo rm /etc/sysconfig/networking/profiles/default/resolv.conf #delete
  9. $ sudo restorecon /etc/resolv.conf
  10. $ sudo ln /etc/resolv.conf /etc/sysconfig/networking/profiles/default/resolv.conf #recreate hard link

阅读(2025) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~