Yock Posted August 25 Share Posted August 25 So i've been messing around a little with Sabnzbd to improve download and unpacking speed. Been thinking if it's possible to do a /mnt/cache/media/download and /mnt/cache/media/download/incomplete/ to bypass fuse and still have it all work together with the arr's. To clarify a little media is a cached array share so normally a fuse share (/mnt/user/media/), i want to use /mnt/cache/media/ to temporary bypass that while downloading and still be able to use hardlinks to speed things up as much as possible. Sorry if it's all badly explained, my english isn't really the best there is. Quote Link to comment
strike Posted August 25 Share Posted August 25 (edited) Try it. I don't think it'll work since hardlinks only works within the same share. Technically /mnt/user/media/ and /mnt/cache/media/ is the same share, but not the same path even if it leads to the same place files.. But try it and check in the terminal if it's working. I assume you have read the trash guide? He explains the command there how to check if hardlinks are working. Edited August 25 by strike Quote Link to comment
Yock Posted August 25 Author Share Posted August 25 Tried it, seems to work as i hoped it would, hardlinks work and mover moving them to array and everything. So i guess my question now is if there's a reason not to do it this way. Quote Link to comment
Solution strike Posted August 25 Solution Share Posted August 25 Nice. I can't think of any downside to doing it that way, if it works. Quote Link to comment
Yock Posted August 25 Author Share Posted August 25 When searching google for stuff like this i keep finding warning about how it might end in missing files and such, those posts are rather old so wondering if that is still relevant or not. Quote Link to comment
strike Posted August 25 Share Posted August 25 Are you referring to the "user share copy bug"? If so I think that applies only to disk shares and user shares in the array and not to and from pools. I copy/move files to and from my cache drives to user shares on the array all the time and I never had any issues. But yeah, never transfer files from a disk share to a user share in the array and vice versa. That can lead to data loss. Quote Link to comment
Yock Posted August 25 Author Share Posted August 25 Okay, so i guess i had misunderstood what disk share was, i thought the /mnt/cache would be a disk share basically. Guess i will be moving along with using /mnt/cache for download and have the arr's move it to /mnt/user with hard link after then, runs a lot faster. Many thanks for the help. Quote Link to comment
strike Posted August 25 Share Posted August 25 7 minutes ago, Yock said: i thought the /mnt/cache would be a disk share basically. Well, I would say it's that too, but outside the array. You can write directly to the pool drives bypassing fuse if you want. So I would say that makes it a disk share. Quote Link to comment
Yock Posted August 25 Author Share Posted August 25 1 hour ago, strike said: Are you referring to the "user share copy bug"? If so I think that applies only to disk shares and user shares in the array and not to and from pools. I copy/move files to and from my cache drives to user shares on the array all the time and I never had any issues. But yeah, never transfer files from a disk share to a user share in the array and vice versa. That can lead to data loss. Just reread this and i want to be sure. The share i'm doing this on is part of the array, /mnt/user/media/ is on the array but also has a SSD cache. Download to /mnt/cache/media/download sonarr then moves to /mnt/user/media/tv/ and later mover moves to array. Sorry if i'm an idiot but want to be safe with my date. Quote Link to comment
strike Posted August 25 Share Posted August 25 I don't see any issue with this. The cache drive is not part of the main array and should not be be affected by the user share copy bug. Please correct me if if wrong anyone. And also as the docs says it has to be the same "path" to the file for the "bug" to happen. /mnt/user/media/tv/file and /mnt/cache/media/download/file is not the same path to the file. They're to different locations. What would happen if you copy a file from /mnt/cache/media/download/file to /mnt/user/media/download/file I do not know since I've never tried that so sombody else has to answer that. Quote Link to comment
Yock Posted August 25 Author Share Posted August 25 Feels sketchy having to rely on a hard link move to having the file being added into the fuse layer which is why i keep asking. Anyway, many thanks again for the help, i will keep looking at this for a bit. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.