Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2015 16:53:21 +0200
From:      Kai Gallasch <k@free.de>
To:        Allan Jude <allanjude@freebsd.org>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: sysutils/iocage in a NAS environment
Message-ID:  <55BB8BE1.8050808@free.de>
In-Reply-To: <55BB84AF.5040808@freebsd.org>
References:  <55BB4CC5.2050004@free.de> <55BB84AF.5040808@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--b45wnBUgx6iQsqGw5ndQEFT7VCalC7JJT
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable



On 31.07.2015 16:22 Allan Jude wrote:
> On 2015-07-31 06:24, Kai Gallasch wrote:
>>
>> Hi.
>>
>> Just read that FreeNAS 10 is going to use sysutils/iocage for managing=

>> local jails on the NAS. That is great news and it will give iocage mor=
e
>> publicity and a wider user base!
>>
>> I am currently testing a FreeNAS 9 as a NAS for my FreeBSD servers. Ea=
ch
>> (FreeBSD 10) server is running between 10-50 iocage jails.
>>
>> iocage's documentation states that each iocage installation needs a
>> zpool to run on.
>>
>> So the only way I see to use a NAS for iocage deployment would be to
>> make use of iSCSI (block based) mounts. The NAS would offer an iscsi
>> target to the jailhost. When mounted, it just shows up as a block base=
d
>> LUN. You then could create a zpool on this LUN and use this zpool for
>> iocage. (Each time the jailhost starts up, the iSCSI mount + zpool
>> import would have to happen automatically)
>>
>> Does this approach make any sense when both performance or stability a=
re
>> needed?
>>
>> Is it generally adviseable to use zpools on iSCSI targets, because the=
y
>> are basically iSCSI exported zvols running on top of another zpool?
>>
>> Regards,
>> Kai.
>>
>=20
> If FreeBSD 9 is your NAS, why are the disks remote?
>=20
> Normally, you'd run iocage on the NAS (the machine with the physical
> disks in it) and have direct access to the zpool.

I understand that this would result in the best performance, but how am
I to run FreeBSD 10 or 11 jails on this NAS appliance that is plain
FreeBSD9 ?

The current state is (as I wrote), that I manage several jail hosts in a
rack, which are just running jails using the iocage tool.

What I want to achieve with FreeNAS is to have the jail data centralized
on the NAS and the jail hosts just "mounting" the jail data and running
the jails. The benefit would be that if one server dies or needs to be
completely rebuild, I just remount the jails on another active server,
without much service interruption.

In my experience when running a bunch of jail hosts with local jail
data, much time and effort is wasted moving data around if you want to
change hardware or have failed hardware, etc.

K.

--=20
PGP-KeyID =3D 0x70654D7C4FB1F588



--b45wnBUgx6iQsqGw5ndQEFT7VCalC7JJT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVu4vhAAoJEHBlTXxPsfWIkaMP/jp9F5TQFYmGlXrbYcfmleiy
zaD2BZq4mAd+RH7/8GDVzgvYMiDTXxhmu2+4PIVx4OZSovKAco43lxZNkRe1/674
kRryB+rHXWJX+oLPAEcYP5+/TnTHlbBAPMoHQRCSHH9zTYiYbOYqPtSyA16GBIMi
sfiyxAvgSw1BAXSoGGrrzn+MoUs7BiFYXkwRKmtGt0n2gA/d/IjoNy4yA8jHjfs7
M2Hg6FBiocOfwEp0GW8Wcji3+A8FWxy+C0zeOrbaeM+KWPOxDXS3jhmTxt4NRk1B
HfQ7UeE3CjnO78x8ImiIMWuYZFDYU4tj2ZzV+n5cdrbzyqV9ouFld7HJEhfN++s7
gitWhiKS3WJfsLQCzdMzMDFuE10WJt+MyR5bP26Oz/ZW1vzXc6WMjwFEHg+bimj4
4vK04KSlH3STBaWIqhSAyfyAW9fDr8ex9lzTdMoiX75Ito3hUbxeeUh20vxvmQd4
u6FVxwrWCEsHv3IsPCmc63iVW+pH8vtNZIoOcXyj7J6xidP4IClgQlZWFd1qFGtW
P8y6khLQOQ8+XHrdcptApjL30DEGSKeFlTL5aZ8N35nUilqxksAJC+w6dLjHPmfN
A+Af6iRZ8ZylmyHfWOiXj+3nUzG9cRuh1kq28Af4i9G7xln3eMs87fLMokyz+MQM
nvOLCKh8Pk1iKd4U7vaN
=6yUA
-----END PGP SIGNATURE-----

--b45wnBUgx6iQsqGw5ndQEFT7VCalC7JJT--



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