From owner-freebsd-questions@freebsd.org  Tue Jan 31 21:11:58 2017
Return-Path: <owner-freebsd-questions@freebsd.org>
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 59A8BCCA497
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue, 31 Jan 2017 21:11:58 +0000 (UTC)
 (envelope-from maciej@suszko.eu)
Received: from archeo.suszko.eu (archeo.unixguru.pl [IPv6:2001:41d0:2:8316::1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 2288B938
 for <freebsd-questions@freebsd.org>; Tue, 31 Jan 2017 21:11:57 +0000 (UTC)
 (envelope-from maciej@suszko.eu)
Received: from archeo (localhost [127.0.0.1])
 by archeo.suszko.eu (Postfix) with ESMTP id 3474A15259;
 Tue, 31 Jan 2017 22:11:47 +0100 (CET)
X-Virus-Scanned: amavisd-new at archeo.local
Received: from archeo.suszko.eu ([127.0.0.1])
 by archeo (archeo.local [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Vv28_YNfMjLN; Tue, 31 Jan 2017 22:11:47 +0100 (CET)
Received: from leo (89-67-192-210.dynamic.chello.pl [89.67.192.210])
 by archeo.suszko.eu (Postfix) with ESMTPSA id A1BB91524E;
 Tue, 31 Jan 2017 22:11:46 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suszko.eu; s=dkim;
 t=1485897106; bh=FUV81XsDaUJWdDt/iL5hfAZmAgB9W/CgqUTZkkpuSUQ=;
 h=Date:From:To:Cc:Subject:In-Reply-To:References;
 b=YoiBZRE+39Lvh+eP3wSJuZQ3NY/RTf66nF4l2wrF90PMb/yO7/LiR8u/PDdiEyezU
 RI0ksnJLTYLQtwX9sqg6HVWBOhXjDDUElZouIpoIjcpX3CLLyplyZ/JHHdhPHO/DWy
 gd7IYEC7YWzLl0deXNwIkkYMJMqbGprL+UnqcGvM=
Date: Tue, 31 Jan 2017 22:11:43 +0100
From: Maciej Suszko <maciej@suszko.eu>
To: Sergey Matveychuk <sem33@yandex-team.ru>
Cc: freebsd-questions@freebsd.org
Subject: Re: boot from second disk
Message-ID: <20170131221143.203b2f6a@leo>
In-Reply-To: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru>
References: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru>
X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 boundary="Sig_/GsHer6NZ3dla/qIyFXkbgn1"; protocol="application/pgp-signature"
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Jan 2017 21:11:58 -0000

--Sig_/GsHer6NZ3dla/qIyFXkbgn1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Sergey Matveychuk <sem33@yandex-team.ru> wrote:
> Hi.
>=20
> 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=20
> https://www.freebsd.org/doc/handbook/geom-mirror.html
> With one difference: I use GPT partitions (as default in the FreeBSD=20
> intaller):
> # gpart show ada0
> =3D>       40  351651808  ada0  GPT  (168G) =20
>           40       1024     1  freebsd-boot  (512K)
>         1064  343931904     2  freebsd-ufs  (164G)
>    343932968    7718879     3  freebsd-swap  (3.7G)
>=20
> And I stuck on "Restart the system, booting from ada1". I don't know
> how to do it remotely (IPMI is not available there).
>=20
> I tried echo "1:ad(1,a)/boot/loader" > /boot.config
>=20
> But it does not look work. What should be correct content of=20
> /boot.config for GPT?

If you want to boot from second disk (bios drive 1), try=20
1:ad(1,p2)/boot/loader in boot.config as you use GPT scheme.
--=20
regards, Maciej Suszko.

--Sig_/GsHer6NZ3dla/qIyFXkbgn1
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQRBv6xO7mzN+RcEaiUKKRSTSXuIagUCWJD9jwAKCRAKKRSTSXuI
asFQAJ4nlKHXONCDkaDJhyOb8XpqH+j5kgCffO/HgYOQaBN34luhzb5UKhN29FM=
=cJ8b
-----END PGP SIGNATURE-----

--Sig_/GsHer6NZ3dla/qIyFXkbgn1--