Score:1

Backup drive on Linux system keeps getting corrupt. How to troubleshoot?

cn flag

My webserver (Debian BullsEye) has an internal 2TB harddrive which sole purpose is to hold a backup of the server's main HD. Every day a cronjob is started that creates a backup using rsync. But every few days, the backup drive gets corrupted and backups fail. Doing an fsck gives me tons of errors like

Entry 'de_language_import.lng' in /backup.2/backup.1/usr/local/ispconfig/interface/web/admin/lib/lang (24910326) has deleted/unused inode 18221087.  Clear?

Free blocks count wrong for group #2226 (2, counted=18).

Free inodes count wrong for group #2224 (541, counted=557).

And lots more.

I then go to reformat the drive, after which backups succeed for a few days, after which the drive gets corrupted again.

I've checked the drives SMART data and it shows the HD in perfect health. I also did a

badblocks -v /dev/sdb1 > badsectors.txt

which results in an empty badsectors.txt file (which I assume means no bad sectors were found).

And that concludes my knowledge of trying to figure out what could be wrong with the HD. So my question is: what else can I do to figure out what is going wrong?

BaronSamedi1958 avatar
kz flag
Check cabling. Mount the drive to some different SATA port or cheap attached SATA controller.
meuh avatar
in flag
Look with journalctl for error messages concerning the path to the drive, such as resets. You might be able to force the sata speed lower to cope with poor or noisy cabling.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.