No such file or directory containername="node-exporter"

[The Questions]
1.When is this file created ?

  • I think this file would be created when the OS has been rebooted.
    2.How to clear this file

[the Symptoms]
There are the Error Messages at the /var/log/messages as following

kubelet: E0515 13:04:37.994248 15001 cri_stats_provider.go:643] “Unable to fetch container log stats” err=“failed to get fsstats for "/var/log/pods/kube-system_node-exporter-7jbj8_a453032e-d2ef-4c7d-a235-a207c495afb3/node-exporter/7.log": no such file or directory” containerName=“node-exporter”

[The Check Result]
"/var/log/pods/kube-system_node-exporter-7jbj8_a453032e-d2ef-4c7d-a235-a207c495afb3/node-exporter/7.log file is linked as following.but there are some file removed.

lrwxrwxrwx 1 root root 170 2월 20 10:30 7.log → /DATA/DOCKER/manager/containers/9868458414d3eca88bbfe23fa6032f3be71a1e78642d5e45f6c73cd87e82ccca/9868458414d3eca88bbfe23fa6032f3be71a1e78642d5e45f6c73cd87e82ccca-json.log

lrwxrwxrwx 1 root root 170 2월 27 09:12 8.log → /DATA/DOCKER/manager/containers/819f7b45f76f163c714f0581fb4064b2b3e79b6c6a8b6951d89174dd47c4b998/819f7b45f76f163c714f0581fb4064b2b3e79b6c6a8b6951d89174dd47c4b998-json.log

lrwxrwxrwx 1 root root 170 4월 22 12:16 9.log → /DATA/DOCKER/manager/containers/2e9f7db53963cc795bb9d2efe765c501fbebaf3d4372fe65458a0183f06f9183/2e9f7db53963cc795bb9d2efe765c501fbebaf3d4372fe65458a0183f06f9183-json.log