OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: dieterarn on August 16, 2016, 11:41:47 pm

Title: install onto zfs
Post by: dieterarn on August 16, 2016, 11:41:47 pm
hi all,

poking around the forum i found:
https://forum.opnsense.org/index.php?topic=19.msg444#msg444 (https://forum.opnsense.org/index.php?topic=19.msg444#msg444)

which talks about being able to install OPNsense onto bootable zfs. Any update? Does this work now?

if not any chance this technique from pfsense would work?:
 https://forum.pfsense.org/index.php?topic=94656.0 (https://forum.pfsense.org/index.php?topic=94656.0)
Title: Re: install onto zfs
Post by: dieterarn on August 22, 2016, 12:12:44 am
so i had a poke around with virtual box. With pfsense 2.2.2 i was able to get a booting zfs mirror up and running as per the previously posted instructions. It appears that the "graphical install method" is missing from opnsense (maybe the fork was after 2.2.2?)

reading https://forum.opnsense.org/index.php?topic=505.msg1709#msg1709  (https://forum.opnsense.org/index.php?topic=505.msg1709#msg1709) from 2015 i noticed franco's response:

Quote from: SilverJS on May 26, 2015, 09:17:05 PM

    2.  ZFS support.  I know someone else had already mentioned this in a separate thread, and Franco (as I recall) had mentioned he'd consider it.  I'd just like to add my voice to the chorus requesting this.  I can tell you that, in the short while I've used boot environments in FreeNAS 9.3 (been using FreeNAS since the very early 8.x versions), that they have already proven their worth and utility to me.  Anybody who's had trouble with an upgrade of any kind can relate to this, I'm sure.  I understand this is much more long-term, and that the team has higher-priority items for now - but, all I'm asking is, that you not let this drop from your crosscheck. =)

This is still a huge task ahead of us. I've recently fixed package installations on ZFS systems, but for now two major issues are stopping us from deploying ZFS in a release:

(a) the rc system won't boot off a zfs system as it is not aware of its idiosyncrasies
(b) the installer needs a zfs install option

After those steps are tackled, we can start to phase in boot environments and the like. If anybody is willing to help I'd be happy to guide and review changes to make this happen rather sooner than later. Hope that helps. :)

so i guess this stuff is still on the drawing boards... I was intrigued about his use of
I've recently fixed package installations
and i found this post which seemed to indicate you can convert a vanilla installation of freebsd into opnsense: https://forum.opnsense.org/index.php?topic=1480.msg4481#msg4481 (https://forum.opnsense.org/index.php?topic=1480.msg4481#msg4481). but that same thread also has Johan2 having trouble converting his freebsd with zfs on root to opnsense.

it appears from the digital ocean guide that franco mentioned and his comment that  package installations have been fixed that is it as "simple" as installing freebsd on zfs and using the package they mention to convert freebsd into opnsense...

I guess what i'm asking is: is converting a freebsd with zfs on root installation to opnsense a viable way to get a working opnsense on zfs installation working these days?

Title: Re: install onto zfs
Post by: dieterarn on August 22, 2016, 04:35:45 am
So i tried:

Code: [Select]
pkg install wget
Code: [Select]
wget --no-check-certificate https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.sh  :P

am i playing with fire: yes. Do i know what I'm doing: no. still any thoughts would be quite appreciated...

Title: Re: install onto zfs
Post by: franco on August 22, 2016, 07:17:03 am
Hi there,

So far so good.  ;)

The instructions indicate there are problems with ZFS by requiring UFS: https://github.com/opnsense/update#opnsense-bootstrap

In order to get ZFS as a standard feature into OPNsense we need to:

(a) Add the RC bits so that it boots ok (your current problem), and
(b) Add installer support.

I think (a) is relatively easy to accomplish following FreeBSD's baseline. (b) takes longer and nobody ever contributed to the installer, which makes it a wild guess wether this can materialise in 17.1 on a whole. However, I think (a) is doable in that timeframe.

At this point I do not know any details about (a) and (b).

Title: Re: install onto zfs
Post by: dieterarn on August 31, 2016, 03:15:07 am
i created a new post over on the 17.1 alpha category since this is clearly not stuff for 16.7: https://forum.opnsense.org/index.php?topic=3602.msg12137#msg12137 (https://forum.opnsense.org/index.php?topic=3602.msg12137#msg12137)