-
-
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
Can't add drive to drive selection group! #318
Comments
Hi, Please try this and report back: https://github.com/gboudreau/Greyhole/wiki/GetHelp#gather-system-information I have a suspicion that on daemon start, it should log something relevant about this problem in the greyhole (error) log. You can also just look there manually, if you want. Cheers. |
I will try that. Another things - is it normal to: select count(*) from settings ; return 250 rows? They all look the same to me. Btw, https://bit.ly/gh-infos is HTTP 403 Forbidden |
I have 16 rows in the settings table here. |
Not here. I just tried in a CLI, and it load correctly :
|
You can try the URL it redirects to: https://gist.githubusercontent.com/gboudreau/1caa58d93b1f99ca8e57/raw/ |
Btw if I do this: touch /data/USB5T/.greyhole_uses_this then greyhole can "see" the share for a little while, but then the file is deleted and USB5T is back to "offline" status. |
That's normal. This file is only used for drives that are remote, and thus have no UUID Greyhole can use to track if the drive is mounted or not. When Greyhole sees this file on a local mount, it removes it.
That would point out to Greyhole thinking this drive's UUID changed, since it first saw it. |
From the log you sent me, it seems to work correctly:
|
I ran balance just to see what happened. When I cancelled the balance before it was complete, the drive went back to "offline" again. For instance if I run balance now again, this is in the log:
|
From the MySQL data you sent me, it looks like your settings table is broken. The name column should be the primary key, and thus should never contain more than one rows with the same name, but I see multiple entries for name = Can you check the structure of your settings table, using the MySQL prompt? desc settings; |
|
Not sure how you ended up with this broken table... Pretty sure Greyhole could not cause this. Stop the greyhole daemon, then you can rename your old settings table, and re-create a new one with: RENAME TABLE settings TO settings_broken;
CREATE TABLE `settings` (
`name` VARCHAR(255) NOT NULL,
`value` TEXT NOT NULL,
PRIMARY KEY (`name`)
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
INSERT INTO `settings` (`name`, `value`) SELECT * FROM settings_broken WHERE name IN ('last_read_log_smbd_line', 'last_OOS_notification', 'db_version') ON DUPLICATE KEY UPDATE `value` = VALUES(`value`); Then re-start the daemon. See if it works better now. You can look il you |
Trying now. I don't know what the settings mean :-D The drive paths are in there, but they are also in the config file, so not sure if that's important. |
You don't need to copy the |
Wow, it really works now! Thanks soooo much. Amazing! One more question - when I copy more stuff and the older drive starts filling, will greyhole auto-balance to fit new files while keeping 2 copies? Or will I have to schedule a balance command? |
A balance is only needed if you want to move stuff currently on the old drives to the new one. If you're ok with the data on the old drives staying there, no need to balance. |
I have read up and down and can't understand how to add a third drive.
I had two disks and I want to add a third, since the two are running low on space.
greyhole -s shows
/data/WXX4T: 3666G - 3599G = 67G + 0G = 67G
/data/WYY4T: 3666G - 3599G = 67G + 0G = 68G
/data/USB5T: Offline
I have tried to tell greyhole -r /data/USB5T but nothing changes.
When I copy a new file to the share and look in the log, I see
Drives with available space: /data/WXX4T (57.4GB avail) - /data/WYY4T (57.3GB avail) [2867144]
but not the third, new drive!
In the config file I have:
drive_selection_groups = OK: /data/USB5T, /data/WXX4T, /data/WYY4T
drive_selection_algorithm = most_available_space
drive_selection_algorithm = forced (3xOK) most_available_space
The new drive is always offline.
The text was updated successfully, but these errors were encountered: