Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2022 10:08:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262461] After manual partitioning the disk, installer installs "ZFS on root" directly on the pool not under separate ZFS datasets
Message-ID:  <bug-262461-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262461

            Bug ID: 262461
           Summary: After manual partitioning the disk, installer installs
                    "ZFS on root" directly on the pool not under separate
                    ZFS datasets
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: parv.0zero9+freebsd@gmail.com

My issue with "Auto" mode of "ZFS on root" in the installer (at least of
13.0-RELEASE*) is that the pools takes over the whole disk, minus the space=
 for
EFI & swap. So before installing 14-CURRENT snapshot of 2022-03-03, I chose=
 to
manually partition the disk.

Installer -- of both snapshots -- installs "ZFS on root" directly on the po=
ol
after manual partitioning the disk. There are no separate ZFS datasets simi=
lar
to what "Auto" method would have done.

I had also created a separate partition for "/var". Again, everything was
installed on the pool; there were no separate datasets as is the case in "A=
uto"
mode.

(Installer from 13-STABLE snapshot of the same vintage also resulted in the
same issue.)

This results in not being able to use "bectl(8)" to manage boot environments
...

  # bectl list
  libbe_init("") failed.


"root" is the pool on 35 GB partition at /dev/nvd0p4 where base system had =
been
installed directly using the 14-CURRENT snapshot. Disk & ZFS layout after
install (layout & content of "alt_base", "home", "misc" pools have changed
since but they do not matter for the issue)  ...

+zsh:9> gpart show /dev/nvd0
=3D>       40  976773088  nvd0  GPT  (466G)
         40     409600        - free -  (200M)
     409640   33554432     2  freebsd-swap  (16G)
   33964072   73400320     3  freebsd-zfs  (35G)
  107364392     532480     1  efi  (260M)
  107896872   72867840     4  freebsd-zfs  (35G)
  180764712   44040192     5  freebsd-zfs  (21G)
  224804904  524288000     6  freebsd-zfs  (250G)
  749092904  227680224     7  freebsd-zfs  (109G)

+zsh:9> gpart show -l /dev/nvd0
=3D>       40  976773088  nvd0  GPT  (466G)
         40     409600        - free -  (200M)
     409640   33554432     2  swap0  (16G)
   33964072   73400320     3  altbase0  (35G)
  107364392     532480     1  (null)  (260M)
  107896872   72867840     4  root0  (35G)
  180764712   44040192     5  varbase  (21G)
  224804904  524288000     6  home0  (250G)
  749092904  227680224     7  misc0  (109G)

+zsh:9> zfs list
NAME                   USED  AVAIL     REFER  MOUNTPOINT
alt_base               364K  33.4G       24K  /alt-root
alt_base/backup         24K  33.4G       24K  /alt-root/backup
home                  3.48G   237G       27K  /home
home/aa               18.9M   237G     18.9M  /home/aa
home/freebsd-ports    1.32G   237G     1.32G  /home/freebsd-ports
home/freebsd-src      1.75G   237G     1.75G  /home/freebsd-src
home/pkg-save          188M   237G      188M  /home/pkg-save
home/ports-distfiles   216M   237G      216M  /home/ports-distfiles
misc                   389M   104G      389M  /misc
misc/build-ports        24K   104G       24K  /misc/build-ports
misc/build-world        24K   104G       24K  /misc/build-world
misc/ccache             24K   104G       24K  /misc/ccache
misc/ccache-user        24K   104G       24K  /misc/ccache-user
root                  2.46G  31.0G     2.46G  none
temp                   475K   225G       24K  /temp
temp/log               115K   225G      115K  /temp/log
var                    663M  19.2G      662M  /var
var/crash               24K  19.2G       24K  /var/crash
var/log               72.5K  19.2G     72.5K  /var/log
var/mail                31K  19.2G       31K  /var/mail

+zsh:9> zpool list -v
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP=20=
=20=20
HEALTH  ALTROOT
alt_base   34.5G   364K  34.5G        -         -     0%     0%  1.00x=20=
=20=20
ONLINE  -
  nvd0p3   34.5G   364K  34.5G        -         -     0%  0.00%      -=20=
=20=20
ONLINE
home        248G  3.48G   245G        -         -     0%     1%  1.00x=20=
=20=20
ONLINE  -
  nvd0p6    248G  3.48G   245G        -         -     0%  1.40%      -=20=
=20=20
ONLINE
misc        108G   389M   108G        -         -     0%     0%  1.00x=20=
=20=20
ONLINE  -
  nvd0p7    108G   389M   108G        -         -     0%  0.35%      -=20=
=20=20
ONLINE
root       34.5G  2.46G  32.0G        -         -     0%     7%  1.00x=20=
=20=20
ONLINE  -
  nvd0p4   34.5G  2.46G  32.0G        -         -     0%  7.13%      -=20=
=20=20
ONLINE
temp        232G   475K   232G        -         -     0%     0%  1.00x=20=
=20=20
ONLINE  -
  da0       232G   475K   232G        -         -     0%  0.00%      -=20=
=20=20
ONLINE
var        20.5G   663M  19.9G        -         -     0%     3%  1.00x=20=
=20=20
ONLINE  -
  nvd0p5   20.5G   663M  19.9G        -         -     0%  3.15%      -=20=
=20=20
ONLINE

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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