My Community Dashboard

  • Ron Toorenburgh wrote:

    Hello All,
    I've nothing to add to this discussion but i would like to know how to install mhddfs on ClearOs 7.
    I've looked and tried yum but that will not succeed.

    Is there anyone who will provide me with the instruction to install it?

    By the way: i want to use it to mount different harddisk to the same mountpoint so that the different parts of the harddisk appears as that one directory.

    Thanks very much in advance.
    Rato65


    I'm still using clearos 6.7 32bit - as backup to server with salix 14.1 64bit, both use mergerfs.

    I started with original mhddfs, changed to mhddfs-nosegfault, now I use mergerfs on both servers as it's actually maintained/updated and has good documentation.

    However here are instructions for both

    # create hard drive mount locations
    sudo mkdir -p /mnt/data
    sudo mkdir -p /mnt/data/hdd-1
    sudo mkdir -p /mnt/data/hdd-2
    sudo mkdir -p /mnt/storage # access/modify data from this directory

    # Mergerfs - use git or tar from https://github.com/trapexit/mergerfs
    git clone https://github.com/trapexit/mergerfs.git
    cd mergerfs
    make
    make man # may need to install pandoc to create man page
    sudo make install

    # optional
    https://github.com/trapexit/mergerfs-tools

    # add mergerfs mount to /etc/fstab
    sudo vi /etc/fstab
    # add the following
    /mnt/data/* /mnt/storage fuse.mergerfs category.create=eplfs,defaults,allow_other,minfreespace=10G,fsname=mergerfsPool 0 0

    # Mhddfs - use git or tar from https://github.com/vdudouyt/mhddfs-nosegfault
    git clone https://github.com/vdudouyt/mhddfs-nosegfault.git
    cd mhddfs-nosegfault
    make
    sudo mv mhddfs /usr/local/bin

    # add the following to /etc/fstab
    mhddfs#/mnt/data/hdd-1,/mnt/data/hdd-2 /mnt/storage fuse defaults,allow_other,direct_io,big_writes,mlimit=20G,fsname=mhddfsPool 0 0

    If both are installed enable only one at a time via fstab.

    Hopefully these notes help you.