Skip to content

Accidentally Copied Lots of Small Files - Recovering from a Blown Out log and Spool. #320

Description

@old-square-eyes

I backed up an old disk via SAMBA and didn't realise it had a couple hundred thousand tiny files on it (uncompressed website backups, including dependencies).

The GH log filled up the drive, and SAMBA spool too. I cleared the log and ran the following per instructions online for being out of iNodes...

mv /var/spool/greyhole /var/spool/greyhole.bak
mkdir -p /var/spool/greyhole
chmod 777 /var/spool/greyhole
/usr/bin/greyhole --create-mem-spool

Before I started GH; I also deleted all GH pool Dir of the backup, and did the same with the LZ.

However, there must have been queued tasks or a record (DB metadata?) somewhere because it's incrementing through tens of thousands of these files in the log. Not entirely unexpected.

The only issue is it's happening incredibly slowly. Is this a normal FSCK? Or is it processing some spool/DB before it gets to the normal FSCK? Why is it an order of magnitude slower than a normal FSCK?

Would love some help. Part of me feels like I should blow away the DB and do a standard FSCK otherwise this could take weeks.

Nov 09 20:54:01 INFO fsck_file: Now working on task ID 1500441: fsck_file some_file,
Nov 09 20:54:01 DEBUG fsck_file: Loading metafiles for some_file,
Nov 09 20:54:00 DEBUG fsck_file:   Got 0 metadata files.
Nov 09 20:54:00 WARN fsck_file:   WARNING! No copies of this file are available in the Greyhole storage pool: "some_file,". 
Nov 09 20:54:00 DEBUG fsck_file:   Removing metadata files for some_file,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions