I am starting this thread in this channel because it relates to installing an application in a jail.
I am blocked from creating a running instance of Postgre DB in a Freenas Jail
Steps to create are
inside postgres_JAIL
Now freeenas is always seeking to mount to this iocage - have I screwed up Free nas - do I have to lose all plex stuff in order to get Postgre up and running

I am blocked from creating a running instance of Postgre DB in a Freenas Jail
Steps to create are
- Create Pool
- Create Data set -location of dataset /mnt/PostgrePool/PostgreDS
- Create User and Group for pgsql
- Create user 'pgsql' UID 5432, primary group pgsql, nologin, nonexistent, disable password login
- Set ACL for user and Group User and Group have full read write execute and other only has read write
- Set up share /mnt/PostgrePool/PostgreDS (share visible over network in Windows explorer)
- Set up new JAIL at 12.2 release as postgre_JAIL boot=ON
- vnet dhcp and bpf are "=on postgre_JAIL"
- allow_raw_sockets = 1 postgre_JAIL
inside postgres_JAIL
- pkg updated and upgraded
- pkg install sudo postgresql13-contrib-13.3 postgresql13-server-13.3_1
- sysrc postgresql_enable=YES
- sysrc postgresql_data=/mnt/postgres/data
- mkdir /mnt/postgres
- pw useradd -n pgsql -u 1004 -d /nonexistent -s /usr/sbin/nologin
- pw groupadd -n pgsql -g 1004
- pw groupmod pgsql -m pgsql
- sudo chown pgsql:pgsql /mnt/postgres
exiting postgres_JAIL and restarting - iocage fstab -a postgres_JAIL "/mnt/PostgrePool/PostgreDS /mnt/postgres nullfs rw 0 0" results in unsuccessful mount with message "Destination: /mnt/PlexPool/iocage/jails/postgre_JAIL/root/mnt/postgre does not exist or is not a directory".
Now freeenas is always seeking to mount to this iocage - have I screwed up Free nas - do I have to lose all plex stuff in order to get Postgre up and running
Last edited: