Dies ist eine alte Version des Dokuments!
Festplatten oder Partitionen unterschiedlicher Grössen lassen sich mit diesen Tools zu einem grossen Speicherbereich zusammenfassen.
mergerfs bildet einen Pool aus den Festplatten oder Partitionen. snapraid sorgt für Ausfallsicherheit einer Festplatte oder Partition ähnlich wie Raid5.
Diese Kombo benutzt z.B. Unraid kommerziell.
Download von der snapraid-Projektseite
wget https://github.com/amadvance/snapraid/releases/download/v14.10/snapraid_14.10-1_amd64.deb wget https://github.com/amadvance/snapraid-daemon/releases/download/v1.15/snapraid-daemon_1.15-1_amd64.deb dpkg -i snapraid_14.10-1_amd64.deb dpkg -i snapraid-daemon_1.15-1_amd64.deb mergersfs ist in den Standardpaketquellen. apt install mergerfs
Unter /mnt/pool steht damit der kombinierte Speicherplatz der Platten oder Partitionen /mnt/B-E zur Verfügung. In /mnt/F legt snapraid die Parity-Informationen ab.
joe@ubuntu:~$ df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
B:C:D:E 6,7G 1,9M 6,3G 1% /mnt/pool
/dev/sdb 2,0G 540K 1,8G 1% /mnt/B
/dev/sdc 2,0G 540K 1,8G 1% /mnt/C
/dev/sdd 974M 280K 906M 1% /mnt/D
/dev/sde 2,0G 536K 1,8G 1% /mnt/E
/dev/sdf 2,0G 536K 1,8G 1% /mnt/F
# snapraid
UUID=da92d3e2-e5c7-403d-ab5b-b5660520b0cb /mnt/B ext4 defaults 0 0
UUID=3344376f-27ce-407c-907d-a149bd974187 /mnt/C ext4 defaults 0 0
UUID=61317567-bdba-4e48-8d61-1859c32acf7f /mnt/D ext4 defaults 0 0
UUID=229ccb2d-b131-42de-8ea6-185382ff6a37 /mnt/E ext4 defaults 0 0
UUID=99923f7d-866a-4a98-a53c-47c868574814 /mnt/F ext4 defaults 0 0
# mergerfs
/mnt/[B-E] /mnt/pool fuse.mergerfs defaults,allow_other,category.create=mfs,moveonenospc=true,minfreespace=20M 0 0
# Defines the file to use as parity storage. It must be the largest disc or partition of the pool.
parity /mnt/F/snapraid.parity
# Defines the files to use as content list
content /var/snapraid.content
content /mnt/B/snapraid.content
content /mnt/C/snapraid.content
# Defines the data disks to use
data d1 /mnt/B/
data d2 /mnt/C/
data d3 /mnt/D/
data d4 /mnt/E/