SOLVED: Greyhole questions

wyzard
Posts: 92
Joined: Tue Feb 11, 2014 11:46 am

SOLVED: Greyhole questions

Postby wyzard » Tue Mar 11, 2014 9:22 am

Good afternoon.

I working on getting my server up. I have everything installed and my hard drives initialized. I'm working on getting Greyhole running but have a couple of questions (yes I have/am looking at the Wiki).

1. Your instructions say to use storage_pool_drive = /var/hda/files/drives/drive2/gh, min_free: 10gb but in the greyhole.conf file under storage pool is shows examples using /mnt/hdd2/gh, min_free: 10gb. Which do I use?

2. I'm assuming I can just remove the # for each drive to uncomment those fields?

3. When you use the command to enable greyhole permanently and start it, will this hold if the system is moved. (I am currently getting it set up and plan on moving it to a more permanent location).

Thanks.

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

Re: Greyhole questions

Postby bigfoot65 » Tue Mar 11, 2014 9:29 am

1. Your instructions say to use storage_pool_drive = /var/hda/files/drives/drive2/gh, min_free: 10gb but in the greyhole.conf file under storage pool is shows examples using /mnt/hdd2/gh, min_free: 10gb. Which do I use?
Follow the instructions in the wiki. Have to remember the greyhole.conf file is generic and not Amahi specific.
2. I'm assuming I can just remove the # for each drive to uncomment those fields?
Some lines will not match what Amahi needs. If you do want to use them, just verify the syntax is aligned with the wiki guidance.
3. When you use the command to enable greyhole permanently and start it, will this hold if the system is moved. (I am currently getting it set up and plan on moving it to a more permanent location).
Yes, that ensures it starts on boot.
ßîgƒσστ65
Applications Manager

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

wyzard
Posts: 92
Joined: Tue Feb 11, 2014 11:46 am

Re: Greyhole questions

Postby wyzard » Tue Mar 11, 2014 11:12 am

OK.

Got that working. Trying to copy files from my MacBook to the shares in Amahi. When I do, I get a message that the files can't be copies as there is not enough space. I have 2 - 2TB drives in the server. The greyhole log files says that no metadata files could be created and will way until metadata file can be created to work on this file.

Not sure what's going on by could use some help.

Thanks.

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

Re: Greyhole questions

Postby bigfoot65 » Tue Mar 11, 2014 2:17 pm

Did you enable copies in the /etc/greyhole.conf for your shares? I presume you added the drives to the storage pool and they are properly formatted and mounted.
ßîgƒσστ65
Applications Manager

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

wyzard
Posts: 92
Joined: Tue Feb 11, 2014 11:46 am

Re: Greyhole questions

Postby wyzard » Tue Mar 11, 2014 5:30 pm

I did enable copies (I have two drives so set each for 1) and they are formatted as ext4. How would I check to ensure that they are mounted (they do show up in my dashboard).

Thanks again.

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

Re: Greyhole questions

Postby bigfoot65 » Tue Mar 11, 2014 5:34 pm

There are many ways to check. One would be:

Code: Select all

df -h
I also recommend you set copies to max so that you will have copies on all Greyhole enabled drives.

You can also force greyhole to act on current files if it has not moved anything. As root user:

Code: Select all

greyhole -f
Watch /var/log/greyhole.log for activity.
ßîgƒσστ65
Applications Manager

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

wyzard
Posts: 92
Joined: Tue Feb 11, 2014 11:46 am

Re: Greyhole questions

Postby wyzard » Wed Mar 12, 2014 7:49 am

Good morning.

I have done all the necessary checks and am now positive that my drives are mounted. They have been added to the greyhole storage pool according too the instructions in the manual greyhole setup (is there a way to check and verify?). I am still unable to add files to the drives (keeps telling me there is not enough space). Again, I'm trying to copy this from my MacBook to the Music share. Just trying to do one folder for now so there is not a lot that I'm trying to copy.

I'm almost there.... just a little more help....

I just did a greyhole -s and it shows both drives as offline. Might explain my problem. How do I correct this? According to df -h they are mounted. Thanks for your patience. I'm a newbie to this and linux, so any details you can provide in "layman's" terms is appreciated.

Based on another post I did an ls /var/hda/files/drives/drive9 and same for drive11 (my two drives) and noticed there is no gh file. How do I add that?

Also, when I try to connect to the server from my laptop sometimes it connects and sometimes it doesn't. The laptop is wireless. Does that make a difference?

Thanks.

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

Re: Greyhole questions

Postby bigfoot65 » Wed Mar 12, 2014 2:16 pm

You can just create the gh folders on those drives. From command line, do:

Code: Select all

mkdir -p /var/hda/files/drives/drive9/gh mkdir -p /var/hda/files/drives/drive9/gh
Next as root user, do:

Code: Select all

systemctl restart amahi-greyhole.service
Once it restarts, then do:

Code: Select all

greyhole -s
They should appear as online. You can manually force greyhole to start moving files by doing:

Code: Select all

greyhole -f
If they are still listed as offline, recommend you check your drive entries in /etc/greyhole.conf.

Hope that helps.
ßîgƒσστ65
Applications Manager

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

wyzard
Posts: 92
Joined: Tue Feb 11, 2014 11:46 am

Re: Greyhole questions

Postby wyzard » Wed Mar 12, 2014 2:38 pm

Thanks for all the help.

That did it and I'm able to copy files over. Thanks for your patience and help.

You can mark this as solved.

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

Re: Greyhole questions

Postby bigfoot65 » Wed Mar 12, 2014 3:01 pm

Great. Glad I was able to assist.
ßî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 4 guests