Minimum disk size for Diet-Pi installation

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.

Best regards.

9GB? Where do you see that?
This is on a fresh VM:

root@DietPi:~# du -hs /var/lib/
23M     /var/lib/

This on a long running RPi4:

root@RPi4:~# du -hs /var/lib/
167M    /var/lib/

I think 2 GB is enough, with 8GB you can install a desktop environment.

Probably caused by an application you are using. Definitely not standard.

— /var/lib ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9.4 GiB [#############################] /plexmediaserver
22.1 MiB [ ] /dpkg
10.0 MiB [ ] /apt
620.0 KiB [ ] /smartmontools
572.0 KiB [ ] /dietpi
472.0 KiB [ ] /systemd
184.0 KiB [ ] /ucf
44.0 KiB [ ] /php
32.0 KiB [ ] /nginx
28.0 KiB [ ] /pam
24.0 KiB [ ] /alsa
12.0 KiB [ ] /grub
12.0 KiB [ ] /dhcp
8.0 KiB [ ] /sudo
8.0 KiB [ ] /xkb
8.0 KiB [ ] /xfonts
8.0 KiB [ ] /dbus
4.0 KiB [ ] /wtmpdb
4.0 KiB [ ] /python
e 4.0 KiB [ ] /private
e 4.0 KiB [ ] /misc
e 4.0 KiB [ ] /initramfs-tools
4.0 KiB [ ] shells.state

its the plexmediaserver directory

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