Current method of mounting docker volumes does not allow for hardlinking #30
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
The current example
docker-compose
has the containers for Sonarr, Radarr, etc. mounting the folders for media into different volumes than the downloads.When a download finishes and *Arr imports it, it will attempt to hardlink and fail (because you can't hardlink across volumes). It then falls back to doing a copy. This is really slow (relatively speaking), puts additional wear on the drive, and doubles the storage space needed.
The *arrs should mount the entire
MEDIA_DIRECTORY
as a single volume and the relevant torrent program should mount to the same container path.I've manually edited my docker-compose to the following setup but I imagine any
yams update
will wipe this out.And so on.
The root paths in the *arrs would have to be updated as well as the save path in qBittorrent or whatever.
Slightly adapted from https://trash-guides.info/Hardlinks/How-to-setup-for/Docker/
Hit this exact same thing yesterday and made precisely the same changes you have. Went from taking nearly an hour to copy a 40GB file on my setup from /Downloads to /Movies (despite being on the same physical drive) to being instant.
Would be good to see this as the default setup
Hey!
You are absolutely 100% right. This is a change I wanted to do for a while, but there are 2 things that bother me now:
yams update
(easily fixable by changing the docker-compose filename)We have discussed some of these changes in the Discord server, so if you want to join the conversation that would be greatly appreciated!
This is definitely top priority right now 👍
assigned to @rogs
For the 1. we can make a backup of the docker-compose file (
cp docker-compose.yaml docker-compose.yaml.bak
) before updatingdocker-compose.example.yaml
This is a good idea for new users, but when old users upgrade they are going to get overwritten 😕
Fixed on V3. Will close this issue when v3 is out.
mentioned in merge request !22
mentioned in commit
76bbdc9537