From owner-freebsd-stable@FreeBSD.ORG Sun Sep 21 04:39:22 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D205916A4B3 for ; Sun, 21 Sep 2003 04:39:22 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F20343FF7 for ; Sun, 21 Sep 2003 04:39:21 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h8LBclJK048641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Sep 2003 12:39:17 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h8LBclX6048640; Sun, 21 Sep 2003 12:38:47 +0100 (BST) (envelope-from matthew) Date: Sun, 21 Sep 2003 12:38:47 +0100 From: Matthew Seaman To: Alban Hertroys Message-ID: <20030921113847.GA48391@happy-idiot-talk.infracaninophile.co.uk> References: <20030921104920.GB47741@happy-idiot-talk.infracaninophile.co.uk> <20030921111334.94A6A410@solfertje.student.utwente.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <20030921111334.94A6A410@solfertje.student.utwente.nl> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Jacob cc: stable@freebsd.org Subject: Re: upgrading X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 11:39:22 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 21, 2003 at 01:13:11PM +0200, Alban Hertroys wrote: > On 21 Sep, Matthew Seaman hit a keyboard in the following places: > > # shutdown -r now >=20 > Hmm, I usually prefer to do just: #shutdown now > so that I end up in single user mode immedately. I usually check 'ps' to = see > whether no daemons are running (fleeing?) that should have died. > This method has the effect that you're still running the same kernel, > but I'm now unsure whether that's a good or a bad thing. >=20 > If you reboot (with '-r'), you are booting a system where the kernel is > upgraded, but the rest of the system isn't. That could cause startup > scripts to fail and the like. Uh... That's the whole point. You've just installed a new kernel and you need to reboot using that kernel to make sure it works. If the new kernel fails to boot, it's fairly simple at this stage to back out to the previous kernel, boot back up to multiuser and try again. =20 Doing an installworld before you've verified that the kernel is properly bootable could get you stuck up a gum tree -- there's no easy way to undo a 'make installworld' and you'ld probably be forced to recover the system from backup. However, you don't want the system to boot all the way up to multiuser immediately as that would give you a new kernel and an old world. Hence the reboot into single user step. =20 > OTOH, if you don't, are you using the installed install tools or the > upgraded ones (which may require the new kernel) when running > installworld? make installworld is very carefully written to be able to succeed even if there is a fairly large jump in versions between what's installed and what's due to be installed. Even so, sometimes you need to take extraordinary steps: these will be detailed in UPDATING, but usually come down to running 'mergemaster -p' before you do your 'make buildworld'. =20 > I'm getting a bit confused here... >=20 > > (Various output will scroll past. When prompted for what shell to > > run, just hit return) > >=20 > > # fsck -p > > # swapon -a > > # mount -a >=20 > Careful there, you don't want to mount NFS mounts and the like. I > usually do (depends on your partitioning): >=20 > mount -u / > mount /tmp > mount /var > mount /usr >=20 > I usually leave out /home and other mount points that aren't needed by > installworld, so that they can't get corrupted if something gets > screwed up (likely by me). You can't pick up any NFS mounts in single user -- the network hasn't been configured yet. But, yes, some people will want to be extra careful and run variants on the basic process. You might find a command like: # mount -a -t ufs,mfs handier, although it will probably still pick up your /home. =20 > Looking at the mount man page, you could also create an alternate > "minimal" fstab file, and do mount -a -F . > I think I'll have a (f)stab at that... ;) That's certainly a possibility, but I think it would be overkill for most people. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/bY3HdtESqEQa7a0RArI7AKCNitYGNhPgB2YxI4Xt5RZdA8J5HACfWvw2 tQY95YywlWKeP8AI8w5TrBo= =fPUG -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--