Changes

From Amahi Wiki
Jump to: navigation, search
267 bytes added ,  22:35, 2 November 2013
== Greyhole ==
You can install Currently there is no Dashboard add-on to setup and configure Greyhole for Amahi 7. This must be done manually using the Greyhole stack withfollowing guidance as root user:
* Install the package (to get the latest version, follow guidance [https://wiki.amahi.org/index.php/Greyhole_updating#Option_2_-_Manually_install_the_latest_RPM here]):
yum -y install hda-greyhole
 
However, you have to configure it by hand:
* Set up a mysql database and user to access it:
hda-create-db-and-user greyhole
 * Load the database schema:
mysql -u greyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql
 * Initialize the basic settings for Greyhole: , configure /etc/greyhole.conf appropriately (that and add a line for each drive in the storage pool at the end of the file. The example below is up to your configuration) for two drives: storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gb storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb
<b>NOTE:</b> Ensure <u>db_user</u> and <u>db_password</u> are set to <i>greyhole</i>.
* Edit /etc/greyhole.conf as root user. Add a line for each drive in the storage pool at the end of the file. The example below is for two drives: storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gb storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb
* 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)
<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:
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
 
* Finally, enable greyhole permanently and start the service:
systemctl enable greyhole.service
systemctl start greyhole.service
 
* You can monitor activity by watching /var/log/greyhole.log file:
tail -f /var/log/greyhole.log
12,424

edits