No video

Rclone SMB Mount on Ubuntu/LXC - 💪The Power of Caching

  Рет қаралды 7,653

SmartHomeBeginner

SmartHomeBeginner

Күн бұрын

Пікірлер: 37
@AnandsLab
@AnandsLab 4 ай бұрын
15:55 If the Rclone mount fails, check Rclone log file (as in the SystemD script) for errors. I should have mentioned this in the video. Relevant Files: github.com/htpcBeginner/docker-traefik/blob/master/scripts/systemd/rclone-ds918.service.example github.com/htpcBeginner/docker-traefik/blob/master/scripts/hs/start-media-after-boot.sh.example
@FloTexaTenn
@FloTexaTenn 2 ай бұрын
Another excellent video, Anand. From a Auto Traefik + supporter :-), a video on the use of your script to delay spinning up of the media apps would be PHENOMENAL! I have a method now that works without scripts, but I would love to try your script.
@AnandsLab
@AnandsLab 2 ай бұрын
Hey thanks! Here you go: github.com/htpcBeginner/docker-traefik/blob/master/scripts/hs/start-media-after-boot.sh.example
@vitusyu9583
@vitusyu9583 2 ай бұрын
Great work, very interesting,
@MarkConstable
@MarkConstable 3 ай бұрын
Good video, thanks. What would be the difference between using rclone to mount a smb share compared to using smbnetfs? Ah... spoke to soon, I got to the end of the video and it's the cache which is makes the difference.
@AnandsLab
@AnandsLab 3 ай бұрын
Thanks. Glad it was informative.
@jongyrocka
@jongyrocka 3 ай бұрын
This is a great concept and I implemented it, but ran into one major issue. Polling-interval is not supported by this remote. So any changes / new files added on the host are not reflected on the rclone mount unless you restart the service. Are you experiencing the same?
@AnandsLab
@AnandsLab 3 ай бұрын
Thank you! When you say "new files added on the host", do you mean the machine running rclone? Or the SMB server? Please explain, I may have experienced this couple of times. Take a look at this to see if it addresses your problem: forum.rclone.org/t/can-you-refresh-a-mounted-remote-without-polling/22144 Let me know how it goes.
@jongyrocka
@jongyrocka 3 ай бұрын
@@AnandsLab New files added on the SMB server. File's added to the machine running rclone, will upload to the SMB server instantly, but files added directly to the SMB server, rclone will not pick this up without restarting. Setting the log level to info instead of errors, indicates that polling interval is not supported by this remote.
@Ripichip1
@Ripichip1 3 ай бұрын
@@jongyrocka Greetings, I hope you are well, I also realized this problem, the solution is to change the value of ¨--dir-cache-time¨, for example, 10s. Restart the server and it should resolve.
@la3135
@la3135 3 ай бұрын
Hi Anand, great instruction video! This was very useful and I like the idea of using a cache of media consumption and keep the "backend storage" on "low power mode". However, what are the options if you don't want to use SMB? Might a S3 backend using Minio f.i. better for faster access and transfer times from rclone to S3 Minio? And what about connecting rclone to NFS server? This last one seems not to be possible, since I don't see a storage backend for NFS in the rclone config. Please let me know what your thoughts are. Have a great day and looking forward to your other posts on this channel!!
@AnandsLab
@AnandsLab 3 ай бұрын
Rclone does not support NFS unfortunately. If SMB does not work there is SFTP support, which is an FTP over SSH connection. Unfortunately, I have no experience with S3 Minio.
@la3135
@la3135 3 ай бұрын
@@AnandsLab Thanks Anand, SFTP works fine and is less complex than Minio
@fanofc-adecoulomb8477
@fanofc-adecoulomb8477 2 ай бұрын
Great work. I was getting an error when I attempted to force-recreate jellyfin after successfully enabling SMB_NFS mount...I had to comment out the following two lines from your original yml - $DATADIR/data/media:/data/media1 - $DATADIR/data2/media:/data2/media2. The error was: Container jellyfin Starting 78.4s Error response from daemon: error while creating mount source path '/media/rclone/MYSMB/data/media': mkdir /media/rclone/MYSMB/data/media: input/output error Any ideas??
@mithubopensourcelab482
@mithubopensourcelab482 4 ай бұрын
Good job indeed. This is the easiest way to take backup. Can Rclone preserves versions ?
@AnandsLab
@AnandsLab 4 ай бұрын
Keep in mind that Rclone is not a backup system and does not do versioning.
@Jarery2000
@Jarery2000 3 ай бұрын
in the video of the systemd script, there is a line that is --user-agent home-server \ but in the scripts on your github its --user-agent cDoc \ . is this an important variabkle and what should it be ?
@AnandsLab
@AnandsLab 3 ай бұрын
It’s not important. You can pick any name
@Thiccalus
@Thiccalus 4 ай бұрын
Thanks for your videos as always Anand... I am going to try to use rclone on my recently setup LXC Ubuntu Host before moving on to step 2 of your renewed guide. I currently have 4 8tb HDDs in a single system (the same one that proxmox is installed on) in a ZFS pool running Raidz.. hoping rclone will enable my unprivileged host to communicate with the ZFS pool, which is where I will store all of media for my media server stack. Probably not going to spring for the auto-traefik script just because I am really doing this to learn, what is the best other way to help you out, a subscription on your website?
@AnandsLab
@AnandsLab 4 ай бұрын
Hey Thanks for the kind words. Setting up Rclone and moving to the next guide sounds like a plan. But remember, you will have to setup SMB share on proxmox host. If you are familiar with bind mounting, that might be an easier way to as well if all your media is on the same system as the proxmox host. Give me a week or so I will try to make video on bind mounting. No worries on the script. In fact, I recommend doing it the hard way to learn. But some of the membership levels do provide free access to the script: www.smarthomebeginner.com/membership-account/memberships-products-services/
@Thiccalus
@Thiccalus 4 ай бұрын
@@AnandsLab thanks anand, you are the best! I followed another guide that took me through setting up an smb share, and confirmed it was working by uploading a file to the smb share (also running in an LXC with Debian 11 and cockpit for Identity access management) and such. To do this we did bind mounting, so it would make sense that I could use bind mounting to make the ZFS pool visible to the Ubuntu LXC, I was a bit concerned I may run into permission issues with the unprivileged Ubuntu host trying to access that bind mounted drive, but maybe I am over thinking it. Anyhow, really appreciate all you do. Thanks again.
@reyastaroth
@reyastaroth 3 ай бұрын
Hello! I have the shared folders of the HP gen8 with NFS (multimedia) and also the downloads folder (nas synology DS218+), until now I have it in a VM with DietPi and mounted everything with NFS to the virtual machine. What advantages does rclone offer versus NFS? I understand that if it is an LXC container it is an rclone option. It could also be mounted via NFS on the LXC, right? Thanks for your videos!!!
@AnandsLab
@AnandsLab 3 ай бұрын
Hi! Rclone offers the advantage of caching. But Rclone does not support NFS mounts. Only SMB/CIFS. Caching can be beneficial but sometimes might require manual (or automated via cron/script) refresh of caching for new files to show up immediately. Only privileged LXC can mount NFS. I use (as in the video), unprivileged LXC, which cannot support NFS or SMB mounts. So Rclone is the best option or use Proxmox bind mounts.
@reyastaroth
@reyastaroth 3 ай бұрын
@@AnandsLab I understand that you have to empty the cache directory to fill it again using cron/script, do you have this step documented?
@AnandsLab
@AnandsLab 3 ай бұрын
Actually it is simpler than that. You do not need to empty the cache. You just need to refresh/force a scan of new files. Should only take seconds. I lost that command. I will update here when i find that command.
@reyastaroth
@reyastaroth 3 ай бұрын
​@@AnandsLab Okey!!! Thank you for your trouble
@ravndude
@ravndude 3 ай бұрын
Which script are you editing? under systemd, is it rclone-drive?
@AnandsLab
@AnandsLab 3 ай бұрын
Ping me on Discord, I will send you latest one. I made some improvements since publishing the video. I haven't pushed it to GitHub yet.
@mithubopensourcelab482
@mithubopensourcelab482 4 ай бұрын
Can you create a video tutorial on Minio Server ? I have installed minio server, but could not use it....
@AnandsLab
@AnandsLab 4 ай бұрын
I would love to at some point. But honestly it is going to take a while until i finish all my basic docker videos.
@jayparton5584
@jayparton5584 3 ай бұрын
I am getting this response after the chown command. I have double checked the typing and its the same as yours except my username of course. chown: cannot read directory 'cache/lost+found': Permission denied
@AnandsLab
@AnandsLab 3 ай бұрын
Why is there a lost+found inside your cache folder? Are you mounting a whole disk as your cache folder? If so, I would recommend against it. Create a folder called cache inside the disk. Alternatively, the lost+found is not so important. You can try with sudo.
@ravndude
@ravndude 3 ай бұрын
@@AnandsLab i missed the options of deselecting backup and selecting skip replication. My mistake. I successfully completed this rclone method. thank you!!!!!
@nadpul
@nadpul 4 ай бұрын
How about sshfs?
@AnandsLab
@AnandsLab 4 ай бұрын
Yes. Rclone supports SFTP protocol and there sshfs should work with FUSE as described in the video.
@nadpul
@nadpul 4 ай бұрын
@@AnandsLab the nice thing about sshfs is that you don’t need to deal with samba and add shares and users, it is same as ssh, you only need the credentials and you have access to the user’s directory. This is to clarify to your followers here. As for performance that might not be the best choice, but I am no expert.
Docker on Proxmox LXC 🚀 Zero Bloat and Pure Performance!
20:53
SmartHomeBeginner
Рет қаралды 42 М.
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 778 М.
Мы сделали гигантские сухарики!  #большаяеда
00:44
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,2 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 1,3 МЛН
Secure Your Self-Hosted Network with Wazuh
21:49
Techdox
Рет қаралды 99 М.
SMB Server In Docker with ZFS! Simple, Cheap, and Efficient!
23:00
Jim's Garage
Рет қаралды 46 М.
MikroTik CHR on Proxmox - How-To Guide
14:14
Admiral Platform (RemoteWinBox)
Рет қаралды 5 М.
Ultimate Docker Server in just 52 min: Using Docker Compose
52:10
SmartHomeBeginner
Рет қаралды 7 М.
SYNC Proxmox Backups Off-Site with RCLONE
38:58
MRP
Рет қаралды 6 М.
Setting up Simple Samba File Shares
24:24
Learn Linux TV
Рет қаралды 238 М.
NAS Shares On LXC - Unprivileged - Jellyfin Example
13:35
Jim's Garage
Рет қаралды 30 М.
Sync Google DRIVE in Linux Using Rclone
21:07
STÆMPUNK TV
Рет қаралды 38 М.
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 183 М.
Мы сделали гигантские сухарики!  #большаяеда
00:44