Add hardlinking support to yams. #67
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tested by UncarvedMatt in the discord, unverified by myself so please test before adding Rodger!
This should work! I'll test it this weekend before merging. Thanks!
I have some suggestions:
usenet/
andtorrents/
. That way users can use either or both w/o having folder conflicts or putting both in the same place./data/library/{TV|Movies}
./outside_folder_data:/data
/outside_folder_data/torrents:/data/torrents
/outside_folder_data/usenet:/data/usenet
./outside_folder_data/library:/data/library
.UMASK=022
just in case. Double check each image uses that, I've seen some that useUMASK_SET=
.I also wouldn't even show bad paths in #comments, they'll just be confusing.
Any movement on this?
Sadly, no update yet 😞 I need to test this and update the documentation before we can merge it. You can also use it manually if you run YAMS from sGfU/yams:master
Just wondering if theirs been any updates on this. Been trying to follow, Trash Guides tutorials but am having issues left right, and center.
I'm rewriting the documentation to reflect the new changes. You can safely use this PR as base, but you'll need to configure everything manually.
Assuming I'm reading this correctly, if someone installed YAMS on Machine A, but all their media lived in an external drive, NAS, etc; would this still work?
TRaSH guides explicitly call out that hardlinks can't happen across "systems, partitions, volumes, and mounts" (https://trash-guides.info/Hardlinks/Hardlinks-and-Instant-Moves/#hardlinks-limitations)
There's quite a few people with this "split setup". Not sure how we could accommodate both, but one option could be modifying the install script to construct the docker-compose.yaml based on whether or not the user selected hardlinking
In that case, I think the default should be non-hardlinked (since it's the simplest and works for most people), but then give the option to select a "hardlinked" install
Thoughts?
It does work; I have it running perfectly on my server that's connected to a NAS. You just need to ensure that everything is mounted on the same volume.
TRaSH mentions that the issue arises across separate file systems, partitions, volumes, or mounts—not if it's the same file system, partition, volume, or mount 😉
I might just be really dumb, but I think I'm missing something
Your setup has your YAMS stack and your media on the same NAS? If so, I can see how this would work.
But if I have YAMS installed on a different disk, and my media is stored on an external harddrive, wouldn't that be two different file systems/mounts? Meaning there would be issues?
Let's assume:
/mnt/media
.If you set your
MEDIA_DIRECTORY
as/mnt/media
, hardlinking should work without any issues. The problem (what TRaSH describes) is when you mount multiple volumes in docker and try hardlinking between them. You can see the changes I've made for V3 here: https://gitlab.com/rogs/yams/-/blob/v3/docker-compose.example.yaml?ref_type=heads#L13. Basically, now all media gets mounted in a single volume, allowing hardlinking by default.OHH. I think it's clicked now. That makes a lot more sense. Thanks for the explanation!
Closed in favor of !22
Pull request closed