[plug] xfs errors?

Brad Campbell brad at fnarfbargle.com
Sat Jul 16 19:38:54 AWST 2022


G'day All,

Back in 2020 I did a bit of a shootout between ext4 and xfs for an rsync rotating backup repository.
Hedging bets I ended up with one 4TB drive with each and they've been doing nightly backups since ~Feb 2020.

Let me be clear here  : * I'm not having issues with either. *

As in, the backups work, all files appear coherent, I've had no reports of problems from the kernel and frankly it all looks good.

Last night I unmounted both drives and ran e2fsck and xfs_repair respectively just as a "Let's see how it's all doing".

e2fsck ran to completion without an issue. xfs_repair has been spitting out errors constantly for about the last 18 hours.

Fun stuff like : entry at block 214 offset 176 in directory inode 1292331586 has illegal name "/606316974.14676_0.srv:2,a": entry at block 214 offset 216 in directory inode 1292331586 has illegal name "/606318637.23354_0.srv:2,a": entry at block 214 offset 256 in directory inode 1292331586 has illegal name "/606318639.23364_0.srv:2,a": entry at block 214 offset 296 in directory inode 1292331586 has illegal name "/606318640.23369_0.srv:2,a": entry at block 214 offset 336 in directory inode 1292331586 has illegal name "/606318646.23391_0.srv:2,a": entry at block 214 offset 376 in directory inode 1292331586 has illegal name "/606319148.26097_0.srv:2,a": entry at block 214 offset 416 in directory inode 1292331586 has illegal name "/606319150.26107_0.srv:2,a": entry at block 214 offset 456 in directory inode 1292331586 has illegal name "/606319152.26158_0.srv:2,a": entry at block 3 offset 3816 in directory inode 1292331587 has illegal name "/606350201.7742_1.srv:2,Sa": entry at block 3 offset 3856 in directory inode 1292331587 has illegal name "/606369099.14439_1.srv:2,Sa": imap claims a free inode 1292346502 is in use, correcting imap and clearing inode
cleared inode 1292346502
imap claims a free inode 1292439884 is in use, correcting imap and clearing inode
cleared inode 1292439884
imap claims a free inode 1292442224 is in use, correcting imap and clearing inode
cleared inode 1292442224

It started with a continuous whine about indoes with bad magic and lots of scary sounding stuff during stage 3 and has settled down to this in stage 4.

From the file names I'm seeing, I suspect they're deleted files and directories. As you'd imagine, 2 and a half years of rotating backups sees lots of stuff added, linked and deleted.

I can stop xfs_repair, mount and check the filesystem contents. It all looks good. When I unmount and re-run xfs_repair it pretty much picks up where it left off. I've had to add an extra 32G of ram in the machine and even then I've had to limit xfs_repair to ~58G because it was using all 64G of ram and heading towards 20G of swap.

I'm new at xfs. Generally when e2fsck reports anything like this the filesystems is toast. In this case I can't find anything missing or corrupt, but xfs_repair is going bonkers.

This is an xfs V4 filesystem, and I've upgraded to xfsprogs 5.18, but it's all the same really.

I've made an emergency second backup of the systems this drive was backing up in case it all goes south but despite the spew of errors the actual filesystem looks perfectly fine. Has anyone seen anything similar?

Regards,
Brad


More information about the plug mailing list