BaculaPi is a build-it-yourself project, as all good Pi things should be, and that means starting with deciding what you really need, then deciding what to actually get before finally assembling it all.

Bacula Pi Design

My original Bacula Pi project used a Raspberry Pi 2B with an Anker powered USB hub to connect the portable USB hard drives I used as backup media and an external USB SSD for running Ubuntu, PostgreSQL and of course Bacula. The hub also had three power-only ports which provided a power supply for the Raspberry Pi itself. This means I only needed a single main plug for the whole thing.

Compared to my original Pi 2B, the Pi 5 has a long list of improvements. A much faster CPU, gigabit ethernet and USB-3 are all useful for the Bacula Pi project. It also comes with Bluetooth and Wifi which I don't need and will be disabling and of course all the other interfaces on the GPIO header that are also not needed for this project.

All this comes with some downsides though. The Raspberry Pi 5 is a lot more demanding of it's power supply and needs 5.1V at 5A for full capability although it can apparently use a 3A supply if you can accept some restrictions on connected devices. At the time of building there were no USB hubs that could also act as a 5V/3A USB-PD power supply let alone the 5V/5A the Pi 5 prefers, which would mean needing two sockets which on a 4 socket extension also running a printer, ethernet switch and phone base leaves me with a bit of a problem.

While I could use the official 27W PSU to enable the full capability of the USB ports and the USB SSD it's a bit messy from a cable management perspective and I've already discovered the current USB to SATA adaptor has issues with USB-3. One of the other upgrades on the Pi 5 is a single lane PCIe connector and this opens up the use of NVMe SSDs as both main storage and boot media.

The other downside is also linked to the increased power demand: it runs a lot hotter than the 2B and really needs some consideration given to cooling. Even on my 2B I fitted some additional passive heat sinks and one of the hard lessons from the early days of the Pi 4 is that cooling is not really optional any longer. There at lots of different options for heat sinks, both passive - basically a big block of finned metal - and active, from simple fans up to chunky affairs with heat pipes and big radiators. I opted for Raspberry Pi's own Active Cooler partly based on reports on how quiet it is and also on the more pragmatic approach of it was in stock when the alternative I was considering wasn't.

Having decided to use a NVMe SSD on the PCIe interface, I was not happy with the idea of using a HAT adaptor mounted above the cooling fan which in some designs didn't appear to leave much space for airflow. There are a couple of adaptors that can be mounted underneath the Pi 5 although this limits the options for commercial cases. I've chosen the Pimoroni NVMe Base as they will supply a compatible M2 SSD at a reasonable price, the base itself is powered entirely over the PCIe port and doesn't need supplimental power and it's also bootable too. Providing you install and configure the OS correctly.

In terms of storage the current BaculaPi uses a 64 GB SATA SSD connected to an USB SATA adaptor. 21GB is used by Postgres for the Bacula catalog, and 8GB for Ubuntu and 2GB reserved for swap which is hardly used. Pimoroni offered a choice of 256 GB or 512 GB SSDs with not a lot between them on price.

While I could see the catalog database growing over the next few years that's still not going to make much of a dent in a 256 GB SSD, but on the other hand the Pi 5 could be put to other secondary uses which would need local storage. Another consideration for SSDs is unlike sectors on disks of spinning rust the data storage cells are lifed and having a large underused SSD is going to last longer due to the wear leveling having more unused space to play with. So I went for the bigger option just because I could.

Component List

The Raspberry Pi is usually supplied as just the Pi itself and you will need some extra parts to make a usable system which you can buy individually or sometimes as a kit.

Raspberry Pi 5 with NVMe base, SSD and PSU

  • Raspberry Pi 5 - 4 GB
  • Raspberry Pi 27W USB-C power supply
  • Raspberry Pi Active Cooler
  • Pimoroni NVMe Base
  • 512 GB Adata Legend 700 M2 SSD, supplied with the NVMe Base

For the initial installation some extra parts are also needed.

  • 8GB microSD for OS installation
  • mini-HDMI converter for installation so you can see what's going on
  • Borrowed keyboard and mouse for installation too
  • 1/4 of my main monitor screen
  • Cross-head jewellers screwdriver and maybe some small pliers or pair of tweezers
  • Another PC to download the OS image and write it to a microSD card

I should also get around to either buying or making a case for it at some point too.

Construction

The Pi itself is supplied ready assembled and all you need is to plug in a keyboard, monitor and power it up and it'll spring to life. Of course without a supported OS on microSD or USB it's not going to do very much but it's a good first check.

The Pimoroni NVMe Base is supplied with all the required screws and standoffs you need plus a few spares just in case. Their official install guide can be found at Getting Started with NVMe Base for Raspberry Pi 5 and the first part of assembly is really simple. Attach the standoffs using the short fat screws as shown and the medium thin screw in the appropriate hole where the SSD goes. A jewellers screwdriver is useful for this. Secure the thin screw with one of the small nuts - this all just needs to be finger tight.

