Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
{{AdvancedUsersMessageBox|backgroundcolor = #faa|image =Warning.png|heading =WARNING|message = Amahi application [https://www.amahi.org/apps/greyhole-ui Greyhole UI] provides this capability. Manual setup recommended for Advanced users '''ONLY'''!}}The following guidance is provided to assist users with setting up [[Greyhole]] in Amahi 7or greater. This has been tested with no issues, however the recommended method of install is via [https://www. Please note this is <u>ONLY<amahi.org/apps/u> a work around until greyhole-ui Greyhole is integrated into the Amahi 7 UI] plugin with dashboardintegration.
<b>NOTE:</b> There is no guarantee this will work for you or not cause problems with your Amahi 7 /8 install. Please proceed with caution as carelessness could cause data loss. Also you might want to check out the [[Greyhole]] wiki page for additional information, such as working with shares locally on the HDA.
As [[Open_Terminal_as_root|root user]], perform the following steps:
* Install the package (to get the latest version, follow [https://wiki.amahi.org/index.php/Greyhole_updating#Option_2_-_Manually_install_the_latest_RPM upgrade guidance]):
<pre>yum -y install amahi-greyhole</pre>
* Set up a mysql database and user to access it:
Initialize the basic settings for Greyhole, configure /etc/greyhole.conf:
* Make sure the settings for the database are correct: <u>''db_user</u> '' and <u>''db_password</u> '' should be <i>''greyhole</i>''* Add a line for each drive (go [[Adding_a_second_hard_drive_to_your_HDA|here]] for adding new hard drives) in the storage pool at the end of the file. The example below is for two drives:<pre>storage_pool_drive storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gbstorage_pool_drive storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb</pre> :'''NOTE''': If you have not initialized your newly added hard drives, refer to [[Adding_a_second_hard_drive_to_your_HDA|adding new hard drives]].
<!--<b>NOTE:</b> Although the /etc/greyhole.conf contents indicate <b>storage_pool_drive</b>, it should be <b>storage_pool_directory</b>. If you don't set it correctly, Greyhole will not work.
-->
* Now configure the number of copies per share. The example below sets the shares as follows:
** Books for : max copies (which is 1 2 for 2 drives)** Pictures for : 2 copies (i.e. 1 extra copy (which is the same as max)** Movies for : no extra copies(data loss will occur if one of your drive fails)<pre>num_copies[Books] = 999max
num_copies[Pictures] = 2
num_copies[Movies] = 1</pre>
<b>NOTE:</b> For a system with 2 Greyhole drives, 1 copy is the max. The first Greyhole drive holds the master copy and the second a copy. The share will contain a symbolic link to the master. * In the Dashboard, Shares tab add the following to <b>[[Share_Extra_Parameters|Extra Parameters</b> ]] for each share you will be configuring to use Greyhole:
<pre>dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole</pre>
<pre>tail -f /var/log/greyhole.log</pre>
  Return * If you intend to modify or work with your files locally on the HDA, refer to [[Amahi_7_installationMount_Shares_Locally|Amahi 7 InstallationMount Shares Locally]] pagefor guidance.
12,424

edits