Greyhole

  • Hello,


    I have just come across OMV and I have installed as a virtual machine (using virtualbox) to determine whether I can move my server over. I am having trouble getting greyhole working. I have installed it, added the database and enabled the service. I can see the greyhole database using mysql plugin. However, when I try and add a drive to the pool I get an error. I have included it below. Can anyone help?


    • Offizieller Beitrag

    Very strange... Maybe @gboudreau (author of greyhole) can help.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Looks like a configuration issue.
    I'd poke the guys who made the OMV plugin.


    Can't connect to database: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
    That error means Greyhole can't connect to your MySQL server using the credentials found in /etc/greyhole.conf
    I'd investigate this first, as the plugin should handle this for you, so resolving this might fix all your issues.


    The storage pool drive '/media/41148273-184b-4e09-868e-bc99a1fe646f/.greyhole' is not part of any drive_selection_algorithm definition, and will thus never be used to receive any files.
    That error means what is says(!) Not sure what caused this, but your configuration seems to be the problem again.


    The two other warnings are probably also related to bad/missing configuration options.

    • Offizieller Beitrag

    I'd poke the guys who made the OMV plugin.


    The guy who wrote it (part of it anyway) was poking you because he doesn't know :D


    I will have to install it in a VM to see if something is wrong.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I was pretty sure it was my error, I just wasn't sure what i'd done. Perhaps installation wasn't the correct forum to post this.


    Starting from a new install, i upgraded the packages and then installed the plugin in manager. From there i installed the greyhole plugin and tried to configure it. In the plugin I unputted mysql root pass password and added the database. As I said I can see the database is there using mysql plugin. Next i tried to add the drive by selecting the volume. Then on applying the change I get the error that I posted.


    Am I supposed to modify the values of the config options in the database build part? I tried changing the username and password to my login in the blind hope that it helped but the same error persists.


    I'll roll back to a fresh install this evening and start from scratch paying extra attention to what I do.

  • You need enable MySQL first and change your root password. You will use the root user and that password when you enable Greyhole. The "root" user is the admin user in MySQL.


    The you can add drives to the pool. And then add shares with the number of copies you want. 1 is not a copy, it is just the original file. You need to use 2 to have a copy of a file on more than one disk in the pool. Also, to have 2 copies you need at least 2 disks in the pool. For 3 you need 3 disks in the pool.

  • You need enable MySQL first and change your root password. You will use the root user and that password when you enable Greyhole.


    So the database settings in the greyhold app should be
    [Hostname] localhost
    [Databasename] greyhole
    [username] root
    [password] anything i like?
    [MySQL root] password i make in mysql plugin

  • [Hostname] localhost
    [Databasename] greyhole
    [username] greyhole (user used with the Greyhole database)
    [password] what you want for password (password for greyhole user used with the greyhole database)
    [MySQL root] the the password you changed for the root user (administrator) in the MySQL plugin.

  • The above advice seems to have done the trick and greyhole appears to be working. I think I'd done a few things out of order in the first instance.


    I have a few more questions about working with it now though.


    When I originally created the shared folders I had to select a volume. I picked one of my data drives is this my landing zone?
    Previously I used greyhole with Amahi. There was a script which mounted shares to /mnt/samba/[SHARES] and you were told to only modify files here not in the original location. Is there an equivalent script here? Are the shares mounted locally?

  • In OMV shares are mounted at:
    /media/UUID/sharename (where UUID is an identifier for a file system created on a given drive).


    Most things are automated for you buy the plugin.


    I'll try to come back and say more later.... Work...

  • I'm confused as to how I interact with files that are in the greyhole pool. If I accessed the files from /media/UUID/sharename don't i run the risk of greyhole moving the file at some point due to disc balancing? I thought the idea was to address a symlink location which could never move.


    I noticed that there was a similar script located at https://github.com/alfbr/openm…c/init.d/mountsmb-locally
    It looks like it mounts all the shares locally so that they are available at /pool/[shares]. I think this is what I was after but it hasnt been updates in a long while so, not knowing too much about this stuff, I'm a little wary to use it.


    I'm also unclear as to how on the OMV box I add files to the greyhole pool. Perhaps this is one for @gboudreau


    My ultimate goal is to get sabnzbd to download files. From there either sickbeard or couch potato will move my media into my greyhole pool so that it is available to all my devices on my home network via samba.

  • Zitat

    I noticed that there was a similar script located at https://github.com/alfbr/openm…c/init.d/mountsmb-locally
    It looks like it mounts all the shares locally so that they are available at /pool/[shares]. I think this is what I was after but it hasnt been updates in a long while so, not knowing too much about this stuff, I'm a little wary to use it.


    That looks like the right thing.
    This script should have been installed when you installed the OMV plugin. Just use the mounts you'll find in /pool/, and it should work fine.
    You'll need to restart mountsmb-locally when you add new shares, probably (unless the plugin does it for you).
    It should also run on boot, so your shares will be accessible to other daemons once boot-up completes.

  • There is a script in /etc/init.d


    I think I just need to edit it and create my smb credentials file. I'm not sure what user to mount them as. I assume if I did it as root I would cause no end of problems. Maybe make a greyhole user?

  • Greyhole will work with the shared folders you create in the shared folders section. After you create them give users permissions to then and share them with SAMBA. Then access the shares and add some data. Then you can add them to Greyhole.


    When you add data to your shared folder your data will be copied to a pool and a symlink will be left in the shared folder.


    You do not need to mess with any init script in /etc/init.d
    You do not need to make a greyhole user.


    The chown on your shared folders will be root:users
    The chmod will be dependent on what you choose in the permissions dropdown when you create the shared folder.


    You do not need to do anything to the smb.conf file. The samba share will take part of it. The Greyhole plugin will add reguisite parameters to the share in the smb.conf when you add it in the greyhole plugin.

  • I think I understand a bit better now then. The shared folders are the landing zone for greyhole and files placed there will be moved and the appropriate symlinks will be formed.


    My concern are these lines from the greyhole wiki (my emphasis):


    Zitat

    Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.


    @gboudreau can you comment on whether its okay to access shares via the landing zone?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!