Hi, i’m exploring the possibility of installing Diet-Pi for PC in a spare 8GB SSD + some 8TB RAID5 array. I see that the /var/lib directory currently has like 9GB of thumbnails and metadata. Can i link that directory to the 8TB disk so i keep the diet-pi size as small as possible? Would this work in the long term?
I’m new to the community, so thank you for your support.
Ah okay, I thought you are talking about a fresh installation.
I would not recommend to “outsource” the whole /var/lib, better just the thumbnail directory, or the whole plex directory.
You could use mount --bind like, stop the service, copy the folder to the raid and then do something like
mount --bind /mnt/raid/plexmediaserver /var/lib/plexmediaserver
A. What do you use for /boot, SD card?
B. Do you have spare USB ports (possible move / “rootFS”) to an external USB which will give you plenty of room (how I do many of my SBC’s…boot from cheap small SD, run from a faster more durable USB drive such as a sandisk ultrafit)
C. Instead of Raid 5 for multiple disk array, have you looked into mergerfs and snapraid? (think a DIY version of UnRaid, using xfs or whatever individual drive formatting, merged into one mount point w/ redundancy)
D. Ill advised to run plex docker persistence directory on a SD card…the writes alone in the database and other housekeeping things it does is crazy…a large library docker can quickly get to over a hundred gigs easily…
It does…I do believe the docker compose yaml has options to set the persistence data directory for plex and jellyfin (I think it’s the “cache” directory
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
# Optional - specify the uid and gid you would like Jellyfin to use instead of root
user: uid:gid
ports:
- 8096:8096/tcp
- 7359:7359/udp
volumes:
- /path/to/config:/config
- /path/to/cache:/cache
- type: bind
source: /path/to/media
target: /media
- type: bind
source: /path/to/media2
target: /media2
read_only: true
# Optional - extra fonts to be used during transcoding with subtitle burn-in
- type: bind
source: /path/to/fonts
target: /usr/local/share/fonts/custom
read_only: true
restart: ‘unless-stopped’
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://example.com
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- ‘host.docker.internal:host-gateway’
but that is for the “docker” install of those apps…not sure about bare metal installs, it’s how I have been running all my arr suite apps, in dockers, which allows me to update/restart without needing to reboot the entire OS…so sorry if my examples are causing confusion…
I think i screw up my install, i moved /opt to a different location and mounted it via bind and now services dont start
Jan 23 16:52:24 DietPi systemd[1]: Started radarr.service - Radarr (DietPi).
Jan 23 16:52:25 DietPi Radarr[38321]: NLog Exception: System.UnauthorizedAccessException: Access to the path ‘/mnt/dietpi_userdata/radarr/Sentry/E052B02F117E6BB423BE301CDA607148F4B3F8F6’ is denied.
Jan 23 16:52:25 DietPi Radarr[38321]: —> System.IO.IOException: Permission denied
Jan 23 16:52:25 DietPi Radarr[38321]: — End of inner exception stack trace —
this is what i have before
total 116K
drwxrwxr-x 2 dietpi dietpi 4.0K Nov 2 02:45 Pictures
drwxrwxr-x 2 dietpi dietpi 4.0K Nov 2 02:56 Music
drwxrwxr-x 2 dietpi dietpi 4.0K Nov 4 18:58 downloads
drwxr-xr-x 2 root root 4.0K Jan 9 01:14 subtitulos
drwxrwxr-x 2 dietpi dietpi 4.0K Jan 22 17:10 Series
drwxr-xr-x 3 debian-deluged root 4.0K Jan 22 17:10 deluge
drwxr-xr-x 5 root root 4.0K Jan 22 17:10 Downloads
drwxrwxrwx 2 radarr dietpi 68K Jan 23 01:45 Video
drwxr-xr-x 9 bazarr root 4.0K Jan 23 16:17 bazarr
drwxr-xr-x 6 radarr dietpi 4.0K Jan 23 16:19 radarr
drwxr-xr-x 7 sonarr dietpi 4.0K Jan 23 16:19 sonarr
drwxr-xr-x 7 prowlarr dietpi 4.0K Jan 23 16:20 prowlarr
and i set the same permissions
this is my fstab line, and i got it mounted with systemctl daemon-reload and sudo mount -a
Looks like the new mount does not have the right permissions, it needs to have the same permissions as the original path.
Can you check
ls -la /mnt/raid5/dietpi_userdata/radarr
ls -la /mnt/raid5/dietpi_userdata/sonarr
ls -la /mnt/raid5/dietpi_userdata/bazarr
ls -la /mnt/raid5/dietpi_userdata/prowlarr
and especially
ls -la /mnt/dietpi_userdata/radarr/Sentry/E052B02F117E6BB423BE301CDA607148F4B3F8F6
You can also optimize your fstab entry to be more robust:
root@DietPi:/mnt/raid5/dietpi_userdata# ls -la /mnt/raid5/dietpi_userdata/radarr
ls -la /mnt/raid5/dietpi_userdata/sonarr
ls -la /mnt/raid5/dietpi_userdata/bazarr
ls -la /mnt/raid5/dietpi_userdata/prowlarr
total 8
drwxr-xr-x 2 radarr dietpi 4096 Jan 23 16:46 .
drwx------ 14 root dietpi 4096 Jan 23 16:47 ..
lrwxrwxrwx 1 radarr dietpi 15 Jan 23 16:46 logs → /var/log/radarr
lrwxrwxrwx 1 radarr dietpi 23 Jan 23 16:46 logs.db → /var/log/radarr/logs.db
lrwxrwxrwx 1 radarr dietpi 27 Jan 23 16:46 logs.db-shm → /var/log/radarr/logs.db-shm
lrwxrwxrwx 1 radarr dietpi 27 Jan 23 16:46 logs.db-wal → /var/log/radarr/logs.db-wal
total 8
drwxr-xr-x 2 sonarr dietpi 4096 Jan 23 16:44 .
drwx------ 14 root dietpi 4096 Jan 23 16:47 ..
lrwxrwxrwx 1 sonarr dietpi 15 Jan 23 16:44 logs → /var/log/sonarr
lrwxrwxrwx 1 sonarr dietpi 23 Jan 23 16:44 logs.db → /var/log/sonarr/logs.db
lrwxrwxrwx 1 sonarr dietpi 27 Jan 23 16:44 logs.db-shm → /var/log/sonarr/logs.db-shm
lrwxrwxrwx 1 sonarr dietpi 27 Jan 23 16:44 logs.db-wal → /var/log/sonarr/logs.db-wal
total 8
drwxr-xr-x 2 bazarr dietpi 4096 Jan 23 16:46 .
drwx------ 14 root dietpi 4096 Jan 23 16:47 ..
lrwxrwxrwx 1 bazarr dietpi 15 Jan 23 16:46 log → /var/log/bazarr
total 8
drwxr-xr-x 2 prowlarr dietpi 4096 Jan 23 16:47 .
drwx------ 14 root dietpi 4096 Jan 23 16:47 ..
lrwxrwxrwx 1 prowlarr dietpi 17 Jan 23 16:47 logs → /var/log/prowlarr
lrwxrwxrwx 1 prowlarr dietpi 25 Jan 23 16:47 logs.db → /var/log/prowlarr/logs.db
lrwxrwxrwx 1 prowlarr dietpi 29 Jan 23 16:47 logs.db-shm → /var/log/prowlarr/logs.db-shm
lrwxrwxrwx 1 prowlarr dietpi 29 Jan 23 16:47 logs.db-wal → /var/log/prowlarr/logs.db-wal
This other command maybe is because i re-installed the apps
root@DietPi:/mnt/raid5/dietpi_userdata# ls -la /mnt/dietpi_userdata/radarr/Sentry/E052B02F117E6BB423BE301CDA607148F4B3F8F6
ls: cannot access ‘/mnt/dietpi_userdata/radarr/Sentry/E052B02F117E6BB423BE301CDA607148F4B3F8F6’: No such file or directory
root@DietPi:/mnt/raid5/dietpi_userdata#
ohhh there is an option in our drive manager who would have than this automatically to move dietpi_userdata to an external drive. Or did you used drive manager?
Actually I don’t understand the link between /opt and the fstab. What exactly you are looking for? Manuell mounts, done vie CLI are not listed within fstab.
i mounted /opt and /mnt/dietpi_userdata on a raid5 drive to be able to use a 8GB SSD for the system. I did it manually into fstab, i didn’t know that drive manager offered that funcionality of migrating the directory. I’ll keep searching the fix. Thanks
i managed to fix everything, now importing everything back to radarr and sonarr, the only thing that does not work is deluge, it wont accept my password. Is there anyway to reset deluge password?
Edit: Neverming, it accepted “deluge“ as password. Now it is working.