Seaf-fsck take long time?

Hi,
I have around 500gb on my Seafile server and I did start seaf-fsck to check my libraries after a power loss and it has been stuck on a libraries that has around 220GB in it for 4h is that normal?

I’ll go to bed now so I guess that I can see tomorrow if it has been any more progress then but I’m just curios if it should take this long?

hmm it’s still running, this is strange. I did run this command.
/opt/nohatech/seafile-server-latest/seaf-fsck.sh >> /opt/nohatech/logs/seaf-fsck.log &

how can I stop it? running Ubuntu 16.04 LTS I guess it’s stuck somehow.

I did check and the process was not running for some strange reason don’t know why.

but I did re-run the command that I have been writting above and then I did see this run in the background.
seafile 4566 0.0 0.0 12588 3084 pts/0 S 14:36 0:00 /bin/bash /opt/nohatech/seafile-server-latest/seaf-fsck.sh
seafile 4571 16.0 0.1 80528 7840 pts/0 D 14:36 0:25 /opt/nohatech/seafile-server-6.2.3/seafile/bin/seaf-fsck -c /opt/nohatech/ccnet -d /opt/nohatech/seafile-data -F /opt/nohatech/conf

To see what’s running in the background you need to do the following command: ps aux | less

Damn, now I’m spamming this thread but when I’m closing the SSH window after I have used the following command:
/opt/nohatech/seafile-server-latest/seaf-fsck.sh >> /opt/nohatech/logs/seaf-fsck.log &

the command stops running for some strange reason =/

& just sends the process to the background, when exiting the login session it will aswell close all remaining processes assigned to your pts.

Try to use tmux or screen

1 Like

It likely involves reading a large number of files. Especially with HDD s this can be quite slow.

I’m also running the seaf-fsck.sh program and have just under 1TB of data. It’s been going for a couple hours now but I would probably expect that.

Unfortunately the output is just like below:

[08/28/18 14:22:38] fsck.c(586): Running fsck for repo b45c6955-ce32-4823-b052-2d3ed6dbd974.
[08/28/18 14:22:38] fsck.c(413): Checking file system integrity of repo 6. xxxxxx...
[08/28/18 14:23:01] fsck.c(650): Fsck finished for repo b45c6955.

Would it be possible to have this script output the library count/percentage so I can get a rough guage of how much longer it could take?
. E.g.

[08/28/18 14:22:38] fsck.c(586): ( 10/150) Running fsck for repo b45c6955-ce32-4823-b052-2d3ed6dbd974.
[08/28/18 14:22:38] fsck.c(413): Checking file system integrity of repo 6. xxxxxx...
[08/28/18 14:23:01] fsck.c(650): Fsck finished for repo b45c6955.
1 Like

this is exactly what i need - mine has been running for 36 + hours and i have no idea, when its going to finish.

Hi
hello I use seaf-fsck with 700 GB of data, and it does not take more than a few seconds, remember to use in your command the “-s” to speed up the control …

boubou@LENOVO-TS150:~$ /home/boubou/cloud/seafile/seafile-pro-server-*/seaf-fsck.sh -s

Starting seaf-fsck, please wait ...

[01/11/21 16:39:02] fsck.c(606): Running fsck for repo dfb63085-9adb-4f60-abd1-dc0392ea5bdf.
[01/11/21 16:39:02] fsck.c(431): Checking file system integrity of repo Musiques(dfb63085)...
[01/11/21 16:39:03] fsck.c(670): Fsck finished for repo dfb63085.

[01/11/21 16:39:03] fsck.c(606): Running fsck for repo b699dc7a-4de6-4fc9-a3af-afb240af6bc7.
[01/11/21 16:39:03] fsck.c(431): Checking file system integrity of repo Seafile Manual(b699dc7a)...
[01/11/21 16:39:03] fsck.c(670): Fsck finished for repo b699dc7a.

[01/11/21 16:39:03] fsck.c(606): Running fsck for repo 85187ca8-243e-47d5-9bb6-133a16baba0d.
[01/11/21 16:39:03] fsck.c(431): Checking file system integrity of repo Photo Upload(85187ca8)...
[01/11/21 16:39:03] fsck.c(670): Fsck finished for repo 85187ca8.

[01/11/21 16:39:03] fsck.c(606): Running fsck for repo 75ab337e-0291-4047-873a-6ffb2b52dca8.
[01/11/21 16:39:03] fsck.c(431): Checking file system integrity of repo Divers(75ab337e)...
[01/11/21 16:39:03] fsck.c(670): Fsck finished for repo 75ab337e.

[01/11/21 16:39:03] fsck.c(606): Running fsck for repo 4f5c8fe8-7c6e-497a-860a-6e48a861eca4.
[01/11/21 16:39:03] fsck.c(431): Checking file system integrity of repo Engie Home Services(4f5c8fe8)...
[01/11/21 16:39:03] fsck.c(670): Fsck finished for repo 4f5c8fe8.

[01/11/21 16:39:03] fsck.c(606): Running fsck for repo 4df37f64-be1f-408d-bca6-98f3d4ed5eeb.
[01/11/21 16:39:03] fsck.c(431): Checking file system integrity of repo Sécurité(4df37f64)...
[01/11/21 16:39:04] fsck.c(670): Fsck finished for repo 4df37f64.

[01/11/21 16:39:04] fsck.c(606): Running fsck for repo 3135a2e9-e1d8-4137-936f-74a1c40c54e3.
[01/11/21 16:39:04] fsck.c(431): Checking file system integrity of repo My Library Template(3135a2e9)...
[01/11/21 16:39:04] fsck.c(670): Fsck finished for repo 3135a2e9.

[01/11/21 16:39:04] fsck.c(606): Running fsck for repo 06567086-8386-4864-a035-00549dcf3dee.
[01/11/21 16:39:04] fsck.c(431): Checking file system integrity of repo Photo Backup(06567086)...
[01/11/21 16:39:05] fsck.c(670): Fsck finished for repo 06567086.

[01/11/21 16:39:05] fsck.c(606): Running fsck for repo 01aaa461-1ebc-4fa6-b337-c87a4350b2ee.
[01/11/21 16:39:05] fsck.c(431): Checking file system integrity of repo Backup Boubou(01aaa461)...
[01/11/21 16:39:13] fsck.c(670): Fsck finished for repo 01aaa461.

seaf-fsck run done

Done.
boubou@LENOVO-TS150:~$