From nobody Mon Jan 29 00:36:59 2024 X-Original-To: questions@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 4TNTs00Kn0z57dwh for ; Mon, 29 Jan 2024 00:37:08 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02acsn2080b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7ea9::80b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNTrz0CP6z4q0t for ; Mon, 29 Jan 2024 00:37:07 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=Pq6GtKtH; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 2a01:111:f400:7ea9::80b as permitted sender) smtp.mailfrom=mirror176@hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PqVnPZlYBMCFpKWN5MAh5mt8EfnxALIVLbS6D0QiMx//jZYJy7xBNpSfHAR6gSwgMnW0cmg5iGkZdkICLs9/YlEDAwS/a0eXyegcuAhPLqoKoxzRp+sBIER2fgVP/DqjFdeIPv9rNLyQbnHiSfgpdhYkzOrPZYWlyAbqYy2WVyXPYyRvJf6xK8SaZHl7+XWiItA8TVFvE1325zDsRpnd65FSBootmYu9URSAayDRpNBQQNVC4E2PaH0aKpkrOZzIlLnUsG3fdmHVx/+O7lch9X7OCzIZFrM4GGQpRpHgt+vqoyR0AuUHl11MqPi0ep2wrI5WMWCgMb15g0PbflJ57A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jyMY5ohNxkQWCK6lUEAVBb2TH8e//i4+9Cev3KFfK38=; b=POvyVaRJ3QVlKLdBowC9p4Y7bnEE2APht6iUjZF1mvSerBUIBXxw2fqmODfg+gDqob1tA57pUHQucTMDHbJV9QvRHLV7eZIeYsLC7h3Fg0NLIzW0jcLkhxLhJiucbDf7A6SlaZWF8Msk80fsAd15UyZLKon0Umoz/LjpLa4Rk10MPy2cT7tmna1iuRp6thxjRkGar2j2f+8UHIdsohYNVdubCKnmssY7lDL8zQGlzMoE5codZPjXmjqPjpCMq6dugTz2xsNuxNoxiQwGCdTYNhlkw0XsHComYREivyibsQjyC/vRzp3gtxOBOadJzPTKEjqywd5TbTWpZy+n1r+bhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jyMY5ohNxkQWCK6lUEAVBb2TH8e//i4+9Cev3KFfK38=; b=Pq6GtKtH9nU9Bd2YKv8KM+OPj/MXToNyj0gkFEpE34e1qwMBkmYHcmQLm8gnm6uqdtyB+dup4p2+g7u6fHr+6RrH5kI9AzsKaiNfWKlrVq1o1p69J3kMbH3P0/nb1mMNcaZWkEdUNHnlAgJ2Ip24ScuJcO2+eD84YP8ILgq8WNK2Voo7WZbNZfG4b5RiLauQZOgxlCEpMMIZpaHgjxHRs0NkQeatRW89kNPPs37V+VhTtbcfdTHeduuXvwgEdgLxflBbQYWgUWsTG6lch2PPUwLnKdjtw7EO2+qC5pI9ZWAo7I4o+tHMyHflIYwRDEWandUZnycaMWUH3kxJCSwlqA== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by CH3PR11MB8467.namprd11.prod.outlook.com (2603:10b6:610:1bd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 00:37:02 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::ea8f:5d06:d3e8:c9cf]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::ea8f:5d06:d3e8:c9cf%6]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 00:37:02 +0000 Message-ID: Date: Sun, 28 Jan 2024 17:36:59 -0700 User-Agent: Mozilla Thunderbird Subject: Re: Upgrade 8.4-STABLE to 14-STABLE Content-Language: en-US To: questions@freebsd.org References: <75DCCF1C-BA33-4917-988E-5B92955D1D17@gushi.org> From: "Edward Sanford Sutton, III" In-Reply-To: <75DCCF1C-BA33-4917-988E-5B92955D1D17@gushi.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [5a/8dLW6uI8IGbeEWRapnC7wI94vf9Q5] X-ClientProxiedBy: MN2PR04CA0018.namprd04.prod.outlook.com (2603:10b6:208:d4::31) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <7daca832-52cb-4af6-9882-93c6bad990d2@hotmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|CH3PR11MB8467:EE_ X-MS-Office365-Filtering-Correlation-Id: d8aa8cb9-5caa-4ccb-51c4-08dc206268bb X-MS-Exchange-SLBlob-MailProps: Mga27o8vReGfIc1VICO0dotZZh0YGuDpVPFyugRQOYUdEZUhm22IpHF6Wi6nqsZPwmFjtUiBFPmXPHZl4hz5d3Ota/UOQxyjlyEclHY/B+Yn3q3U9wP7Sc5rHy1VoVZ/Z+lPVO9pNVWgiY7q/fYx0i2xmtAOUUQE6kCv6q4spC2ECJ2K2RX/pP8LqVk+9v3+EaOey95p4s0RHvfhiYofmoK5+4p7utIzkGEFvck7DuQEPvCS+1mqNnhOeSq4PbLD2W17JActUobRo3/0Ak9V5aAZM/CHBHTyt1hmTptcAlB93tysUitQOXISk0tvkgcuThsnV9Jm14DZI2ojc5oEuS7Zq8iAsNFJ4Fw9QzVb9oNScJpa4bWleOk+/FvqXL6qQD3SEuVhvwga2mtHqcNZnHg17ii1Iz77x5LaQiZ25JAcdE7N+OAtaM2H2XUb9lM9yfMdoITK8QoMp2QcLR4b710O+82lvROKKmniW0JRCEC8ou1lAgZYQQfKz1o6lOGkRp3mMx9tkfteJU45utlJKUTg2s/BkXDcZiV6uGLxl7WNGi761shoqS68LQAdSPgv7uFplXA5Ybvs772ov6ZQxnf5E+SXpR81BapDQ+3r0rWyp+QYTvNx7QUAyz2xjZc22BGvgCQVrewIpEAwNfdVVPObwf+1l8hnvOAn0rVkgda9vs3Q7RP3Mt0eYeefNyiECb78VuogmP5XRjs/lW9Ig467idNkpov33RbdRgpcFkOl33PzjLxqln1PEZtIQsDq4aUyGconHJPJr4m9+zuJaXz0eJWVSyjBV0/uSyUBSjSrORnkVn4XUg== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J47UmUE7BO5EPb30rGKEnJ1LNgwC2c3JUGq2TunmZO09X63vpYxiToR3S6+SSIhtfaF4owdhttmnwfVG639TtWRektsxD27Y+VuaOzKH3LiuwLfi53pdIRFc7bR9bdg/iVw5mylGWUbzjWMT/imcz3Idup1TDHw/0L13EykgpR10KAeREJuse3fjKXBB53fig4MhWxhoAx7CO0AyfGCxjqXy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2xCT2NUK3luV0lI?= =?utf-8?B?ekkrVWROQlBQMFJ2b1ZpdkJBdDJJRmhaZG1XMHJIY29OOGJJekdpcHhHODhM?= =?utf-8?B?aXhNaXYwdC8vNHJRRFpKRTdSUUwvMzR1Nys5YUJsT1FtMXRvUm1BNUVOUk9H?= =?utf-8?B?cEZtODV4amljeFBUdXpOVWpvaXI2QVBiL1RZMDdTbkxkaVlJR1hSYmZzbHAy?= =?utf-8?Q?9jZ06aF5LK7J1xDutXRHseR18zZHgzDrRmJ9R3Yg8HJM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d8aa8cb9-5caa-4ccb-51c4-08dc206268bb X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 00:37:01.9387 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8467 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; FREEMAIL_FROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[hotmail.com:+] X-Rspamd-Queue-Id: 4TNTrz0CP6z4q0t On 1/28/24 17:02, Dan Mahoney wrote: > > >> On Jan 26, 2024, at 23:55, Odhiambo Washington wrote: >> >> Is there a way to upgrade 8.4-STABLE to 14-STABLE, or even change it to 14-RELEASE? > > Most people are saying what my own thought would be, but I do have a "war story" to share. > > For us, preserving configuration did not matter, our configuration management was done by a tool like Puppet or Chef or Ansible. > > Dayjob has several single machines in very remote places, that were built with a too-small boot partition for FreeBSD-update to work (some had been in place since 5.x). And we needed to do upgrades during a global pandemic, when the normal "go on-site to upgrade" process would not have worked. Maybe your own situation is the same. > > Some sites had remote consoles, some only remote serial consoles. Availability of PXEboot was minimal, and bios access was even more minimal. > > Where there *was* remote hands, they were much more comfortable installing Linux. > > What worked for me was extracting the contents of an MFSBSD build over into my /boot direclory, and pumping my existing ip addresses, netmask, and gateway into /boot/loader.conf > > On reboot, I had the ability to SSH in, clear out my disks, and start clean. > > It took me a long time to mentally reach that point, and I only got it after I was sure all the other options (pxe boot an installer, freebsd-update, make buildworld, get-a-rescue-shell and just extract base.txz over my main filesystem). Thanks to this being the 21st century, I was able to test a lot of my procedures on VMs of various flavors like VirtualBox and VMware. So much nicer when you don't need a second machine or disks being cloned/backup+restored just to try out the process. I'm messing with a test run to see where I could get on virtualbox under windows10 going to an externally attached usb ssd but it feels like I'm being penalized noticeably by that setup. > If you're still on 8.x, you may still be at the point where you have separate /usr, /var, and / partitions, and at some point, one of those will grow beyond what you've done. So even if the upgrades all work, you're in a situation that will burn you (kernels and /boot partitions keep getting bigger, until modern BSD where it's all one partition). Years ago I thought I should prepare a talk about only partitioning <= 1/2 of a drive to avoid this among other problems. It would still serve a purpose to do so today with things like COW (such as what zfs uses) harming performance, always knowing you have room for a temporary backup, and room to rearrange layout in case of 4k alignment mistake, efi/swap/main area resizing, toggling encryption, adding/removing disks to a raid freely without a second set of disks being needed, or giving it up and growing partition space into it. No one wants to keep free space on disks, let alone >50% so it would likely be an unpopular chat. > ==== > > With modern FreeBSD *most* of your configuration comes down to what's in /usr/local/etc, and /etc -- these tar up really easily, as well as /usr/home or /home or whatever. /boot/loader.conf also comes to mind; I'll check my install notes I started making on a recent 14 setup attempt to get all my goodies listed. > If you have database stuff like postgres or mysql, obviously there's that directory as well. > > Your base packages, you can list out without dependencies with "pkg leaf". If pkg leaf doesn't work, copy a modern /usr/local/etc/pkg.conf from another machine to get that command (or run the command it is aliased do). Internet pkg repositories don't exist anymore for such old releases though the install media included a few packages on it (dvd usually had the most that I recall). 8.4 should have had pkg introduced but was more of an option to migrate to. My current steps I'll be posting mentions downloading an archived ports tree to `make install` it to avoid missing pkg as a package or needing any package for cvs/ctm/svn/git as old servers have been getting turned off and newer stuff like git wasn't there in base by default. > ==== > > That said... > > If the disk sizes *are* good (freebsd-update doesn't check), I might *try* to get there with freebsd-update, but with the knowledge that it's going to take me like a dozen leap-of-faith reboots, and more often than not, I have found that freebsd-update finds *some* chance to lose the linker and run into a long string of "cp: invalid argument" shooting itself in the foot. I've had this happen. If I were clever, I might keep a copy of base.txz on the disk beforehand so I could unbreak things. (It's for this reason that I put in a bug that put ssh/scp into /rescue, where there's no copy of ftp.) > > Also, if I were going to go this way, I would grab the freebsd-update script from a *modern* system, there are bugs in it that were fixed, that were present in your version. Is there a reason why freebsd-update does not update itself before doing other work like what pkg does? > Note well that I say what *I* might do in this case, not what you *should* do. > > Hope this helps, or at least lends some perspective. > > -Dan Thanks for sharing experiences. I've only ran freebsd update once or twice and became too annoyed at the archaic task of manually merging files that I found very easy to get done with mergemaster and mergemaster handled many more things automatically with optional switches as long as I'd tolerate the build time proceeding it (generally easy when its a background job).