Package Details: greyhole 0.10.15-1

Git Clone URL: (read-only, click to copy)
Package Base: greyhole
Description: Application that uses Samba to create a storage pool of all your available hard drives and allows you to create redundant copies of the files you store, in order to prevent data loss when part of your hardware fails.
Upstream URL:
Keywords: samba
Licenses: GPL3
Submitter: Sparticuz
Maintainer: None (cerberusec)
Last Packager: Sparticuz
Votes: 3
Popularity: 0.000002
First Submitted: 2016-03-29 17:16 (UTC)
Last Updated: 2018-04-20 16:21 (UTC)

Latest Comments

ajwtech commented on 2021-04-09 02:34 (UTC) (edited on 2021-04-09 02:35 (UTC) by ajwtech)

Version <= 0.15.6 will not work with samba 4.14+ There is a fix in 0.15.7 for this.

Also the INSTALL in the github has virtually the entire shell script that can be used for the pkgbuild if someone does want to maintain this package.

I have moved to mergerfs after too many samba errors.

cerberusec commented on 2020-06-12 22:26 (UTC) (edited on 2020-10-06 21:37 (UTC) by cerberusec)

Finally got this up and running. There are a few caveats to be aware of:

  1. Obviously, change the pkgbuild version to the latest. You'll need to comment out line 31 ( and the service unit needs to be edited to require smb.service, not smbd.service

  2. php needs the mysqli, intl, and pdo_mysql modules enabled/uncommented in php.ini

  3. For samba 4.13+, you'll need to compile vfs_greyhole.c using the script, which requires the base-devel and rpcsvc-proto packages. Also, be sure to enable the php modules first, as the build script needs to actually run greyhole to pull it's version.

  4. mysql/mariadb needs to be initialized along with importing the greyhole database. Read the USAGE file for details on this.

  5. read both the INSTALL and USAGE files thoroughly (

  6. Don't bother with the mount_shares_locally script. We can achieve the same results using fstab. For example:

    # mount the greyhole drives
    /dev/hdd0 /mnt/hdd0 ntfs-3g defaults 0 0
    /dev/hdd1 /mnt/hdd1 ntfs-3g defaults 0 0
    # note TestShare is the landing zone on /mnt/hdd0/shares/TestShare in this case, as defined in smb.conf
    # mount locally
    // /mnt/samba/TestShare cifs x-systemd.automount,x-systemd.requires=greyhole.service,credentials=/home/<user>/.smb_credentials,file_mode=0777,dir_mode=0777 0 0