Greyhole

Greyhole is an application that uses Samba to create a storage pool of all your available hard drives (whatever their size, however they are connected), and allows you to create redundant copies of the files you store, in order to prevent data loss when part of your hardware fails.

Installation

Install the greyholeAUR package.

Configuration

Note: This process is taken from the USAGE file that is supplied with Greyhole.

1. Setup Samba Edit /etc/samba/smb.conf and add the following 2 lines to the [global] section

unix extensions = no
wide links = yes

For each of your shares, add a 'dfree command' and '' lines, as seen below. Example share definition: Restart .

2. Setup and start MySQL as described in MariaDB.

3. Customize the greyhole configuration at

4. For each directory you defined as 'storage_pool_directories', execute the following command, to create a hidden file in the root directory of each partition: Those files will be used to differentiate an empty mount from a now-gone mount. i.e. Greyhole will output a warning if this file is not in the root directory where it is about to try to save a file, and it will not use that directory. This will prevent Greyhole from filling the / partition when a partition is unmounted! 5. The following is needed to work around problems with the CIFS client. This can be added to your /etc/rc.local or you can add cifs to the modules section of rc.conf and use modprobe.d to set OplockEnabled.

# modprobe cifs
# echo 0 > /proc/fs/cifs/OplockEnabled

6. Configure PHP Open /etc/php/php.ini in your favorite editor. Set date.timezone and uncomment .

7. Start .

gollark: A monopsony would be if only one person bought diamonds. Which will never happen.
gollark: Same profit either way.
gollark: I doubt it.
gollark: No, it is not.
gollark: That would be a monopoly.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.