Cant start my jail

version: TrueNAS-13.0-U6.1
i have two jails PostgreSQL and PostgreSQLTEST

When I try to start the testing jail PostgreSQLTEST, I get this error:

Error: [EFAULT] mount_nullfs: /mnt/datos/iocage/jails/PostgreSQL/root/bin: Resource deadlock avoided
jail: ioc-PostgreSQLTEST: /sbin/mount -t nullfs -o ro /mnt/datos/iocage/releases/13.2-RELEASE/root/bin /mnt/datos/iocage/jails/PostgreSQL/root/bin: failed

I created the PostgreSQLTEST jail by manually cloning the dataset of the original jail. After that, the new jail config looks fine, but it won’t start.

Is there a way to fix this jail so it points to the right place?

Edit and fix /mnt/<poolname>/iocage/jails/<jailname>/fstab.

root@sdlc[~]# ls /mnt/datos/iocage/jails
PostgreSQL PostgreSQLTEST

the name of my jails its ok, but i cant start PostgreSQLTEST

What happens when you start it?

Same as in your first post? I told you how to fix that. Log in via SSH and use a text editor to repair the jail’s fstab. Your paths are referring to the old jail, not the new one.

There is a possibility that you can fix it from the UI. In the new jail look into “Mount Points”. If you find one ore more with paths referring to the old (PostgreSQL) jail change all of them to PostgreSQLTEST …

Sorry, its working now, i edited my fstab and starting without problem.

Glad it’s working now :slight_smile:

1 Like