OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • ZFS
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: ZFS  (Read 31875 times)

Aadolf

  • Newbie
  • *
  • Posts: 33
  • Karma: 2
    • View Profile
ZFS
« on: January 14, 2017, 04:10:45 pm »
hi
I think there was a feature in 17.1 road-map and that was  "ZFS rc mount awareness" but now there isn't such a feature.
What was that (ZFS rc mount awareness )  ?

thanks
« Last Edit: January 15, 2017, 07:39:16 am by Aadolf »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #1 on: January 15, 2017, 05:47:13 pm »
Hi,

Yes, you are right. I tracked down several FreeBSD issues in preparation for 17.1 that took most of my time planned for other things amongst "zfs rc mount awareness".

It simply mean if you had a working ZFS custom install, OPNsense would boot fine on it, which it currently doesn't.

Since the installer doesn't support ZFS installation yet, the former was really only for advanced users and made not a lot of sense in another way than the prerequisite for proper ZFS support.

With all the work having happened for FreeBSD 11.0 in the past months, full ZFS support shifts to the 17.7 roadmap.

I will note this in the 17.1-RC release notes.


Cheers,
Franco
Logged

Aadolf

  • Newbie
  • *
  • Posts: 33
  • Karma: 2
    • View Profile
Re: ZFS
« Reply #2 on: January 16, 2017, 08:49:53 am »
Good news.
Thanks.
Logged

dcol

  • Hero Member
  • *****
  • Posts: 635
  • Karma: 51
    • View Profile
Re: ZFS
« Reply #3 on: November 14, 2017, 11:34:53 pm »
So any progress on ZFS yet?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #4 on: November 15, 2017, 01:37:02 pm »
It‘s true, being postponed up until now.

Bootstrapping into a FreeBSD with ZFS would be a good first start, but it’s impractical for most users as the installer should also be capable of installing OPNssense on ZFS, which is the larger and more tedious work.

That being said, OPNsense can’t boot ZFS yet, so please don’t try to bootstrap from a FreeBSD on ZFS.

I don’t know how much time there still is, 18.1 is quite full in terms of goals and code reworks but I would like to ask you to keep prodding, because that has shown to be quite effective.

Sorry for not being able to be more assertive on the matter.


Thank you,
Franco
Logged

krad

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: ZFS
« Reply #5 on: May 03, 2018, 04:29:31 pm »
Can you elaborate why one that is, other than not supported yet. I ask as im new to opnsense but very experienced with freebsd, and zfs builds.  Initially looking around at what is available in the base userland, I suspect I could get it going in and incorporate boot environments, unless there is something hidden in there. All the libraries, kernel modules and loaders appear to be there, which is a good start. After all it does look like opnsense is a fairly bog standard freebsd build with tweaks, config management and a gui.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #6 on: May 03, 2018, 05:25:08 pm »
It was state here very recently: https://forum.opnsense.org/index.php?topic=8521.0

Translated:

Requires time for development. Every now and then somebody brings up a new networking feature they want to merge and that is subsequently prioritised... :)

We need to do two things:

1. ZFS Boot Awareness: With a FreeBSD on ZFS you can install OPNsense using opnsense-bootstrap, but the system won't boot because /usr/local/etc/rc is not aware of ZFS and the kernel module is missing.

2. When 1. is done the installer needs to gain a ZFS installation mode.


Cheers,
Franco
Logged

dcol

  • Hero Member
  • *****
  • Posts: 635
  • Karma: 51
    • View Profile
Re: ZFS
« Reply #7 on: May 03, 2018, 07:25:32 pm »
Whatever makes ZFS happen. Been waiting a long time.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #8 on: May 04, 2018, 12:01:13 am »
Ok, here's some progress then: https://github.com/opnsense/core/issues/2386


Cheers,
Franco
Logged

opnfwb

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: 47
    • View Profile
Re: ZFS
« Reply #9 on: May 04, 2018, 02:36:18 pm »
Nice! Thank you Franco! Been looking forward to this as well. Great feature to have for areas that aren't stable on power and need to resume with a minimum of data loss, UFS is not too friendly in that regard.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #10 on: May 04, 2018, 04:32:29 pm »
Yikes, yes, UFS recovery is
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #11 on: May 05, 2018, 10:29:09 am »
Apart from that latent joke earlier, feel free to try this bootstrap method into the latest development version with a standard amd64 FreeBSD 11.1 ZFS install (do not deviate from the defaults: auto, stripe):

-- REDACTED, see later replies --


Cheers,
Franco
« Last Edit: May 17, 2018, 01:19:29 pm by franco »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #12 on: May 05, 2018, 11:08:01 am »
PS: Careful on updates, 18.1.7 will not retain this support, but I'm positive it'll be in 18.1.8.
Logged

dcol

  • Hero Member
  • *****
  • Posts: 635
  • Karma: 51
    • View Profile
Re: ZFS
« Reply #13 on: May 06, 2018, 11:06:34 pm »
Quote from: franco on May 05, 2018, 10:29:09 am
# pkg install ca_root_nss
# fetch https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.sh
# sh ./opnsense-bootstrap.sh -t opnsense-devel
So, if I wanted to test an OPNsense ZFS build, I would install a FreeBSD 11.1 ZFS build, then run these commands?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: ZFS
« Reply #14 on: May 07, 2018, 12:00:54 am »
Yes, but make sure it's amd64 and all defaults for ZFS (striped). More modes may work, but they haven't been tested. Encryption doesn't work for sure.

These changes will all be in 18.1.8 from the looks of it to make the required installer changes easier.


Cheers,
Franco
Logged

  • Print
Pages: [1] 2 3
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • ZFS
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2