SOLVED: Greyhole on Amahi 7.1

Sqwirtle
Posts: 10
Joined: Mon Feb 17, 2014 8:50 am

SOLVED: Greyhole on Amahi 7.1

Postby Sqwirtle » Wed Feb 19, 2014 8:57 pm

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!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole on Amahi 7.1

Postby bigfoot65 » Wed Feb 19, 2014 9:28 pm

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Sqwirtle
Posts: 10
Joined: Mon Feb 17, 2014 8:50 am

Re: Greyhole on Amahi 7.1

Postby Sqwirtle » Thu Feb 20, 2014 5:49 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole on Amahi 7.1

Postby bigfoot65 » Thu Feb 20, 2014 6:39 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Sqwirtle
Posts: 10
Joined: Mon Feb 17, 2014 8:50 am

Re: Greyhole on Amahi 7.1

Postby Sqwirtle » Thu Feb 20, 2014 8:15 pm

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!!!!!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole on Amahi 7.1

Postby bigfoot65 » Thu Feb 20, 2014 8:24 pm

No problem. Will mark this one as solved.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 24 guests