[Bug 281520] zfs panic: VERIFY(!txg_list_member(&vd->vdev_ms_list, msp, t)) failed after install

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 Sep 2024 12:41:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281520

--- Comment #4 from Dave Cottlehuber <dch@freebsd.org> ---
how is this built?

- from existing 15.0-CURRENT arm64 box (should work from 14.1-RELEASE too but I
am on current here)
- the steps below should also be usable on amd64 FreeBSD if that helps, it will
  still produce the correct arm64 image
- clone https://git.sr.ht/~dch/src main branch,  into /usr/src,
- switch to commit #f7639cff05f63cfe38532bd70e33a890e1fe6b53
- run as root

# export SRCCONF=/dev/null
# export SRC_ENV_CONF=/dev/null
# make -j2C buildworld  TARGET_ARCH=aarch64 TARGET=arm64 -s
# make -j2C buildkernel TARGET_ARCH=aarch64 TARGET=arm64 KERNCONF=GENERIC -s
# cd ./release
# make -j2C clean
# make -DNOPORTS -DNOSRC \
  WITHOUT_DEBUG_FILES=YES WITHOUT_KERNEL_SYMBOLS=YES \
  WITHOUT_LIB32=YES WITHOUT_TESTS=YES \
  KERNCONF=GENERIC \
  TARGET_ARCH=aarch64 TARGET=arm64 \
  WITH_CLOUDWARE=yes \
  CLOUDWARE=OCI -s cloudware-release

there is now a
/usr/obj/projects/oci/14.1-RELEASE/arm64.aarch64/release/oci.zfs.raw

this file is converted to qemu for compression, before cloud upload

qemu-img convert -S 512b -p -O qcow2 -c -o compression_type=zstd \
  /usr/obj/projects/oci/14.1-RELEASE/arm64.aarch64/release/oci.zfs.raw \
  /tmp/oci.zfs.qcow2

I tested this (without seeing the same problem) via qemu on a fast amd64:

$ qemu-system-aarch64 \
 -m 4096M -cpu cortex-a57 -smp cores=4 -M virt -nodefaults \
 -bios edk2-aarch64-code.fd \
 -serial telnet::4444,server \
 -nographic -monitor none -vga none \
 -object rng-random,id=rng0,filename=/dev/urandom -device
virtio-rng-pci,rng=rng0 \
 -rtc base=utc \
 -drive
if=none,file=/tmp/FreeBSD-15.0-CURRENT-arm64-aarch64-20240916-f7639cf-zfs.qcow2,id=hd0
\
 -device virtio-blk-device,drive=hd0 \
 -snapshot

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