Problem balancing drives

t0bbe
Posts: 38
Joined: Mon Apr 26, 2010 5:09 am

Problem balancing drives

Postby t0bbe » Sat May 28, 2011 12:42 am

I had greyhole nicely working with two 2TB drives. Now I added another two 2TB drives.
I am trying to balance the data between them with the "greyhole -l" option, but it gives me a lot of errors in the greyhole.log. And the drives are still very unevenly filled.
First of all I get a lot of:

Code: Select all

May 26 11:12:33 7 balance: Moving this file wouldn't help balancing available space. Skipping.
That I don't really understand why it says it wouldn't help moving the file.
Of more concern is the PHP warnings I get:

Code: Select all

May 26 11:11:03 7 balance: Working on file: The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv (4.37GB) May 26 11:11:03 7 balance: Drives with available space: /var/hda/files/drives/drive4/gh (1.38TB avail) - /var/hda/files/drives/drive2/gh (1.18TB avail) - /var/hda/files/gh (1,017GB avail) May 26 11:11:03 7 balance: Target drive: /var/hda/files/drives/drive4/gh (1.38TB available) May 26 11:11:03 7 balance: Moving file copy... May 26 11:11:03 4 balance: PHP Warning [2]: rename(/var/hda/files/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv): failed to open stream: Value too large for defined data type in /usr/bin/greyhole on line 3481 May 26 11:11:03 4 balance: PHP Warning [2]: rename(/var/hda/files/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv,/var/hda/files/drives/drive4/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/.The.Shawshank.Redemption.1994.720p.x264.mkv.6ca75): Value too large for defined data type in /usr/bin/greyhole on line 3481 May 26 11:11:03 4 balance: Failed file copy. Skipping.
Everything else seems to work fine, I can access the shares, and the "greyhole --fsck" doesn't return any errors.
Attachments
Bild 1.png
Bild 1.png (62.19 KiB) Viewed 3822 times

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

Re: Problem balancing drives

Postby gboudreau » Sat May 28, 2011 2:43 am

Try the latest version: http://forums.amahi.org/viewtopic.php?f ... 863#p14863
Then retry balancing.
It's the first time I see those PHP warnings, but maybe the latest version will work better for this.
- Guillaume Boudreau

t0bbe
Posts: 38
Joined: Mon Apr 26, 2010 5:09 am

Re: Problem balancing drives

Postby t0bbe » Sun Jun 05, 2011 2:17 am

Thanks again for all the help!

I have now updated greyhole, samba, converted to MySQL, re-installed the RPM, all per your instructions, and everything is back working. That is, back to working just the way it was working before.
I still have the problem with the unbalanced drives, and still have the same messages in the greyhole log:

Code: Select all

May 26 11:11:03 7 balance: Working on file: The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv (4.37GB) May 26 11:11:03 7 balance: Drives with available space: /var/hda/files/drives/drive4/gh (1.38TB avail) - /var/hda/files/drives/drive2/gh (1.18TB avail) - /var/hda/files/gh (1,017GB avail) May 26 11:11:03 7 balance: Target drive: /var/hda/files/drives/drive4/gh (1.38TB available) May 26 11:11:03 7 balance: Moving file copy... May 26 11:11:03 4 balance: PHP Warning [2]: rename(/var/hda/files/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv): failed to open stream: Value too large for defined data type in /usr/bin/greyhole on line 3481 May 26 11:11:03 4 balance: PHP Warning [2]: rename(/var/hda/files/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/The.Shawshank.Redemption.1994.720p.x264.mkv,/var/hda/files/drives/drive4/gh/Movies/The.Shawshank.Redemption.1994.720p.x264/.The.Shawshank.Redemption.1994.720p.x264.mkv.6ca75): Value too large for defined data type in /usr/bin/greyhole on line 3481 May 26 11:11:03 4 balance: Failed file copy. Skipping.

Code: Select all

May 26 11:12:33 7 balance: Moving this file wouldn't help balancing available space. Skipping.
I guess that as I add new data it will be filling up the drive with the most space, so it is kind of acceptable and working the way it is now, but it would be nice to get the drives better balanced.

The message "Value too large for defined data type in /usr/bin/greyhole on linte 3481", could it be that the path to the file is too long?

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

Re: Problem balancing drives

Postby gboudreau » Sun Jun 05, 2011 9:30 am

No, the path length is fine. Anything below 255 characters will be fine.

That error message is probably caused by trying to rename (move) a file that is above 2GB on a 32-bit system. You're on 32-bit, right? ("uname -i" would return i386 on 32-bit, and x86_64 on 64-bit).

Also, do you have files below 2GB, but bigger than 10MB ? If so, were they (are they) moved on --balance ?
- Guillaume Boudreau

t0bbe
Posts: 38
Joined: Mon Apr 26, 2010 5:09 am

Re: Problem balancing drives

Postby t0bbe » Sun Jun 05, 2011 11:41 am

Ok, that makes sense. Yes I'm on a 32-bit system.

And it seems to be the larger files that throw the error. The only files that were moved to the new drives during the --balance operation are all under 2GB.
Yes, files over 10MB but under 2GB were moved.

Any way around that?
I can't go to 64-bit unfortunately... :(

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

Re: Problem balancing drives

Postby gboudreau » Sun Jun 05, 2011 12:19 pm

You can track the issue here: https://github.com/gboudreau/Greyhole/issues/18
0.9.8 should attempt to fix this. Attempt because I'm unable to reproduce it, so I'll just try another way I know of to move the files, and hope it works (I'm pretty sure it will; it did resolve other similar issues on 32-bit).
- Guillaume Boudreau

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

Re: Problem balancing drives

Postby gboudreau » Sun Jun 05, 2011 12:23 pm

Code: Select all

rpm -Uvh http://www.greyhole.net/releases/hda-greyhole-0.9.8-1.`uname -i`.rpm
- Guillaume Boudreau

t0bbe
Posts: 38
Joined: Mon Apr 26, 2010 5:09 am

Re: Problem balancing drives

Postby t0bbe » Tue Jun 07, 2011 10:37 am

Great!
The drives are perfectly balanced, no errors in the greyhole log!

Thanks a million, it's great to see the amazing help and support you get here on the forum!

Who is online

Users browsing this forum: No registered users and 58 guests