From owner-freebsd-questions@freebsd.org Mon Mar 16 03:28:25 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 5A7B227FFF5 for ; Mon, 16 Mar 2020 03:28:25 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (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 48ghbD37MDz49JQ for ; Mon, 16 Mar 2020 03:28:24 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=QG4zSO2ovxjs/ZiKtmSm+c9fegUOuu3h+U07lSn+lUk=; b=muemNKzHzkSX1NLE5zKeF6MqSS TAGDyOXBQQuWzF3gw/dHnnU0uvOvOfbnoQ9J5a9pNv2mup+RYnPKGlt2JBQo19eHnM4+fhDJqa52v zG7VtKCCjSe64CylDqIkNLIfDHYscAt0ZbbFj5zgEXD+WqPddHOKcQjAvdlT3lVG6qSk=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jDgQQ-000N4x-Od for freebsd-questions@freebsd.org; Mon, 16 Mar 2020 10:28:22 +0700 Date: Mon, 16 Mar 2020 10:28:22 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: FreeBSD on AWS with root-on-zfs? Message-ID: <20200316032822.GA88516@admin.sibptus.ru> References: <20200310033243.GB170@admin.sibptus.ru> <20200310084330.GA4688@admin.sibptus.ru> <20200315055157.GA64075@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20200315055157.GA64075@admin.sibptus.ru> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 48ghbD37MDz49JQ X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=muemNKzH; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-7.41 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.956,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_QUESTION(1.00)[]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.35)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.88), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 03:28:25 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Victor Sudakov wrote: > Victor Sudakov wrote: > > Matthew Seaman wrote: > > > > Is anyone using FreeBSD as a EC2 instance, what would you do if you > > > > wanted a root-on-zfs AMI? > > >=20 > > > Colin Percival published some root-on-ZFS AMIs a while back -- see > > > https://lists.freebsd.org/pipermail/freebsd-cloud/2019-February/00020= 0.html > >=20 > > Good news. > >=20 > > >=20 > > > I've used these with great success. I haven't seen an announcement o= f a > > > 12.1-RELEASE version yet -- not sure what Colin's plans are, but I th= ink > > > the idea was to offer this layout as an additional set of the official > > > FreeBSD AMIs at some point. > >=20 > >=20 > > I've just launched an EC2 instance with "FreeBSD 12.0-RELEASE-amd64 ZFS > > (ami-054939ebd299da308)". It works! > >=20 > > I think I can freebsd-update it to 12.1 myself until a 12.1 AMI is > > available. > >=20 > > Thanks! And I should go and support Colin's endeavor. >=20 > One of the major advantages of the root-on-ZFS configuration is the > possibility to select a different BE from the loader prompt if something > goes wrong with the current BE. >=20 > On AWS, the loader prompt is inaccesible, so how can we utilize this > powerful feature? Answering my own question, "bectl activate" has the "-t" flag: If the [-t] flag is given, this takes effect only for the next boot. This does not work in bhyve for some reason (does not boot the temporary BE= ): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244838 but may work in AWS because it does not use bhyveload hopefully. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJebvJWAAoJEA2k8lmbXsY0hHwIALGuo43+kG1Si37FbmvRYEVQ VhC/P6vJq2s9Tw28uc63nckLuG2UMyPvhJUl9KLwlEX2Ig1ERA0wHLf24TV9tUFb GqquHjja9sLx5vA+CmOHF1t6bmBd6Sk1Ss9KyJ6bFan9hXLEE/RXp8Dx2QJt92Di iLoaOK3lWuMTS8hs6JUcAE7IaEEgp2689MXXi48K0Xc0pATCnN38ZVLQNBqjxp3u vk0us1DCXaeRJqhlrRZIJ5c+Zo6gJhUDme2o+0X/annx44n+/Ur55FaSwrNbPX/c cHmU8ed/yHXEe8a0c2tC/nuMKElWhzFq+A3qEHY9bzT80g/xuKWkXaR0iJVVXDw= =yt7Q -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--