I gave up figuring out how to safely combine the 2.4->2.5 upgrade,
the OLDS 4.0 disk, and the patch to OLDS 4.0. It's probably worse
when you are doing a reinstall.
However, you can get the same effect pretty easily by handling the
OLDS manually. BTW, do your level 0 dumps before you start. We
never needed ours, but if you don't have them your guaranteed to need
Basically you need to take your OLDS configuration apart until you
have just simple metadevices (no logging file systems, one-way mirroring).
If you are using OLDS on areas you want to install or upgrade on you'll
have to follow the OLDS manual process to turn stuff like metaroot
Once you have a simple configuration take careful notes on your
replica locations and your working configuration (metadb and "metastat -p"
are a big help here). Your goal is to create an md.tab file you can
use after OLDS 4.0 has been installed to re-create your configuration.
BTW, md.tab can have entries for your replicas a la
mddb01 /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0....
and then you can do a "metadb -a -f mddb01" to add replicas on all those
Remember that replicas inside partitions change their offsets, so if
you have any that aren't in their own tiny partitions you'll need
to think about the effects before deleting/adding them. And of course
you can't have replicas in the areas where you are doing the upgrade/
install. For similar reasons, if you changed from the default
replica size you'll need to preserve that change when you add the
Once you have made "rescue" md.tab file (along with notes on where to
attach back mirrors and logging devices). Don't forget notes on where
your replicas go and where filesystems are mounted. Printouts are
a good emergency backup method too. For an upgrade, I did:
- Saved my rescue md.tab file (don't save it in /etc/opt/SUNWmd, try /etc
or some other handy place)
- Backup up /etc/vfstab and then removed all OLDS filesystems
- Used "pkgrm SUNWmd" and answered yes to get it to delete all
the /etc/system and /etc/opt/SUNWmd stuff.
- Did the upgrade
- Installed OLDS 4.0
- Installed the OLDS patch from the 2.5 CD
- Copied my md.tab back into /etc/opt/SUNWmd
- Used metadb to re-create the replicas
- Did a metainit -a
- Fixed /etc/vfstab
- rebooted (if you skip this reboot then the logging filesystems won't
be fsck'd before you attach the journals. I'm not sure if this
is good or not).
- Attached journals
- Attached mirrors
A re-install should be simpler, but you'll need to be cleverer about where
you store the md.tab and vfstab files.
p.s. you can find out what version is installed on your system with
pkginfo | fgrep -i disk