From owner-freebsd-questions@freebsd.org Tue Jan 31 17:44:05 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 B0AC0CCA882 for ; Tue, 31 Jan 2017 17:44:05 +0000 (UTC) (envelope-from sem33@yandex-team.ru) Received: from forwardcorp1h.cmail.yandex.net (forwardcorp1h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::e5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C27014A5 for ; Tue, 31 Jan 2017 17:44:04 +0000 (UTC) (envelope-from sem33@yandex-team.ru) Received: from smtpcorp1p.mail.yandex.net (smtpcorp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:10]) by forwardcorp1h.cmail.yandex.net (Yandex) with ESMTP id 0A19720C4E for ; Tue, 31 Jan 2017 20:44:02 +0300 (MSK) Received: from smtpcorp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtpcorp1p.mail.yandex.net (Yandex) with ESMTP id 084376E40B0A for ; Tue, 31 Jan 2017 20:44:02 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:401:7406:43b4:9626:4174]) by smtpcorp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id HiWqKPjETK-i1ku2X5J; Tue, 31 Jan 2017 20:44:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1485884642; bh=71VoQ56WmvmhcuArO2sWjPP2IdQkN/1GoUAACcCUWAc=; h=To:From:Subject:Message-ID:Date; b=IZs01M/fxh9e7D7QEnI7zPLyNjfDZT++tncTUoQn8gFPWTqAtSy2jLTFXxRQYodBb gJYxg21MsoKI7gJIINwjGvi+noUZo3xRAfNQGFSYshsHi9TgqAU+MO68tgyHRA4AwE TIlb4i5Q/rhmdXbrBUCqimZbhmFJF7MPbOvpJXKI= Authentication-Results: smtpcorp1p.mail.yandex.net; dkim=pass header.i=@yandex-team.ru To: freebsd-questions@freebsd.org From: Sergey Matveychuk Subject: boot from second disk Message-ID: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> Date: Tue, 31 Jan 2017 20:44:01 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 31 Jan 2017 17:44:05 -0000 Hi. I set up FreeBSD 11.0 on first disk and next I added second disk and I want to do a mirror remotely. I followed instructions on https://www.freebsd.org/doc/handbook/geom-mirror.html With one difference: I use GPT partitions (as default in the FreeBSD intaller): # gpart show ada0 => 40 351651808 ada0 GPT (168G) 40 1024 1 freebsd-boot (512K) 1064 343931904 2 freebsd-ufs (164G) 343932968 7718879 3 freebsd-swap (3.7G) And I stuck on "Restart the system, booting from ada1". I don't know how to do it remotely (IPMI is not available there). I tried echo "1:ad(1,a)/boot/loader" > /boot.config But it does not look work. What should be correct content of /boot.config for GPT?