Inserting the SSD is also quite easy. You need be "firm but gentle" as the board is quite thin. The SSD will only fit into the connector one way with all the ICs on the top. If you lay the base flat on a table and hold the SSD at an angle of about 50 degrees above and push it in until the contacts are entirely inside the connector and then gently lay it flat you should find the screw now line up nicely with the little notch at the other end of the board. Add the second nut to secure it.

SSD located in the NVMe base

A separate stick-on heatsink was supplied which I attached once the SSD was in place. If you go for the same package of NVMe Base and SSD you might have a different brand which will look different. Pimoroni and the others selling similar boards all say that some SSDs work better than others (or not at all!) and while I probably wouldn't have chosen an Adata card by itself it is covered by warranty so I'll take a chance. It's not like I won't have backups is it?

The NVMe Base is connected to the Pi via a small curved ribbon cable and fitting that probably the hardest part of the whole build. These things are notoriously fiddly and at least this one appears relatively strong. Each end is clearly marked as to where it needs to connect to. On the NVMe base you need to carefully lift the flap on the connector to open it which will reveal two rows of contacts and then gently ease the the end marked Addon in between the the two rows face down. The ribbon cable need to be fully insert so that you cannot see any exposed contact pads on the back of the cable and then close the flap on the connector to lock it in place.

Attach PCIe cable to NVMe base

The other end is labelled RPi 5 and no prizes for guessing where this goes. The Pi has a different style of connector and you need to gently raise the brown clip a few millimeters. As Pimoroni advise it's easier to hold the NVMe base above the Pi allowing the ribbon cable to hand down over the Pi then gently insert the cable so the contact go in as far as possible with about half a millimeter still visible. Then gently push the retaining clip back down again without disturbing the cable.

Attach PCIe cable to Pi

One the Pi end of the cable is secure lay the NVMe base flat on the table - it should now be upside down - and then turn them both over at the same time taking care not to put any twist on the ribbon cable. Then finally lift the Pi over and place it on top of the NVMe base with the ribbon cable acting as a delicate hinge. Secure the Pi to the standoffs with four more of the short fat screws and you're done.

The last step is to add the cooler. Remove the blanking plug covering the fan connector between the USB-2 sockets and the twin rows of GPIO pins. The cooler has two sprung plastic pegs which connect into two holes in the Pi. The cooler is mostly held in place by sticky thermal pads so once you have peeled off the backing paper be very careful to line the pegs up before allowing it to make contact with the Pi. It seems to be good adhesive and I've seen concerns raised about potential for damage if you try to adjust or remove it once it's made contact. Push down on the plastic legs so they lock firmly into position on the Pi. Finally connect the fan cable which should only fit one way, yellow on the outside and red on the inside for mine.

And that's the assembly complete apart from the case which I'll be building later. And sticking the little plastic feet on the bottom until I get around to building the case.

Raspberry Pi 5 with cooler and NVMe base fully assembled

My only concern is the PCIe connector cable looks a bit exposed and at risk of damage especially when inserting or removing a microSD card as it slightly obscures the card slot. Hopefully you'll only need to do that once for the OS install, and I'll cover that in the next article.

Power Usage

Once installation was complete and I could remove the HDMI connector I took some power measurements for reference. I will update this as the project progresses and see how it changes while Bacula is running.

All measurements are taken with a Yojock-branded USB digital tester of assumed accuracy. Voltage is reported as varying between 5.098 and 5.107 and is quoted as being 5.1V on the PSU itself. Measurements are updated on the display approx every second and high and low were taken from observation over a minute or so.

State Min current, A Max current, A Min power, W Max power, W
Initial power up 0 1.6 0 8.97
Running Ubuntu from NVME idle 0.821 0.845 4.197 4.524
Ubuntu, HDMI audio disabled, idle 0.763 0.771 3.902 3.944
Ubuntu, Wifi & bluetooth also disabled, idle 0.742 0.746 3.797 3.818
Shut down 0.318 0.322 1.616 1.66

 

I find it interesting that disabling HDMI audio in the config.txt reduced power consumption, even though HDMI is disconnected for all these measurements since the USB tester blocks the HDMI port. I'm not sure I'd want to completely disable HDMI in case I ever need fix a failure that leaves SSH non-functional.

Conclusion

The active cooler is certainly quiet. Apart from the first few seconds on boot when it accelerates to full speed I cannot tell when it's running as it's so quiet. I added a small spot of white paint on the edge of the fan hub so I can tell at a glance if it's running. The heat sink certainly gets warm to the touch even when idling with just Ubuntu installed.

Make sure the plug is fully pushed in on the mini-HDMI interface too otherwise you get some very pretty but unreadable screen output.

Assembling the NVMe base is easy and although inserting the ribbon cable for the PCIe connector is fiddly, especially on the NVMe base itself, following Pimoroni's guide works well. You will need to take a little care inserting and removing the microSD card as it will snag the cable but hopefully you won't have to do that too often once you've got Ubuntu installed and running.

And my first attempt at that did not go well as I hoped and I'll cover that in the next article.