Brad Spencer wrote:
I have been running a PV with NetBSD 9.0_STABLE and ZFS filesets for while with pretty good success. I went to update the system with a build as of 20200820 and the ZFS module panics with the included panic as soon as the ZFS module loads (and maybe starts to do something, don't know about that part). The ZFS module appears to work from 20200509 with the new kernel. Anyone else have this?? The Xen version is older, a DOM0 from October 2018, 8.99.25 and Xen 4.8.
I saw this very crash yesterday when trying to replicate a hang that I found with zvols on the dom0 (testing on the dom0 is a bit annoying...).
It seems to happen when zfs imports the pool (tries the scan the xbd:s?) because I could load the module and create a pool on a fresh domU, but when I rebooted the system it would crash. I am running Xen 4.11.3nb2 on 9.0_STABLE, sources updated on September 7th or 8th.
When I booted the system with zfs=NO in rc.conf but zfs in /etc/modules.conf the system booted properly, but instantly crashed with the following backtrace
when I ran zpool status: test# zpool status[ 28.5500728] panic: kernel diagnostic assertion "seg <= BLKIF_MAX_SEGMENTS_PER_REQUEST" failed: file "/usr/build/src/sys/arch/xen/xen/xbd_xenbus.c", line 1032
[ 28.5500728] cpu0: Begin traceback... [ 28.5500728] vpanic() at netbsd:vpanic+0x143 [ 28.5500728] kern_assert() at netbsd:kern_assert+0x48 [ 28.5500728] xbd_diskstart() at netbsd:xbd_diskstart+0x3c7 [ 28.5500728] dk_start() at netbsd:dk_start+0x104 [ 28.5500728] bdev_strategy() at netbsd:bdev_strategy+0x72 [ 28.5500728] spec_strategy() at netbsd:spec_strategy+0x96 [ 28.5500728] VOP_STRATEGY() at netbsd:VOP_STRATEGY+0x33 [ 28.5500728] vdev_disk_io_start() at zfs:vdev_disk_io_start+0x12c [ 28.5500728] zio_vdev_io_start() at zfs:zio_vdev_io_start+0x12e [ 28.5500728] zio_execute() at zfs:zio_execute+0xca [ 28.5500728] zio_nowait() at zfs:zio_nowait+0x5c [ 28.5600673] vdev_label_read_config() at zfs:vdev_label_read_config+0xc8 [ 28.5600673] vdev_validate() at zfs:vdev_validate+0xca [ 28.5600673] vdev_validate() at zfs:vdev_validate+0x43 [ 28.5600673] spa_load() at zfs:spa_load+0x390 [ 28.5600673] spa_load_best() at zfs:spa_load_best+0x58 [ 28.5600673] spa_open_common() at zfs:spa_open_common+0xd8 [ 28.5600673] spa_get_stats() at zfs:spa_get_stats+0x39 [ 28.5600673] zfs_ioc_pool_stats() at zfs:zfs_ioc_pool_stats+0x25 [ 28.5600673] zfsdev_ioctl() at zfs:zfsdev_ioctl+0x265 [ 28.5600673] nb_zfsdev_ioctl() at zfs:nb_zfsdev_ioctl+0x38 [ 28.5600673] VOP_IOCTL() at netbsd:VOP_IOCTL+0x3b [ 28.5600673] vn_ioctl() at netbsd:vn_ioctl+0xa5 [ 28.5600673] sys_ioctl() at netbsd:sys_ioctl+0x547 [ 28.5600673] syscall() at netbsd:syscall+0x9c [ 28.5600673] --- syscall (number 54) --- [ 28.5600673] 7344341681ba: [ 28.5600673] cpu0: End traceback... Staffan