jail -r does not remove a jail

Matthew Seaman matthew at FreeBSD.org
Sat Aug 20 11:02:36 UTC 2016


On 20/08/2016 09:36, David Demelier wrote:
> I had a jail that can not be removed after a poudriere jailure:
> 
> # jls
>    JID  IP Address      Hostname                      Path
>     50  127.0.0.1       desktop-103-amd64-default-job
> /poudriere/data/.m/desktop-103-amd64-default/03
> # jail -r 50
> 50: removed
> # jls
>    JID  IP Address      Hostname                      Path
>     50  127.0.0.1       desktop-103-amd64-default-job
> /poudriere/data/.m/desktop-103-amd64-default/03
> 
> Why does it say removed and it's not? What can I do without rebooting
> to kill this jail?

Do you have a stuck process still within that jail?  Try:

   % ps -J 50 -ax

If you have such processes, killing them should allow the jail to shut down.

Failing that, does 'poudriere status' show anything still running?  Can
you use 'poudriere jail -j jailname -k' to shut it down?

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20160820/cff3fc75/attachment.sig>


More information about the freebsd-questions mailing list