Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2024 07:01:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 278414] Reproducible zpool(8) panic with 14.0-RELEASE amd64-zfs.raw VM-IMAGES
Message-ID:  <bug-278414-3630-BxTDT2CA6Q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278414-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278414-3630@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #13 from Michael Dexter <editor@callfortesting.org> ---
Perhaps you would like to experiment with a makefs -t zfs image.

This is the syntax used by /usr/src/release/tools/vmimage.subr with a 128m
image:

mkdir -p /tmp/rootfs/ROOT/default
mkdir -p /tmp/rootfs/usr/ports
mkdir -p /tmp/rootfs/var/audit

makefs -t zfs -s 128m -B little -o 'poolname=3Dzroot' -o
'bootfs=3Dzroot/ROOT/default' -o 'rootpath=3D/' -o 'fs=3Dzroot;mountpoint=
=3Dnone' -o
'fs=3Dzroot/ROOT;mountpoint=3Dnone' -o 'fs=3Dzroot/ROOT/default;mountpoint=
=3D/' -o
'fs=3Dzroot/home;mountpoint=3D/home' -o
'fs=3Dzroot/tmp;mountpoint=3D/tmp;exec=3Don;setuid=3Doff' -o
'fs=3Dzroot/usr;mountpoint=3D/usr;canmount=3Doff' -o 'fs=3Dzroot/usr/ports;=
setuid=3Doff'
-o 'fs=3Dzroot/usr/src' -o 'fs=3Dzroot/usr/obj' -o
'fs=3Dzroot/var;mountpoint=3D/var;canmount=3Doff' -o
'fs=3Dzroot/var/audit;setuid=3Doff;exec=3Doff' -o
'fs=3Dzroot/var/log;setuid=3Doff;exec=3Doff' -o 'fs=3Dzroot/var/mail;atime=
=3Don' -o
'fs=3Dzroot/var/tmp;setuid=3Doff' /tmp/raw.zfs.img /tmp/rootfs

Note:

zdb -l /tmp/raw.zfs.img

zpool import -d /tmp/raw.zfs.img

truncate -s 128m /tmp/img.raw
zpool create foo /tmp/img.raw
zpool export foo
zpool import -d /tmp/img.raw

The img.raw created with truncate and zpool create can be imported while the
makefs one reports:

   pool: zroot
     id: 17927745092259738836
  state: UNAVAIL
status: One or more devices contains corrupted data.
 action: The pool cannot be imported due to damaged devices or data.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
 config:

        zroot                                                  UNAVAIL=20
insufficient replicas
          /tmp/img.raw  UNAVAIL  invalid label

--=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-278414-3630-BxTDT2CA6Q>