Greyhole not making extra copies of files over 2 GB

jschlenk
Posts: 8
Joined: Tue Oct 05, 2010 1:38 am
Location: Vancouver, Canada

Greyhole not making extra copies of files over 2 GB

Postby jschlenk » Sat Oct 09, 2010 12:30 pm

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

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

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

Postby radioz » Sat Oct 09, 2010 3:26 pm

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.

jschlenk
Posts: 8
Joined: Tue Oct 05, 2010 1:38 am
Location: Vancouver, Canada

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

Postby jschlenk » Sat Oct 09, 2010 4:56 pm

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Sat Oct 09, 2010 4:58 pm

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.
- Guillaume Boudreau

jschlenk
Posts: 8
Joined: Tue Oct 05, 2010 1:38 am
Location: Vancouver, Canada

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

Postby jschlenk » Sun Oct 10, 2010 10:23 am

That did the trick. Thanks Guillaume.

Who is online

Users browsing this forum: No registered users and 14 guests