From owner-freebsd-questions@freebsd.org Wed Jun 3 05:27:38 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B6B4332D30B for ; Wed, 3 Jun 2020 05:27:38 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "xray.he.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49cHVJ5YKmz4l5y for ; Wed, 3 Jun 2020 05:27:36 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 2 Jun 2020 22:27:30 -0700 To: freebsd-questions@freebsd.org From: David Christensen Subject: Debian 9.12, VirtualBox 6.1, FreeBSD 12.1 RELEASE, and lost pools Message-ID: <3e25b34e-678d-4632-1246-f49316f77fa4@holgerdanske.com> Date: Tue, 2 Jun 2020 22:27:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49cHVJ5YKmz4l5y X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [2.29 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.05)[0.052]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.59)[0.591]; DMARC_NA(0.00)[holgerdanske.com]; NEURAL_SPAM_LONG(0.75)[0.749]; RCVD_IN_DNSWL_NONE(0.00)[184.105.128.27:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 05:27:38 -0000 freebsd-questions: I have a Debian machine: 2020-06-02 22:01:52 dpchrist@tinkywinky ~ $ cat /etc/debian_version && uname -a 9.12 Linux tinkywinky 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux I have installed VirtualBox per Oracle's instructions: https://www.virtualbox.org/wiki/Linux_Downloads 2020-06-02 22:14:46 root@tinkywinky ~ # dpkg-query --show virtualbox-6.1 virtualbox-6.1 6.1.8-137981~Debian~stretch I have created a virtual machine and installed FreeBSD: Select start-up disk FreeBSD-12.1-RELEASE-amd64-dvd1.iso Welcome to FreeBSD Boot Multi user Welcome Install Keymap Selection Continue with default keymap Set Hostname vf1.tracy.holgerdanske.com Distribution Selection Partitioning Auto (ZFS) Pool Type/Disks stripe: 1 disk stripe ada0 Pool Name vf1_zroot Force 4K Sectors YES Encrypt Disks NO Partition Scheme MBR (BIOS) Swap Size 1g Mirror Swap YES Encrypt Swap NO >>> Install Root password ******** Network Configuration em0 Configure IPv4 Yes Use DHCP Yes Configure IPv6 No Network Configuration - Resolver Configuration Search tracy.holgerdanske.com IPv4 DNS #1 192.168.5.1 IPv4 DNS #2 Time Zone Selector Region America -- North and South Counties in America -- North and South Country or region United States of America United States of America Time Zones Pacific Time & Date Time & Date Services to start at boot sshd, ntpdate, ntpd System hardening options Add users Yes Username dpchrist Full name David Christensen Uid 13250 Login group dpchrist Invite into other groups wheel Login class default Shell sh Home directory /home/dpchrist Home directory permissions Use password authentication yes Use empty password no Use a random password no Password ******** Lock out no OK? yes Add another user no Final configuration Exit Open shell No Complete Reboot The VM works and I can log in via SSH: 2020-06-02 22:03:11 toor@vf1 ~ # freebsd-version && uname -a 12.1-RELEASE FreeBSD vf1.tracy.holgerdanske.com 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64 But the boot pool 'bootpool' is missing: 2020-06-02 22:06:35 toor@vf1 ~ # zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT vf1_zroot 3.75G 545M 3.22G - - 2% 14% 1.00x ONLINE - bootpool is available for import: 2020-06-02 22:06:39 toor@vf1 ~ # zpool import pool: bootpool id: 13757577973895316021 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: bootpool ONLINE ada0s1a ONLINE And I can import it (with the force option): 2020-06-02 22:06:50 toor@vf1 ~ # zpool import -f bootpool 2020-06-02 22:07:38 toor@vf1 ~ # zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT bootpool 1.88G 147M 1.73G - - 0% 7% 1.00x ONLINE - vf1_zroot 3.75G 545M 3.22G - - 2% 14% 1.00x ONLINE - 2020-06-02 22:07:41 toor@vf1 ~ # zfs list bootpool NAME USED AVAIL REFER MOUNTPOINT bootpool 146M 1.61G 146M /bootpool But the next time I reboot, bootpool is gone again. The same thing happens with other pools that I have created. STFW I see that somebody else had the same problem and used the same fix in January 2020, but there is no mention of the problem reoccurring on every boot: https://forums.freebsd.org/threads/no-boot-directory.73703/ Ideas? David