From nobody Thu Nov 23 01:41:57 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SbLW51nywz520Bv for ; Thu, 23 Nov 2023 01:44:01 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from webmail5.jnielsen.net (webmail5.jnielsen.net [69.87.218.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.freebsdsolutions.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SbLW31QyBz3XMS for ; Thu, 23 Nov 2023 01:43:59 +0000 (UTC) (envelope-from lists@jnielsen.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of lists@jnielsen.net designates 69.87.218.172 as permitted sender) smtp.mailfrom=lists@jnielsen.net; dmarc=none Received: from smtpclient.apple ([IPv6:2607:fa18:e2fe:2d6a:59a8:49dc:4a79:6e63]) (authenticated bits=0) by webmail5.jnielsen.net (8.17.2/8.17.1) with ESMTPSA id 3AN1gRYk018694 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 22 Nov 2023 18:42:35 -0700 (MST) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail5.jnielsen.net: Host [IPv6:2607:fa18:e2fe:2d6a:59a8:49dc:4a79:6e63] claimed to be smtpclient.apple Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: John Nielsen List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: How to upgrade a carp pair from 13 to 14 given the pfsync protocol changed ? Date: Wed, 22 Nov 2023 18:41:57 -0700 Message-Id: <72A77920-E4EC-4553-A99A-21A0B1BD5E09@jnielsen.net> References: <753f0ad9-bc19-4c81-ba78-1ed67aab8b99@twisted.org.uk> Cc: FreeBSD Stable Mailing List In-Reply-To: <753f0ad9-bc19-4c81-ba78-1ed67aab8b99@twisted.org.uk> To: Pete French X-Mailer: iPhone Mail (21B91) X-Spamd-Result: default: False [-1.57 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.77)[-0.775]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:6364, ipnet:69.87.218.0/24, country:US]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[jnielsen.net]; HAS_XAW(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4SbLW31QyBz3XMS X-Spamd-Bar: - > On Nov 21, 2023, at 9:42=E2=80=AFAM, Pete French wro= te: >=20 > =EF=BB=BFI spotted this in the release notes, but am unsure how to now act= ual do this. I have two machines running carp, as a failover pair, and I nor= mally upgrade BACKUP, reboot, switch to MASTER, and do the other and flip ba= ck. >=20 > But I dont quite see how to do this from 13 to 14 - my worry is that when t= he upgraded machine comes back up, it will just take on MASTER and I will ha= ve two MASTERs. >=20 > I see that it's possible to make the talk the old protocol, but then how d= o I move to the new protocol ? Specify the old protocol in rc.conf on both machines and do the upgrade one a= t a time. Once both are upgraded, stop pfsync on the standby machine, change= the version on the active machine, restart pfsync on the standby machine al= so with the new version.