-
-
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
Drive failure, now "Warning! All storage pool drives are over-capacity!" warning. #290
Comments
A
Follow progress in the log (or |
Okay, thanks. That seemed to have worked. For some reason it didn't make any progress overnight, but picked up sometime today and rebalanced the drives. It would appear that a few files are missing based upon the logs, but not many. One other problem, the smb access doesn't appear to be working now. I can see the top level folders, but when I click on them, I get an error on my Mac "The operations can't be completed because the original item for "Bluray" can't be found." |
Look in the Samba log (smb.log or similar), for errors regarding Samba shares. |
I looked in there, but all I saw was a copyright message. I can access other shares on the server, that aren't in the Greyhole drive pool. |
Look in other files in tbe Samba log folder. In the link you provided initially, I see many different errors in various .log files:
Look in recent .log files to see which of those errors, if any, still happen. |
I see some errors from my iMac.
|
Check the
|
I deleted the file and the corresponding symlink. I restarted the greyhole service, and I'm now getting the following:
No changes in the greyhole.log since 10:26 this morning (EST) I'm running Fedora Server 35. I did a systemctl stautus smb:
I also restarted the smb.service, then the greyhole service. Same result. |
You still have the same error: Now that you deleted that file before restarting Sama, what is being used here?
|
I think that is from earlier, not the current issue. It's currently 23:15 EST, so those logs were from 90 minutes ago.
|
How did you install Greyhole? Try to re-install the latest version, 0.15.12. I added support to Samba 4.15, so re-installing that should re-install the .so you need. |
I installed using your install script probably 5 years ago. What is the best way to reinstall? I tried your script, and it told me I already have the latest version installed. |
Ask your package manager (yum?) to clear the packages cache, and then update the greyhole package. |
okay, makes sense. I believe I had the greyhole repo already linked, so it should be updating automatically. When I try to perform an install, it is saying that 0.15.11-1 is the latest version, and it's already installed, like it did with your script.
|
Maybe |
same result, but longer.
|
Try again ( |
That did it, and fixed the browsing problem. Thanks for your help! |
Hey @guillaume, Everything "appears" to be working fine, but I checked the logs this afternoon, and I came across a warning.
As I said last night, I can access the shares and all, but I wanted to clear the warning, in case it was an issue. I'm not sure if this is something I should be worried about or not. I tried following the directions, and it's failing.
|
If you can connect to your shares, you can ignore this warning. |
thanks, I think I'll leave good enough alone for now. Once last question, I promise. I took the drive that was failing out of the drive pool with the -R flag, and of course told greyhole it was still available. I added a replacement drive, and greyhole automatically started moving copies to the new drive without issue. I had to rebalance the drive, since the replacement was larger. All in all, that went smoothly. I had to give the new drive a new mount point, and once the old drive was complete, I was unable to unmount it from /etc/fstab and the server physcially. The only issue i have now is my OCD. When I do any sort of status on the drives, either from -s or the GUI, the mount point is out of order (Drive 8, Drive6, Drive7, etc). Does it really matter, of course not. I know I can change mount point names for each of the drives in linux ,but how does greyhole handle it? Is it strictly going off the UUID or dev name? In other words, if I remount the drives and change drive8 to drive1 in /etc/fstab, is that going to confuse greyhole? |
Pretty sure that |
Hey @guillaume, you were right on the greyhole.conf. Unfortunately, I have a bigger problem, all stemming from that failed drive. I physically removed the bad drive, and it seems to have changed the UUID on the new drive. I had to fix the mount point, but now Greyhole is not seeing that new drive. It shows it as unmounted. Unfortunately, I tried doing the replaced flag again, because of the following warning in the logs
Now, greyhole is also failing to start. I'm seeing errors in the logs
I've tried rebooting a few times, but it's not fixing it. I also tried reinstalling, to no avail. Any idea what the heck is going on now? Edit: The other issue I keep having, is that I can't use the systmctl restart gryehole.service command, because I think smbd.service changed to smb.service in Fedora 35. Failed to restart greyhole.service: Unit smbd.service not found. |
What is your log level in From what I can see, the daemon is trying to acquire a lock to process the samba spool, but it either doesn't work, or times out after a while because another process is working on that for a very long time. But without DEBUG logs, it's hard to see which. Check your queue using |
It was set to info, I just changed it to debug It doesn't look like it's queued up for anything.
|
OK, so restart the daemon, and look at the log again. |
I did that, but no new log entries. As I said, now the service won't start, because of the smb/smbd issue. [tmorgenthaler@galactica etc]$ sudo systemctl restart greyhole.service I'm not sure if there is a way to point greyhole at the correct service. [tmorgenthaler@galactica etc]$ sudo systemctl status smb Feb 07 19:12:15 galactica.starfleet.org systemd[1]: Starting Samba SMB Daemon... |
I also tried running the bi.ly script. Not sure if it'll provide what you may need. [tmorgenthaler@galactica ~]$ curl -Ls https://bit.ly/gh-infos | sudo sh |
Greyhole only installs an init.d script, when installed using yum/dnf, and that script depends on You can manually change that script (I have no idea where it is on your system, since I'm pretty sure it was not installed by a Greyhole package...) and replace I also really don't see how the daemon could be running at any point, if you can't restart the daemon manually..? |
Figured out the problem. It looks like the UUID was pointing to the wrong partition, one that was referenced for aa different mount point. I must have copied the wrong value from fdisk.
It seems to be running normal again.
Thanks for looking into it.
… On Feb 7, 2022, at 8:08 PM, Guillaume Boudreau ***@***.***> wrote:
Greyhole only installs an init.d script, when installed using yum/dnf, and that script depends on smb, not smbd.
The systemd equivalent is only available on apt-based systems, and that requires smbd.
I don't understand how you got the systemd script on Fedora..?
You can manually change that script (I have no idea where it is on your system, since I'm pretty sure it was not installed by a Greyhole package...) and replace smbd with smb, in the dependencies list.
I also really don't see how the daemon could be running at any point, if you can't restart the daemon manually..?
Maybe you're using the wrong command..? Have you tried the init.d way to restart a service: service greyhole restart or /etc/init.d/greyhole restart
—
Reply to this email directly, view it on GitHub <#290 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADFI2LJ3HM3T7KMVEQDVTT3U2BUKTANCNFSM5NSTNYLQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.
|
Yesterday I had a drive failure. I had to rebuild the file system, but I ended up loosing all the files on the drive. While the drive was being repaired, it appears that Greyhole started reproducing copies of the missing files for the bad drive. Now they are all over capacity.
The one drive's file system is back in place, and I've run the --replaced command, but it's not moving files to the new drive.
[tmorgenthaler@galactica log]$ curl -Ls https://bit.ly/gh-infos | sudo sh
ls: cannot access '/mnt/samba/': No such file or directory
Failed to restart greyhole.service: Unit smbd.service not found.
Here's the URL you will need to give the to person who's helping you:
http://ix.io/3OFC
The text was updated successfully, but these errors were encountered: