Page 1 of 1

Greyhole not making extra copies of files over 2 GB

Posted: Sat Oct 09, 2010 12:30 pm
by jschlenk
When I change extra copies from 0 to 1. Then run greyhole --fsck, any file over 2GB fails to copy. Is there a setting somewhere restricting the file size of extra copies? From greyhole.log:

Loading tombstones for Movies/SD/The Godfather.m4v... Got 1 tombstones.
Oct 9 09:06:44 6 fsck: Missing file copies. Expected 2, got 1. Will create more copies using /var/hda/files/drives/drive2/gh/Movies/SD/The Godfather.m4v
Oct 9 09:06:44 7 fsck: Drives with available space: /var/hda/files/drives/drive2/gh (817GB avail) - /var/hda/files/gh (409GB avail) - /var/hda/files/drives/drive3/gh (408GB avail)
Oct 9 09:06:44 7 fsck: Copying file to /var/hda/files/gh/Movies/SD/The Godfather.m4v
Oct 9 09:06:44 4 fsck: PHP Warning [2]: copy(/var/hda/files/drives/drive2/gh/Movies/SD/The Godfather.m4v): failed to open stream: Value too large for defined data type in /usr/bin/greyhole on line 2778
Oct 9 09:06:44 4 fsck: Failed file copy. Skipping.
Oct 9 09:06:44 7 fsck: Updating symlink at /var/hda/files/videos/movies/SD/The Godfather.m4v to point to /var/hda/files/drives/drive2/gh/Movies/SD/The Godfather.m4v

Re: Greyhole not making extra copies of files over 2 GB

Posted: Sat Oct 09, 2010 3:26 pm
by radioz
What format does the destination partition use?

I seem to recall that FAT file systems can't support file sizes > 2GB. Might that be a problem?

If that is the issue, perhaps you could reformat it using ext4 or another file system type that supports large files.

Re: Greyhole not making extra copies of files over 2 GB

Posted: Sat Oct 09, 2010 4:56 pm
by jschlenk
I seem to recall that FAT file systems can't support file sizes > 2GB. Might that be a problem?
The drives are all formatted as EXT4

Re: Greyhole not making extra copies of files over 2 GB

Posted: Sat Oct 09, 2010 4:58 pm
by gboudreau
Try this:

Code: Select all

rpm -Uvh http://greyhole.pommepause.com/releases/hda-greyhole-0.6.27-1.i386.rpm
That should fix your problem.

The version above tries to fix an issue where on 32-bit OS, during fsck only (not during normal operation), trying to create extra copies would fail for big files.
In 0.6.27, rsync is now used to create those copies, which was already the case during normal operation, thus why it worked for creating the 1st copy, and wouldn't work for extra copies.

Let me know.

Re: Greyhole not making extra copies of files over 2 GB

Posted: Sun Oct 10, 2010 10:23 am
by jschlenk
That did the trick. Thanks Guillaume.