Hello every one;
I have a problem of mounting 3 hierarchical datasets (data17, base, pg_wal) with nested nullfs mount-points as explained in this Post thread
And to avoid a resource deadlock for mount_nullfs in my situation, I tried to stay away from hierarchical datasets with a layout like this :
After creating the necessary directories (/var/db/postgres/data17/data17_base, /var/db/postgres/data17/data17_pg_wal) in the jail,
and adding the mount points in PostgreSQL jail config file /etc/jail.conf.d/pgdb01.conf :
When I try to start the jail, I get an error preventing starting the jail - cannot start jail pgdb01 - mount_nullfs - mount -t nullfs [No such file or directory]
Now disabling the mount points in PostgreSQL jail config file /etc/jail.conf.d/pgdb01.conf , and starting the jail pgdb01 with no error .
You will notice the existing of the directories inside the jail pgdb01
I have a problem of mounting 3 hierarchical datasets (data17, base, pg_wal) with nested nullfs mount-points as explained in this Post thread
And to avoid a resource deadlock for mount_nullfs in my situation, I tried to stay away from hierarchical datasets with a layout like this :
zroot/jails/containers/pgdb01 -----------------------------#. mounted at /usr/local/jails/containers/pgdb01
zroot/jails/containers/pgdb01/data17 ----------------------#. mounted at /usr/local/jails/containers/pgdb01/data17 #(PG_DATA)
zroot/jails/containers/pgdb01/data17_base -----------------#. mounted at /usr/local/jails/containers/pgdb01/data17_base
zroot/jails/containers/pgdb01/data17_pg_wal ---------------#. mounted at /usr/local/jails/containers/pgdb01/data17_pg_wal
After creating the necessary directories (/var/db/postgres/data17/data17_base, /var/db/postgres/data17/data17_pg_wal) in the jail,
and adding the mount points in PostgreSQL jail config file /etc/jail.conf.d/pgdb01.conf :
# mount
mount += "${path}/data17 /var/db/postgres/data17 nullfs rw,local,noatime,nfsv4acls 0 0";
mount += "${path}/data17_base /var/db/postgres/data17/data17_base nullfs rw,local,noatime,nfsv4acls 0 0";
mount += "${path}/data17_pg_wal /var/db/postgres/data17/data17_pg_wal nullfs rw,local,noatime,nfsv4acls 0 0";
When I try to start the jail, I get an error preventing starting the jail - cannot start jail pgdb01 - mount_nullfs - mount -t nullfs [No such file or directory]
Now disabling the mount points in PostgreSQL jail config file /etc/jail.conf.d/pgdb01.conf , and starting the jail pgdb01 with no error .
You will notice the existing of the directories inside the jail pgdb01
- /var/db/postgres/data17/data17_base
- /var/db/postgres/data17/data17_pg_wal
Last edited: