WD Mycloud EX2 adding mariaDB

I am attempting to add an SQL server to my old EX2 NAS. I have so far got entware installed (/opt) so I can use opkg (added /opt/bin to $PATH, used .bashrc), and picked the partition/mount with enough space to download it, it was originally installing to root that didn’t have enough space. So I modified the /opt/etc/opkg.conf to add a line for a new destination, dest services /mnt/HD/HD_a2/services.

root@wDMyCloudEX2/opkg install -d services mariadb-server
Installing mariadb-server (10.9.0-3) to services…

Collected errors:
verify.pkg installable: Only have 10496kb available on filesystem /opt, pkg mariadb-server needs 30090

opkg_install_cmd: Cannot install package mariadb-server.

It finally says that it is installing to services instead of root, but it is still saying I don’t have enough space on /mnt/HD/HD_a2. The partition is 1.8 TB.

As you can see in the collected errors it’s still referring to /opt even though it’s using the new services dest from the config.