From owner-freebsd-bugs@freebsd.org Wed Jan 2 15:48:03 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 927661425720 for ; Wed, 2 Jan 2019 15:48:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 23A3E923AA for ; Wed, 2 Jan 2019 15:48:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DBBC8142571F; Wed, 2 Jan 2019 15:48:02 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9632142571E for ; Wed, 2 Jan 2019 15:48:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58BF5923A8 for ; Wed, 2 Jan 2019 15:48:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8603D14A60 for ; Wed, 2 Jan 2019 15:48:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x02Fm1aj079871 for ; Wed, 2 Jan 2019 15:48:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x02Fm1Lv079870 for bugs@FreeBSD.org; Wed, 2 Jan 2019 15:48:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234576] hastd exits ungracefully Date: Wed, 02 Jan 2019 15:48:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rasmus@gal.dk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2019 15:48:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234576 Bug ID: 234576 Summary: hastd exits ungracefully Product: Base System Version: 12.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rasmus@gal.dk OS: FreeBSD 12.0-RELEASE I want to have a poor mans HAST + bhyve solution, running OS and hastd-devi= ce on the same physical disk on each server. However hastd dies and produces t= he following in messages: Jan 2 16:11:13 vip02 ZFS[9633]: vdev state changed, pool_guid=3D$12664153310291685811 vdev_guid=3D$13719543425671811341 Jan 2 16:11:13 vip02 ZFS[9634]: vdev is removed, pool_guid=3D$12664153310291685811 vdev_guid=3D$13719543425671811341 Jan 2 16:11:18 vip02 hastd[9563]: [test] (primary) Worker process exited ungracefully (pid=3D9588, exitcode=3D71). If I use the partition (ada0p4) directly, without using HAST, I am able to install FreeBSD as a guest just fine.=20 How to reproduce: - Configure bhyve https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html 21.7.1 followed to the dot. - Configure hastd https://www.freebsd.org/doc/handbook/disks-hast.html 17.14.2 followed to the dot.=20 # cat /etc/hast.conf resource test { on vip01 { local /dev/ada0p4 remote 192.168.212.202 } on vip02 { local /dev/ada0p4 remote 192.168.212.201 } } # - Setup ZFS pool and create volume for guest # zpool create ztest /dev/hast/test # zfs create -o volmode=3Ddev ztest/fbsdguestdisk0 - Start installing FreeBSD in the guest # sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d /dev/zvol/ztest/fbsdguestdisk0 -i -I FreeBSD-12.0-RELEASE-amd64-disc1.iso fbsdguest - Start to install - all default. The disk can be seen just fine, but then choosing either ZFS or UFS on the disk, will result in hastd quits ungracefully. In the guest it spews out: *** ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is pres= ent; to enable, add "vfs.zfs.prefetch_disable=3D0" to /boot/loader.c= onf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) kern.geom.part.mbr.enforce_chs: 0 -> 0 *** and then stalls (of course, since the device vanished). According to the documentation: https://www.freebsd.org/doc/handbook/disks-hast.html "There is no difference between using HAST-provided devices and raw disks or partitions." But that seems not to be the case - since it works fine if I skip HAST and configures the zpool directly on ada0p4 on one of the servers. Is it because I am using HAST on a partition? --=20 You are receiving this mail because: You are the assignee for the bug.=