From owner-freebsd-questions@freebsd.org Fri Jul 20 07:04:41 2018 Return-Path: Delivered-To: freebsd-questions@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 F3BA0103485B for ; Fri, 20 Jul 2018 07:04:40 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E1E770C7D for ; Fri, 20 Jul 2018 07:04:39 +0000 (UTC) (envelope-from ml@netfence.it) Received: from guardian.ventu (wilbur.aviozzano-guglielmozamboni.it [88.147.119.19]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id w6K6w7WT019021 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 20 Jul 2018 08:58:09 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host wilbur.aviozzano-guglielmozamboni.it [88.147.119.19] claimed to be guardian.ventu From: Andrea Venturoli Subject: Suddenly "BTX halted" on boot To: freebsd-questions@freebsd.org Message-ID: <9144867a-1a15-573c-1796-b94c8344b767@netfence.it> Date: Fri, 20 Jul 2018 08:58:07 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.83 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 07:04:41 -0000 Hello. I've got a server which has been working for years; this morning I rebooted it and it wouldn't come up (showing the message in subject). Luckily, this is a ZFS RAID1 setup, so entering the BIOS and choosing to boot from the other HD got me up and running. I don't have any idea how this could have happened, smartctl says both disks are good and I've never seen errors in the logs. "zpool status" also says everything is fine. # gpart show /dev/ada0 => 40 1953525088 ada0 GPT (932G) 40 1024 1 freebsd-boot (512K) 1064 67108864 2 freebsd-swap (32G) 67109928 1886415192 3 freebsd-zfs (900G) 1953525120 8 - free - (4.0K) Same for ada1. I believe I should solve, by issuing the following command: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 However I thought I'd ask for confirmation before screwing everything. I guess ada0 is always where I'm currently booting from, right? Of course I have dumps and backups, but I'd rather not need to use them this time :) bye & Thanks av.