Subject: booting two versions of NetBSD from single logical disk?
To: None <netbsd-users@netbsd.org>
From: Jeff Rizzo <riz@tastylime.net>
List: netbsd-users
Date: 04/11/2005 20:44:01
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig553D4DC63EB2D2DCE8B98CAE
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

I think I'm having a problem of imagination here, but I'm trying to
figure out a way to boot two different versions of NetBSD from a single
logical disk which is a raid1 mirror (using raidframe).

What I have:

a PC-type system with serial console (and no remote BIOS access) in a
colo 50 miles from where I live
two hard drives in a raid-1 configuration (and no way to easily add drives)

This system is currently running NetBSD 1.6K, and I'd like to upgrade
the system to something newer (ipf 3.4.29 is giving me trouble) , but
provide a quick and relatively painless (as in, does NOT involve a drive
to the colo) way to revert back to the previous system should there be
unexpected problems with the upgrade.  (After some period of time, it
could also provide me a way to upgrade to something newer still, should
it prove necessary)

The stumbling block I'm running into is how to _boot_ the new system.  I
attempted to add a second root partition at raid0h, duplicating the
size/offset info (plus RAID header) in wd0h, and specifying that to the
bootblocks, but it doesn't seem to work.  I'm open to other suggestions
(including creating two RAIDs on the disks, should that prove
necessary... that's kind of a pain, though, since i'm already
partitioned and installed on the single-raid setup.

Thoughts and suggestions gratefully accepted.

Thanks,
+j


--------------enig553D4DC63EB2D2DCE8B98CAE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iQCVAwUBQltEB7OuUtxCgar5AQLwFAP+LPWvLiqlUzyYSjQ+h2dHgwOIb8LK/BG/
Cuzl2araJaaPBCawD8nRCa9T+aDwcUGwAOj8/cSdfQeMoMDPKEgYITzQ0XDDzc4+
e39f7bVpXlLFOeS/CE7IlvyFSSkP/iovG0CRSp3BXdw/0k3u6LdyQQx62Z0hy6cJ
rcDvMm9x7NA=
=teds
-----END PGP SIGNATURE-----

--------------enig553D4DC63EB2D2DCE8B98CAE--