Good afternoon, I have a problem when recovering files, the server did not sync again, I ran seaf-fsck --export to get most of the information, but I could not recover everything, there are some folders that I cannot access and other libraries also lost, I attached an image, I already ran the --repair command but it won’t let me access, no commits, I appreciate any help, thank you very much.
That looks like there’s a filesystem problem with the 8b498d3a… directory. That’s from the OS and filesystem on that disk, not from seafile. I would try these steps:
-
Snapshot your seafile VM or disks - If your seafile is in a VM, or runs with a filesystem that supports snapshots (like zfs), make a snapshot now in case something goes wrong in following the rest of these steps.
-
Check the disk for faults. This sort of filesystem issue is often (but not always) the result of a failing drive. If your drive supports it, run smartctl to check if the dive’s “SMART” is reporting problems with the drive. Also run again to do at least a short self-test on the drive. If the drive is failing, forget the rest of this, and make plans to replace it.
-
Repair the filesystem. The steps to do this depend on which filesystem your disk uses, and how your system is set up. For example, zfs can do “scrub” (it’s built-in check and repair) with everything mounted. For older filesystems (like ext4 and xfs) you need to check with it not mounted, or mounted read-only so no writes happen during the check. Usually you can pick a repair option from the boot menu, or boot the install disk into a recovery mode, and run xfs_repair or fsck.ext4 or whatever repair tool is right for your filesystem.
-
Evaluate the damage. If that directory has gone from broken to missing, or is just empty now, the damage might be too bad to recover easily. You could try to revert the snapshot and try the repair again with other options, but odds would be against you at this point, and it’s probably going to be easier to restore from backups.
If you need more detailed help on any of those steps, feel free to ask. Be sure to provide some details to help narrow down what help you need (like what kind of filesystem your dealing with, and how far along you got before getting stuck).