-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Balance Seems to Ignore Available Drive #329
Comments
Hi. Restart the daemon, and look at the logs when it starts. There might be a warning there about this new drive. |
No warning. Here is a bigger log...
|
The only reason for balance to skip a drive that is listed first in the balance will try to free space on all drives, not just the ones that are missing available space. At the end of the balance process, the end result should be that all drives have the same available space, so that when a new files gets added, it could go onto any of those drives, since they all have the same available space. |
Any thoughts on the image above? It seems to show incorrect values. I added a second drive. This ran overnight (quite slowly) and files were not moved off the full drives to either of the new drives. I just got tens of thousands of the logs like above. Like I said, a normal FSCK is copying files to the destination, indicating it's not a drive/permissions error. You said it's likely because a copy already exists in the destination. But that's impossible as they are both new drives. Other than 1-2GiB dropped in from the FSCK, there are no other files. One drive has 100GiB spare, and the other 250GiB spare. Could it be a bug/result related to the "Min. free space" having been breached on a couple of the full drives? Another thought is that perhaps the very slow re-balance didn't finish properly. As you said, it trawls through ALL drives, even those not full. It was still running in the morning but seemed stopped about the time the daily FSCK was scheduled. |
Please detail your setup: list all drives, their size, and which one(s) you added. You mention adding a drive, then a second drive, but since you don't mention which one was added, and how large each drive is, it's very hard to figure out with the partial logs and screenshots, and thus it is very hard to try to help you understand what is happening. |
Last two were added recently.
|
The main thing I don't understand is that the logs are contradictory. First it selects a disk with room, then tells you it can't copy the file because there is no room.
|
By default, greyhole balances the available space on each drive. Meaning it tries to keep the quantity (in GB) of available space the same on all drives in your pool. That will cause problems if you have hard drives that are smaller than the target available space... Because those drive will be kept (mostly) empty (unless you force Greyhole to put files there, for example with From the images you just posted, you can see that most drives have just a little free space available, except for And this:
It is saying that the target drive that was selected, So to solve your problem, you need to add bigger drives to your pool. (Where did you find 292 and 218 GB drives..?) At least a 1 TB drive(s), but 4TB would be better. |
I see now I am interpreting the logs/visualisations slightly differently (incorrectly) in that I assumed each drive with available space would be available for filling, and would display remaining available capacity as such. My requirement of "I have an issue with certain extra copies needing a separate physical drive", being able to be addressed (to the limit of available space on the new drive), by adding new drives, doesn't seem to be catered for by the balance procedure. I'd have thought the main purpose of re-balance would be to make use of the additional space added, up until the soft limit for that drive, all the while attempting to keep other drives below their respective min free space threshold. Or at least have an option to balance based on percentages, rather than some arbitrary average universal amount that doesn't take the relative drive capacity in to account. I thought the whole point of Greyhole was to support building out a big pool full of random sized drives (at least that's what attracted me to it). As it stands, I have three problems. 1. Usable space unable to be reached by the balance procedure, 2. lower than configured numbers of copies of certain shares, and 3. certain drives at 100% capacity with no easy way to reduce those to the min available free space threshold. All good. I don't mean to sound ungrateful. Just thinking out loud. I guess I'll have to unravel this some other way. |
In a development - it seems the GH queue had been stuck for quite some time (weeks or months). Because I cleared it today and did a fsck (can only assume this is why the daily fsck didn't help), and it found multiples of files beyond my copies config (4 copies found when expected 3, for photos). I believe this is from when when I had a SATA cable problem and a drive was offline for a while. So after the fsck I have cleared enough space on each drive so they are all below the min threshold. |
I had 3 of my smaller drives fill up, and a 4th (much bigger) drive has plenty of space. This is obviously due to file copies settings. I added a new drive with the GUI and restarted the service.
greyhole -s
sees it.I ran a FSCK for good measure and it found a bunch of files without the correct number of copies and copied them to the new drive. Great.
So I wanted to do a balance. I kicked that off, and reviewing the live logs I immediately started to see my new drive (with free space) being rejected. Here is an example...
This is happening over and over.
The text was updated successfully, but these errors were encountered: