MergerFS: Tutorial for Dietpi?

Im trying to pool my HDD Drives on my dietpi system. I googled and read, that mergerfs can do that, without losing data. Unfortunately i wasnt able to get it running. im missing clear instructions how to proceed. the mergerfs github is like a foreign language for me.

so i googled for a youtube tutorial and followed this:

but i didnt manage it to work (i started from the mergerfs installation, because i prepared all my drives with dietpi_drive_manager and not via command line)

                                             ●─ sda ──────────────────────────────────────────────●           β”‚            
           β”‚           /                                         : /dev/sda2 | ext4 | Capacity: 14.6G | Used: 5G (34%)            β”‚            
           β”‚           /boot/efi                                 : /dev/sda1 | vfat | Capacity: 63M | Used: 10.7M (17%)           β”‚            
           β”‚                                                     ●─ sdc ──────────────────────────────────────────────●           β”‚            
           β”‚           /mnt/d6bdb856-4d18-4aca-927e-a931744bd1fc : /dev/sdc1 | ext4 | Capacity: 1.8T | Used: 28K (0%)             β”‚            
           β”‚                                                     ●─ sdd ──────────────────────────────────────────────●           β”‚            
           β”‚           /mnt/0e3a3bb8-e8fe-4216-ba2c-178f467977c1 : /dev/sdd1 | ext4 | Capacity: 4.5T | Used: 4T (88%)             β”‚            
           β”‚                                                     ●─ sdb ──────────────────────────────────────────────●           β”‚            
           β”‚           /mnt/c5ef1ad4-f767-41c0-b301-5885583d5b25 : /dev/sdb1 | ext4 | Capacity: 219G | Used: 1.2G (1%)            β”‚            
           β”‚                                                     ●─ Global Options ───────────────────────────────────●           β”‚            
           β”‚           Idle Spindown                             : Set a global idle duration, before drives power down           β”‚            
           β”‚                                                     ●─ Add / Refresh Drives ─────────────────────────────●           β”‚            
           β”‚           Add network drive                         : Select to mount networked drives                               β”‚            
           β”‚           Refresh                                   : Scan for recently added/removed drives                         β”‚            

i want to combine:

into one drive /mnt/myfiles

i would be appreciative for a simple text or video tutorial, or any other helpful link

mergerfs -o cache.files=partial,dropcacheonclose=true,category.create=mfs /mnt/0e3a3bb8-e8fe-4216-ba2c-178f467977c1:/mnt/d6bdb856-4d18-4aca-927e-a931744bd1fc /mnt/myfiles
root@DietPi:~# mergerfs -o cache.files=partial,dropcacheonclose=true,category.create=mfs /mnt/0e3a3bb8-e8fe-4216-ba2c-178f467977c1:/mnt/d6bdb856-4d18-4aca-927e-a931744bd1fc /mnt/myfiles
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option

and in the drivepoint i do not see the mnt/myfiles hdd

Looks like there is already diverging mounted at /mnt/myfiles, you can’t unmount with dietpi-drive_manager

Sorry Why would I want to unmount?. I followed the tutorial in the YouTube video. But I do not see the myfiles drive in /mnt/myfiles

This is not a DietPi tool. You might open an issue on MergerFS GitHub to ask for support.

As alternative, you can have a look to our Raid blog post Using a RAID system with DietPi – part 1 – DietPi Blog
There we desribe on how to create a raid system using mdadm.

Thanks i will go to GitHub of mergerfs.

Best regards

Thanks for sharing the link. Wondering if there is any support/documentation on Diet Pi and ZFS ?

You mean for the raid file system? Or the RootFS?

Yes, for Raid. Would like to run LXC Containers as (I believe) LXC recommends ZFS. Thanks.

We don’t have any documentation or how-to. But it should be possible to use ZSF same way as on other Debian systems.

1 Like