I want to test the ZFS raidz expansion feature.
I have create a VM with vm-bhyve:
# vm iso
https://download.freebsd.org/snapshots/amd64/amd64/ISO-IMAGES/15.0/FreeBSD-15.0-CURRENT-amd64-20240718-a4469a0d19b6-271237-bootonly.iso
# vm create fbsd15-bis
I have increased the VM memory to 2G:
# cat fbsd15-bis.conf
loader="bhyveload"
cpu=1
memory=2G
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
uuid="ff66b6cc-459e-11ef-92b1-c86000cc94af"
network0_mac="58:9c:fc:0a:ad:da"

# vm install fbsd15-bis
FreeBSD-15.0-CURRENT-amd64-20240718-a4469a0d19b6-271237-bootonly.iso
After the installation I have create 3 additional disks:
in the host:
# truncate -s 10G disk1.img
# truncate -s 10G disk2.img
# truncate -s 10G disk3.img
I have added 3 additional disk:
# cat fbsd15-bis.conf
loader="bhyveload"
cpu=1
memory=2G
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
disk1_type="virtio-blk"
disk1_name="disk1.img"
disk2_type="virtio-blk"
disk2_name="disk2.img"
disk3_type="virtio-blk"
disk3_name="disk3.img"
uuid="ff66b6cc-459e-11ef-92b1-c86000cc94af"
network0_mac="58:9c:fc:0a:ad:da"
# vm start fbsd15-bis

in the VM:
# zpool create tank raidz1 vtbd1 vtbd2
# zpool attach tank raidz1-0 vtbd3
panic: VERIFY(vd == vd->vdev_top) failed

cpuid = 0
time = 1721375688
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
0xfffffe00546d1800
vpanic() at vpanic+0x13f/frame 0xfffffe00546d1930
spl_panic() at spl_panic+0x3a/frame 0xfffffe00546d1990
zio_vdev_io_start() at zio_vdev_io_start+0x637/frame 0xfffffe00546d19e0
zio_nowait() at zio_nowait+0x10c/frame 0xfffffe00546d1a20
vdev_check_boot_reserve() at vdev_check_boot_reserve+0x7a/frame
0xfffffe00546d1a50
spa_vdev_attach() at spa_vdev_attach+0x700/frame 0xfffffe00546d1ad0
zfs_ioc_vdev_attach() at zfs_ioc_vdev_attach+0x75/frame 0xfffffe00546d1b10
zfsdev_ioctl_common() at zfsdev_ioctl_common+0x4f4/frame 0xfffffe00546d1bd0
zfsdev_ioctl() at zfsdev_ioctl+0xfb/frame 0xfffffe00546d1c00
devfs_ioctl() at devfs_ioctl+0xd1/frame 0xfffffe00546d1c50
vn_ioctl() at vn_ioctl+0xbc/frame 0xfffffe00546d1cc0
devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe00546d1ce0
kern_ioctl() at kern_ioctl+0x286/frame 0xfffffe00546d1d40
sys_ioctl() at sys_ioctl+0x12d/frame 0xfffffe00546d1e00
amd64_syscall() at amd64_syscall+0x158/frame 0xfffffe00546d1f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00546d1f30
--- syscall (54, FreeBSD ELF64, ioctl), rip = 0xb2fddfff8fa, rsp =
0xb2fcf7fe8d8, rbp = 0xb2fcf7fe940 ---
KDB: enter: panic
[ thread pid 958 tid 100176 ]
Stopped at      kdb_enter+0x33: movq    $0,0x1058552(%rip)

--
Regards,
Maurizio

Reply via email to