Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2012 10:30:09 +0100
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, <freebsd-jail@freebsd.org>, <mm@freebsd.org>, <pjd@freebsd.org>, <jamie@freebsd.org>
Subject:   Re: Fixed Jail ID for ZFS -> need proper mgmt?
Message-ID:  <AB1DE809AA02491B865DD785C6235C9A@multiplay.co.uk>
References:  <alpine.BSF.2.00.1209040846530.76284@ai.fobar.qr>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To: <freebsd-jail@freebsd.org>; <mm@freebsd.org>; <pjd@freebsd.org>; <jamie@freebsd.org>
Sent: Tuesday, September 04, 2012 9:55 AM
Subject: Fixed Jail ID for ZFS -> need proper mgmt?


> Hi,
> 
> I had been talking to someone about jail management and it turns out
> people are using jail jid=42 to always have a fixed jail ID.  The
> reason as I understood is that ZFS datasets are associated by jail id
> for delegation? [I admit having no clue about the ZFS side]
> 
> If this is true I feel it's a very bad idea as it makes restarting
> jails a lot harder in case they remain DYING for say a not fully
> closed TCP session.
> 
> My memories are: jid are still unique and cannot be re-used, even if
> in DYING, names can be re-used and thus are not neccessarily unique.
> Jamie, can you confirm this?
> 
> Seems we need to sort out one to two problems:
> 
> 1) can we make sure that the jail management framework can address a
>    ZFS dataset for delegation somehow and automatically do that as
>    part of the startup?
> 
> 2) in the case of (1) it should be possible to address jails by name
>    as ZFS would be handled automatically and we would not need another
>    unique identifier I guess?
>    Otherwise I'd prefer for people to be able to delegate ZFS datasets
>    to jail names (as well), as long as they are uniquely identifyable
>    (i.e. there are no 17 jails running with a name of "filesever").
> 
> Do we have documentation for the ZFS features in the man pages or
> elsewhere btw?   If not we should add it.
> 
> Does this make sense?

We use fixed jid's here to ensure only one copy of a jail is started.

If a jail is in a dying state you can still resurrect the it if your
looking to restart it so it not as big a deal as you may think.

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB1DE809AA02491B865DD785C6235C9A>