nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
364 stars 43 forks source link

OpenZFS (support for feature flags etc.) #77

Closed grahamperrin closed 3 years ago

grahamperrin commented 3 years ago

For example:

nomad@NomadBSD:~% date ; uname -v
Sun 27 Dec 2020 14:39:47 GMT
FreeBSD 12.1-RELEASE-p6 #0 r362945M: Sun Jul  5 15:46:22 UTC 2020     ich@riara.uni.cx:/usr/obj/usr/src/amd64.amd64/sys/NOMADBSD 
nomad@NomadBSD:~% lsblk
DEVICE         MAJ:MIN SIZE TYPE                              LABEL MOUNT
ada0             0:110 298G GPT                                   - -
  ada0p1         0:111 512K freebsd-boot               gpt/gptboot0 -
  <FREE>         -:-   492K -                                     - -
  ada0p2         0:112 298G freebsd-zfs                    gpt/zfs0 <ZFS>
  <FREE>         -:-   324K -                                     - -
da0              0:127  15G MBR                                   - -
  <FREE>         -:-   512B -                                     - -
  da0s1          0:128  40M efi                                   - -
  da0s2          0:133 3.9G BSD                                   - -
    da0s2a       0:136 3.9G freebsd-ufs             label/nomadroot /
  da0s3          0:134  11G BSD                                   - -
    da0s3a       0:137  11G freebsd-ufs             label/nomadhome /private
md0              0:135 2.0G -                                     - -
nomad@NomadBSD:~% sudo zpool import
Password:
   pool: zroot
     id: 14460951261788238172
  state: UNAVAIL
status: The pool can only be accessed in read-only mode on this system. It
    cannot be accessed in read-write mode because it uses the following
    feature(s) not supported on this system:
    com.delphix:log_spacemap (Log metaslab changes on a single spacemap and flush them periodically.)
    org.zfsonlinux:project_quota (space/object accounting based on project ID.)
    org.zfsonlinux:userobj_accounting (User/Group object accounting.)
action: The pool cannot be imported in read-write mode. Import the pool with
    "-o readonly=on", access the pool on a system that supports the
    required feature(s), or recreate the pool from backup.
 config:

    zroot       UNAVAIL  unsupported feature(s)
      ada0p2    ONLINE
nomad@NomadBSD:~% 
bsdlme commented 3 years ago

Does this zpool come from a 13-HEAD or 11.4 system?

grahamperrin commented 3 years ago

helloSystem 13.0-CURRENT.

I can install OpenZFS for myself. I guess, the question is whether you want to include it with NomadBSD at this this.

PS In retrospect, I didn't even try to load openzfs; I went straight for zfs.

bsdlme commented 3 years ago

At the moment there are no plans to include OpenZFS in NomadBSD. When FreeBSD 13.0 will be released next year we will build NomadBSD 13 and this will include OpenZFS by default.