Page 1 of 1

SOLVED: Greyhole on Amahi 7.1

Posted: Wed Feb 19, 2014 8:57 pm
by Sqwirtle
I have read every forum post on this subject and read the wiki multiple times but still have a few questions.

I currently have only 2 hard drives in stalled and once I get this up and running I plan on adding more (large ones)
I installed the OS on the 30gb and I have an 80gb I want to start using.

I believe I have set up the greyhole manually correctly,
  • installed the package
    set up the mysql database
    changed db_user and db_password to greyhole
    added storage_pool_drive = /var/hda/files/drives/drive2/gh, min_free: 05gb
    added "dfree command = /usr/bin/greyhole-dfree" and "vfs objects = greyhole" to each Extra Parameter in every shared folder from dashboard
Now here is a screenshot of my drives and I'm not even quite sure what the first one is (mount point: /) but this is where all my data is currently going. I thought I only had sdb1 in the greyhole and there is the only drive I want to store data (and more drives when I add them)

Image

I have seen others with a /home folder which I don't have and the partitions are much cleaner (i.e. /dev/mapper/defora-home and /dev/mapper/defora-root) while mine is /dev/mapper/fedora_new--host--3-root.

Image

I can provide any other information or screenshots that may help.

Basically is greyhole working properly and why is the data being written to the root partition and not the 2nd drive (in the greyhole)?

Thanks so much!

Re: Greyhole on Amahi 7.1

Posted: Wed Feb 19, 2014 9:28 pm
by bigfoot65
Did you do the step to add number of copies per share in /etc/greyhole.conf file?
Now configure the number of copies per share. The example below sets the shares as follows:
Books for max copies (which is 1 for 2 drives)
Pictures for 1 copy (which is the same as max)
Movies for no copies

num_copies[Books] = 999
num_copies[Pictures] = 2
num_copies[Movies] = 1
Only one drive is being used for Greyhole. I presume you also added the correct info to /etc/fstab.

Once you have everything configured, you can manually force Greyhole to copy files by doing this command as root or privileged user:

Code: Select all

greyhole -f
You can then watch the log file to see if it's working:

Code: Select all

tail -f /var/log/greyhole.log

Re: Greyhole on Amahi 7.1

Posted: Thu Feb 20, 2014 5:49 pm
by Sqwirtle
Wow... So apparently I completely missed the comment out of the copies section. I took away the #'s and saved.

I also did add the drive to the fstab

When I spooled up greyhole to copy the files with: "greyhole -f" and watched the log file I saw this:

Image

Am I supposed to do something to /etc/samba/smb.conf?

Also, how do you exit the log file?

Re: Greyhole on Amahi 7.1

Posted: Thu Feb 20, 2014 6:39 pm
by bigfoot65
You have to make sure the share names in greyhole.conf match your shares. There is no share called Backups unless you created it. Those commented out lines are examples and will not match your shares exactly.

The wiki guidance should have indicated such. Don't mess with smb.conf file.

Re: Greyhole on Amahi 7.1

Posted: Thu Feb 20, 2014 8:15 pm
by Sqwirtle
I commented out the ones I didn't need and I was going crazy trying to figure out why it still wasn't working until I realized that the example was Photos and the Shared folder in Pictures....

All seems to be working now. Thanks!!!!!

Re: Greyhole on Amahi 7.1

Posted: Thu Feb 20, 2014 8:24 pm
by bigfoot65
No problem. Will mark this one as solved.