mergerfs:combine_multiple_hard_drives_into_a_single_mountpoint
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mergerfs:combine_multiple_hard_drives_into_a_single_mountpoint [2025/04/25 09:23] – created peter | mergerfs:combine_multiple_hard_drives_into_a_single_mountpoint [2025/04/25 13:48] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MergerFS - Combine multiple hard drives into a single mountpoint ====== | ====== MergerFS - Combine multiple hard drives into a single mountpoint ====== | ||
- | |||
- | [[MergerFS: | ||
- | |||
- | ---- | ||
===== Objective ===== | ===== Objective ===== | ||
Line 18: | Line 14: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE:** | + | **NOTE:** **/ |
- | + | ||
- | | + | |
</ | </ | ||
Line 26: | Line 20: | ||
---- | ---- | ||
- | ===== Install and Configure | + | ===== Download |
Get the latest release from the MergerFS [[https:// | Get the latest release from the MergerFS [[https:// | ||
Line 45: | Line 39: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ===== Install MergerFS ===== | ||
+ | |||
+ | <code bash> | ||
+ | dpkg -i mergerfs_2.40.2.debian-bookworm_amd64.deb | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Try to Manually Mount ===== | ||
+ | |||
+ | <code bash> | ||
+ | mergerfs -o defaults, | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | |||
+ | If after mounting, there are problems with the permissions, | ||
+ | Set user_allow_other in / | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Try to Access the Mount ===== | ||
+ | |||
+ | <code bash> | ||
+ | cd /srv | ||
+ | /srv$ ls -l | ||
+ | ls: cannot access ' | ||
+ | total 0 | ||
+ | d????????? ? ? ? ? ? virt | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * Set **user_allow_other** in / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Configure fstab ===== | ||
+ | |||
+ | Edit /etc/fstab. | ||
+ | |||
+ | <file bash / | ||
+ | ... | ||
+ | UUID=b8548ed6-a3e9-44b2-845c-648892491c2d | ||
+ | UUID=c09544b8-0dc3-4532-a1c7-31fd63c8c97e | ||
+ | UUID=347f34a3-b4b1-47c9-bec9-3ea0c4aa3715 | ||
+ | /mnt/media* /srv/media fuse.mergerfs defaults, | ||
+ | |||
+ | #OLD /mnt/media* /srv/media fuse.mergerfs defaults, | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This way by using /mnt/media* for the new mergerfs entry in fstab, it will pick up all the drives and any future ones added that uses the same naming scheme. | ||
+ | * The new unified single mount point will be in **/ | ||
+ | * To get the UUID values for the disks, use <code bash> | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **defaults**: | ||
+ | * The default depends on the kernel and the filesystem. | ||
+ | * **allow_other**: | ||
+ | * **nonempty**: | ||
+ | * **moveonenospc=true**: | ||
+ | * An attempt to move the file to that branch will occur (keeping all metadata possible) and if successful the original is unlinked and the write retried. (default: pfrd). | ||
+ | * **dropcacheonclose=true**: | ||
+ | * Recommended when cache.files=partial|full|auto-full|per-process to limit double caching. (default: false). | ||
+ | * **category.create=epmfs**: | ||
+ | * **OLD category.create=mspmfs**: | ||
+ | * **fsname=mergerfs**: | ||
+ | |||
+ | |||
+ | Obsolete option: | ||
+ | |||
+ | * **use_ino**: | ||
+ | * While not a default it is recommended it be enabled so that linked files share the same inode value. | ||
+ | * Effectively replaced with inodecalc. | ||
+ | * inodecalc=passthrough|path-hash|devino-hash|hybrid-hash: | ||
+ | |||
+ | |||
+ | |||
+ | See https:// | ||
+ | |||
+ | See https:// | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Created the new mount points ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo umount /mnt/media1 /mnt/media2 /mnt/media3 | ||
+ | mkdir /srv/media | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Reboot ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo reboot | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check ===== | ||
+ | |||
+ | Check if everything shows up: | ||
+ | |||
+ | <code bash> | ||
+ | ls /srv/media | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | movies | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
mergerfs/combine_multiple_hard_drives_into_a_single_mountpoint.1745573026.txt.gz · Last modified: 2025/04/25 09:23 by peter