From owner-freebsd-questions@freebsd.org Wed Sep 6 21:03:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01CA0E171B8 for ; Wed, 6 Sep 2017 21:03:03 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp3.cretaforce.gr (smtp3.cretaforce.gr [138.201.155.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL SHA256 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6053F8388F for ; Wed, 6 Sep 2017 21:03:01 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL SHA256 CA" (not verified)) by smtp3.cretaforce.gr (Postfix) with ESMTPS id 1D8AB20787 for ; Wed, 6 Sep 2017 23:55:50 +0300 (EEST) Received: from 192.168.2.3 (athedsl-279532.home.otenet.gr [85.73.139.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id E20622734B for ; Wed, 6 Sep 2017 23:55:49 +0300 (EEST) From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: problem booting from 2nd drive Message-Id: <4B828DE3-C784-45A9-A01B-F944DAFE1601@cretaforce.gr> Date: Wed, 6 Sep 2017 23:55:48 +0300 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2017 21:03:03 -0000 I used dump/restore commands to copy a custom freebsd 11.1 to a new = server. After I restore the files I create gmirror (RAID-1) and copy the = bootcode to both disks: gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1 When I select from BIOS to boot using 1st disk (ada0) then it boots = without issue. If I select to boot from 2nd disk (ada1) then it hangs = and restarts again and again. gpart show =3D> 40 7814037088 ada0 GPT (3.6T) 40 472 1 freebsd-boot (236K) 512 8388608 2 freebsd-ufs (4.0G) 8389120 134217728 3 freebsd-swap (64G) 142606848 33554432 4 freebsd-ufs (16G) 176161280 134217728 5 freebsd-ufs (64G) 310379008 33554432 6 freebsd-ufs (16G) 343933440 1073741824 7 freebsd-ufs (512G) 1417675264 6396361856 8 freebsd-ufs (3.0T) 7814037120 8 - free - (4.0K) =3D> 40 7814037088 ada1 GPT (3.6T) 40 472 1 freebsd-boot (236K) 512 8388608 2 freebsd-ufs (4.0G) 8389120 134217728 3 freebsd-swap (64G) 142606848 33554432 4 freebsd-ufs (16G) 176161280 134217728 5 freebsd-ufs (64G) 310379008 33554432 6 freebsd-ufs (16G) 343933440 1073741824 7 freebsd-ufs (512G) 1417675264 6396361856 8 freebsd-ufs (3.0T) 7814037120 8 - free - (4.0K) The message I get during boot is: gptboot: invalid primary GPT header gptboot: invalid backup GPT header gptboot: unable to load GPT Any idea what the issue could be?