Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
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]):
<blockquotepre>{{code|yum -y install hda-greyhole}}</blockquotepre>
* Set up a mysql database and user to access it:
<blockquotepre>{{code|hda-create-db-and-user greyhole}}</blockquotepre>
* Load the database schema:
<blockquotepre>{{code|mysql -u greyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql}}</blockquotepre>
Initialize the basic settings for Greyhole, configure /etc/greyhole.conf:
* Change <u>db_user</u> and <u>db_password</u> to <i>greyhole</i>.<br />
* 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:
<blockquotepre>{{text|storage_pool_directory <nowiki>=</nowiki> /var/hda/files/drives/drive2/gh, min_free: 10gbstorage_pool_directory <nowiki>=</nowiki> /var/hda/files/drives/drive3/gh, min_free: 10gb}}</blockquotepre>
<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.
** Pictures for 1 copy (which is the same as max)
** Movies for no copies
<blockquotepre>{{text|num_copies[Books] <nowiki>=</nowiki> 999num_copies[Pictures] <nowiki>=</nowiki> 2num_copies[Movies] <nowiki>=</nowiki> 1}}</blockquotepre>
<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>Extra Parameters</b> for each share you will be configuring to use Greyhole:
<blockquotepre>{{text|dfree command <nowiki>=</nowiki> /usr/bin/greyhole-dfreevfs objects <nowiki>=</nowiki> greyhole}}</blockquotepre>
* Finally, enable greyhole permanently and start the service:
<blockquotepre>{{code|systemctl enable greyhole.servicesystemctl start greyhole.service}}</blockquotepre>
* You can monitor activity by watching /var/log/greyhole.log file:
<blockquotepre>{{code|tail -f /var/log/greyhole.log}}</blockquotepre>
Return to [[Amahi_7_installation|Amahi 7 Installation]] page.
12,424

edits