After a restore, when I do a getfacl
or a number of other operations (chmod, etc) on one of the restored folders, it returns Structure needs cleaning
After getfacl
/var/log/messages
shows
XFS (vdb): Internal error xfs_acl_from_disk at line 40 of file fs/xfs/xfs_acl.c. Caller xfs_get_acl+0xea/0x190 [xfs]
…
Corruption detected. Unmount and run xfs_repair
I originally thought it might be issues with my volume structure so I removed all lvm and formatted the whole disk as xfs to no avail.
xfs_repair
returns a ton of
Too many ACL entries, count 1611530356
entry contains illegal value in attribute named SGI_ACL_FILE or SGI_ACL_DEFAULT
would remove attribute entry 1 for inode 62277025927
xfs_repair seems to be able to fix things by truncating the acl and removing unsupported options unless I restore too much of the data so that it exceeds the repair buffer, in which case it puts tons of data in lost+found
. For 4TB of data it put about 200GB of data in lost+found
.
The exact count isn’t always the same but it’s always bonkers like that. Sometimes higher or lower depending on how much I’ve restored so far I think.
I originally thought I had done something wrong, but even if I restore just a small folder, I get these issues. I’ve completely reformatted the drives multiple times in different ways including using nothing but mkfs.xfs for the whole drive (/dev/sda). I am able to copy data to the drive from other locations just fine. It’s only when I use duplicacy that the issue occurs.
A sample restore command that I’ve used is
~/duplicacy -log restore -stats -storage local -threads 16 -ignore-owner -r 1125 -- "shares/Public/*" >> restore1125public.log
I have a couple of personal licenses, but since I have a bunch of scripts at this point and I rarely use a gui, I prefer to use the cli.
I think the main issue is something weird that duplicacy is doing with ACLs but I don’t really know. I’ve been working on this for a few days now and I’m at a loss. I’m currently dead in the water with a full sytem failure and need to get back up asap. I’ve had to turn down a couple of jobs because I don’t have the infrastructure.