M
M
Michael2017-05-24 08:51:47
Debian
Michael, 2017-05-24 08:51:47

File not being read or deleted from disk on Debian (questions instead of rights and ownership)?

Situation: A Debian (v.8.8) server is running rsnapshot (v.1.3.1) for redundancy. At some point, errors began to appear in the mail:

/bin/rm: cannot remove ‘/home/backup/rsnapshot/hourly.11/srv/home/user/dir’: Directory not empty

Opened the specified directory, and there is a file (file.xml):
[email protected]:/home/backup/rsnapshot/hourly.11/srv/home/user/dir# ls -lai
ls: cannot access file.xml: No such file or directory
total 60
       ? -????????? ? ?        ?            ?            ? file.xml

[email protected]:/home/backup/rsnapshot/hourly.11/srv/home/user/dir# rm file.xml
rm: cannot remove ‘file.xml’: No such file or directory

What could it be and how to fix it? I rummaged through a bunch of information in Google and Yandex - I can’t find anything like it. It looks like rsnapshot did something, but I can't figure out what.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
TyzhSysAdmin, 2017-05-24
@lumian

Check the file system for errors, fsck will help you with this.
https://www.ibm.com/support/knowledgecenter/ru/ssw...
There is a possibility that your hard drive is dying.

A
A person from Kazakhstan, 2017-05-24
@LenovoId

No such file or directory - this also means that this file or directory is missing

E
Erelecano Oioraen, 2017-05-24
@Erelecano

Problem with FS, possibly caused by a problem with the drive.
First, fsck, then look in SMART and change the drive in a panic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question