[Bug 278414] Reproducible zpool(8) panic with 14.0-RELEASE amd64-zfs.raw VM-IMAGES
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Apr 2024 07:01:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278414
--- 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=zroot' -o
'bootfs=zroot/ROOT/default' -o 'rootpath=/' -o 'fs=zroot;mountpoint=none' -o
'fs=zroot/ROOT;mountpoint=none' -o 'fs=zroot/ROOT/default;mountpoint=/' -o
'fs=zroot/home;mountpoint=/home' -o
'fs=zroot/tmp;mountpoint=/tmp;exec=on;setuid=off' -o
'fs=zroot/usr;mountpoint=/usr;canmount=off' -o 'fs=zroot/usr/ports;setuid=off'
-o 'fs=zroot/usr/src' -o 'fs=zroot/usr/obj' -o
'fs=zroot/var;mountpoint=/var;canmount=off' -o
'fs=zroot/var/audit;setuid=off;exec=off' -o
'fs=zroot/var/log;setuid=off;exec=off' -o 'fs=zroot/var/mail;atime=on' -o
'fs=zroot/var/tmp;setuid=off' /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
insufficient replicas
/tmp/img.raw UNAVAIL invalid label
--
You are receiving this mail because:
You are the assignee for the bug.