From owner-freebsd-questions@freebsd.org Sun Apr 5 17:36:27 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 BC7A72BD2BA for ; Sun, 5 Apr 2020 17:36:27 +0000 (UTC) (envelope-from karlo@klarinet.osamsb.hr) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 48wLSL3N02z4ZFY for ; Sun, 5 Apr 2020 17:36:18 +0000 (UTC) (envelope-from karlo@klarinet.osamsb.hr) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0944A537; Sun, 5 Apr 2020 13:36:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 05 Apr 2020 13:36:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= klarinet.osamsb.hr; h=from:to:subject:mime-version:content-type :date:message-id; s=fm3; bh=IdAjeqPyGJgJm9hRUktz2Dxye2sxyivxEppO 4IHT0d0=; b=HqKT30/70JFom7/0FdniSxvb/HYLjjyzKMR3+YmCOc3Br7V262x0 fztV/TtSBE75zAHtnGBnYuvNF/PYqWIiKmpKiSKCsMKKUsgusIX18zNrLvJnUpqp SBuHBHOUZ3c5mgZWMv1XlPIpnuba0WYEmnt9qKBqO8NCrAYVhAZbEu5kHNvHlkLE BsobtUdJYbRFmcmvZvE93RPDLVknwymfTDa4Jl7wkoTHPuNAQOTuEJH89IbC2oj7 bD4ZsFqYGpLLj870lE2OOxzM2wd+mHaTJXVGMDb3pp2IpbbPOPcLFQwGukmjTukg QCglG+SDKugmR1oEh1eM9MJBUmIwrodtiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=IdAjeqPyGJgJm9hRUktz2Dxye2sxy ivxEppO4IHT0d0=; b=qH/U8oCi07AD+AX3jDhRWE8ubQDj2sQCsk/NcV05aj/SF VROo1VcU+0ZTUmcf0L+G32pGOZ6AdUMRzAqERTA5yrmRfOeaGMhJEx/Fj9WQEsgH TVtswG4n1msUQjniMJ8F65osynz/Q1ERgb4G9WsGlyPhFEKMnJxBR5+CXXzQYqo9 Diix+EUrT5Jshb8b2FaOkq1HbckQ3LhJmqThQWHuRoZuY4S//P0vBC49dJBKy+AJ pZZWddFKQUMFFhNjreq+FpiH14Kk8peF4TCDXmn5qIH/D/hfkVMhz1tjL2dZt6NJ lykk+S+t3/ZOkJ2ALIjKkAgf5VS4LCyRz2U0Mkmug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddugdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffugggtfffksehttdeftddttd dvnecuhfhrohhmpedfmfhrrghljhcumfgrrhhlohdfuceokhgrrhhloheskhhlrghrihhn vghtrdhoshgrmhhssgdrhhhrqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkrghrlhhosehklhgrrhhinhgvthdrohhsrghmshgsrdhhrh X-ME-Proxy: From: "Kralj Karlo" To: freebsd-questions@freebsd.org Subject: =?UTF-8?Q?Mirroring_a_root_filesystem_from_one_computer_to_another_for_a?= =?UTF-8?Q?vailability?= MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 05 Apr 2020 17:36:03 +0000 Message-Id: <20200405173605.CF1653280060@mailuser.nyi.internal> X-Rspamd-Queue-Id: 48wLSL3N02z4ZFY X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klarinet.osamsb.hr header.s=fm3 header.b=HqKT30/7; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=qH/U8oCi; dmarc=none; spf=pass (mx1.freebsd.org: domain of karlo@klarinet.osamsb.hr designates 64.147.123.25 as permitted sender) smtp.mailfrom=karlo@klarinet.osamsb.hr X-Spamd-Result: default: False [-4.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[klarinet.osamsb.hr:s=fm3,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[osamsb.hr]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-3.50)[ip: (-9.84), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.69), country: US(-0.05)]; DKIM_TRACE(0.00)[klarinet.osamsb.hr:+,messagingengine.com:+]; SUBJ_EXCESS_QP(1.20)[]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[] 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: Sun, 05 Apr 2020 17:36:27 -0000 When hardware breaks, I generally want to fix it or switch to other hardware until I fix the first hardware. I tend to break things further when I do either of these, so I have decided to get at least two of each hardware so that I can easily move things off one broken hardware until I fix it. I would like set up two machines with practically identical hardware and keep their data the same so that when one breaks I can start using the another. I want to mirror all filesystems, including root, and I do not need failover to happen automatically. In fact, I would prefer to keep the spare hardware off most of the time, and I am fine with the mirror being out of date. For context, this is my personal computer at home. My inclination is to set up each machine with two separate FreeBSD systems on separate zpools on separate hard drives, use one for the main system, and use one just for mirroring. (The mirroring system would use two small cheap disks in a mirror.) When I want to switch which system is the master, I would change the boot device in the BIOS. Is there a better way? For example, is HAST appropriate? I am specifically curious about this detail: Since I want to mirror the root filesystem, it seems that the only safe way is to have a second root filesystem. The second could be in RAM or on another dataset or on a separate hard drive. It could be a copy of first filesystem or a totally separate filesystem. What is an easy way to set this up, or is there a safe way that does not require a second root system? Also, I wouldn't mind thoughts on networking, but I am confident that the networking will be straightforward, so I'm mostly wondering how to mirror the hard drives.