I’ve got a 128GB disk connected to my RB5009 for my pihole container to use. Although it is mostly empty the container claims to be 99% full and is reporting a disk shortage error (the db and log files are maxed out).
How can I increase the space available to the pihole container? It seems to be using only 1GB and it’s obvious why it isn’t using all of the disk. I wonder if there is a env variable to set?
I have the external disk labelled “disk1” in Slot usb1-part1. The container mounts are set to Src /disk1/etc and /disk1/etc-dnsmasq.d
I assume it’s using the external disk from this. I find the terminology a bit confusing. Also, if I look under Files, there seems to be no disk-level segregation of files.
The above is configuration. If you execute /disk/print you’ll see actual running values, one of them being slot. Also observe flags column, it should contain “M” (for Mounted). The “slot” property indicates mount point name. You can run the print command with “verbose” to see more details.
That helps. The disk is mounted but I’ve pointed the container to the internal storage.
Is it possible to copy the folders from the internal storage to the USB drive before I change the mount points, so I can have a smooth continuation of service? There’s not an obvious file management structure, and I don’t see an obvious way to access files in the container folders.
D.
PS. For that matter, I’ve also wondered how I can update the pihole image without losing settings.
For pihole, I wouldn’t bother too much about copying files.
Let it recreate its info.
Probably using FTP it would be possible if you’re really eager to try.
Update:
that’s the whole idea of having the data part separate from the image storage.
Simply delete the container, keep the data part on the external storage.
Recreate the container using the new image, point again to same data storage.
I tried just moving mounts, but that broke stuff. I think I probably need to recreate the entire pihole again as certain things, like the VETH, seem linked to the folder I started off with.