I have been struggling with this problem for quite some time. I have iRedMail running perfectly in FreeBSD's Jail but I have trouble shutting or rebooting the server as it will hang after "All buffers synched". This is not good if the server will be at the data center which will require someone to physically reset the server.

I suspect that iRedMail installation changed some of the system configurations in mail Jail that prevented it from having normal shutdown/reboot procedure as it hangs after "All buffers synched".

I occasionally get this error... after I press the power button or ALT-CTRL-DEL keys after it hangs and it will shutdown after couple of minutes.All buffers synchedwriting entrophy file:/etc/rc.shutdown: WARNING: write failed (read-only fs?)Terminatedinit: some processes would not die; ps axl advised

It will not drop into Single Mode for me to do the "ps axl" command to find out what's causing this.

I looked in the /var/logs/messages to find what could be causing the problem but I do not see anything since shutdown procedure wasn't able to write to the log file.

Anyone else having this problem or is there a solution?

On the side note, I did the same procedure on my other computer in VirtualBox without ZFS. It all works very well. I have to use ZFS for two drives mirroring and to control the disk space for VPS users.

Re: [SOLVED] FreeBSD 9.1 + ZFS + Jail + iRedMail = shutdown deadlocks

I will try two things:

1) Install iRedMail in FreeBSD without Jail. I suspect this will hang at reboot/shutdown anyway.2) Fix the ZFS installation script to create swap partition outside of ZFS. If create swap inside ZFS and it is known to cause deadlock with vnodes during massive data read/write. FreeBSD team is working to find a solution to this problem but this is a temporary solution.