Can somebody explain if this is expected, if I might have set something wrong or if this is just because OMV6/plugins are not yet release and still have a few teething problems and I need to wait until it's released?
This is installed on Debian 11 using the OMV6 install script.
I'm new to OMV and still trying to understand snapraid/mergerfs.
I used this guide as reference https://www.networkshinobi.com…ergerfs-on-openmediavault
I created four snapraid drives, three for data, one for parity.
/etc/snapraid.conf
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
autosave 0
#####################################################################
# OMV-Name: data1 Drive Label:
content /srv/dev-disk-by-uuid-726ddd4d-e77a-4dda-b316-e7aa77d4a3d5/snapraid.content
disk data1 /srv/dev-disk-by-uuid-726ddd4d-e77a-4dda-b316-e7aa77d4a3d5
#####################################################################
# OMV-Name: data2 Drive Label:
content /srv/dev-disk-by-uuid-3c12e0fb-b372-4ff0-883a-485190adc590/snapraid.content
disk data2 /srv/dev-disk-by-uuid-3c12e0fb-b372-4ff0-883a-485190adc590
#####################################################################
# OMV-Name: data3 Drive Label:
content /srv/dev-disk-by-uuid-17fef25b-b511-4939-b8dc-d0bfb7e3f1e3/snapraid.content
disk data3 /srv/dev-disk-by-uuid-17fef25b-b511-4939-b8dc-d0bfb7e3f1e3
#####################################################################
# OMV-Name: parity Drive Label:
parity /srv/dev-disk-by-uuid-a1b3ff63-5f14-49a5-9c2f-e64d565d97f2/snapraid.parity
Created the mergerfs pool, while creating this, there was no available shared folders to select, the samba shares had not been created yet.
Created the samba shares
/etc/samba/smb.conf
path = /srv/mergerfs/mergerfs-pool1/Movies/
path = /srv/mergerfs/mergerfs-pool1/Music/
path = /srv/mergerfs/mergerfs-pool1/Photos/
path = /srv/mergerfs/mergerfs-pool1/Videos/
Checking the filesystem, with tree, I see the four shares
mergerfs
└── mergerfs-pool1
├── Movies
├── Music
├── Photos
├── Videos
├── snapraid.content
└── snapraid.content.lock
dev-disk-by-uuid-17fef25b-b511-4939-b8dc-d0bfb7e3f1e3
└── snapraid.content
dev-disk-by-uuid-3c12e0fb-b372-4ff0-883a-485190adc590
├── Music
├── Photos
├── Videos
└── snapraid.content
dev-disk-by-uuid-726ddd4d-e77a-4dda-b316-e7aa77d4a3d5
├── Movies
├── snapraid.content
└── snapraid.content.lock
dev-disk-by-uuid-a1b3ff63-5f14-49a5-9c2f-e64d565d97f2
├── data2
└── snapraid.parity
I copied four movies to the samba Movies share.
What I saw was, all the movies are copied to /dev/sda1.
I expected that there should be a Movies folder on all disks and the movies should be copied to the drive with the most available space.
EG:
/dev/srv/dev-disk-by-uuid-726ddd4d-e77a-4dda-b316-e7aa77d4a3d5/mergerfs/mergerfs-pool1/Moveies/movie1.mp4, movie4.mp4
/dev/srv/dev-disk-by-uuid-3c12e0fb-b372-4ff0-883a-485190adc590/mergerfs/mergerfs-pool1/Moveies/movie2.mp4
/dev/srv/dev-disk-by-uuid-17fef25b-b511-4939-b8dc-d0bfb7e3f1e3/mergerfs/mergerfs-pool1/Moveies/movie3.mp4
What I actually saw was, all the movies are copied to /dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.7T 12G 3.7T 1% /srv/dev-disk-by-uuid-726ddd4d-e77a-4dda-b316-e7aa77d4a3d5
/dev/sdb1 3.7T 65M 3.7T 1% /srv/dev-disk-by-uuid-3c12e0fb-b372-4ff0-883a-485190adc590
/dev/sdc1 3.7T 4.5M 3.7T 1% /srv/dev-disk-by-uuid-17fef25b-b511-4939-b8dc-d0bfb7e3f1e3
/dev/sdd1 3.7T 12G 3.7T 1% /srv/dev-disk-by-uuid-a1b3ff63-5f14-49a5-9c2f-e64d565d97f2 <- parity drive
I check the mergerfs config and can see now that I'm able to select shared folders.
If I try to add these. it returns en error, one part which complains about the file length.
salt.exceptions.CommandExecutionError: Failed to restart srv-mergerfs-mergerfs\x2dpool1.mount: Unit srv-mergerfs-mergerfs\x2dpool1.mount failed to load properly: File name too long.
I'm not actually sure if I need to select these shared folders or if by not selecting them, that's why all the movies are copied to a single drive.
Thanks for your time reading this.