2008年5月29日木曜日

restorecond: Will not restore a file

/var/log/messagesのログに1日1度こんなメッセージがある。
restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

なんなんだろうと思って調べてみた。

HPのQ/A:Restorecond
Someone or something has made an additional hard link to your /etc/resolv.conf file.

(Normally a file has just one hard link to it; removing that link will cause the file to be deleted. This is what the "rm" command does.)

Use "ls -li /etc/resolv.conf" to identify the inode number of the file. To find the extra link, use

find / -inum -xdev

or (GNU find specific)

find / -samefile /etc/resolv.conf -xdev

It's possible that you won't find nothing at all: in this case, whatever caused the problem may have also fixed it afterwards.

The message might be caused by someone editing the resolv.conf file: if so, find out which editor is used. This message might be caused by the way the editor creates backup versions of the file. If this is the cause, it's probably harmless. You might be able to avoid the message if the editor can be configured to create backup files in an alternate way.

MK


と回答があった。調べてみると確かに
/etc/sysconfig/networking/profiles/default/resolv.conf
/etc/resolv.conf

とリンクされてるけど、だから何なの?harmlessと書いてあるから期にしなくていいのか?
そっから先が問題だとすると、この記事は続く。

0 件のコメント: