Seaf-fsck take long time?


#1

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?


#2

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.


#3

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


#4

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 =/


#5

& 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


#6

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


#7

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.