Subject: Re: solaris 2.3 upgrade from 2.2

From: [email-masked] (Les Bemont)
Date: 24 Nov 1993 16:29:13 GMT

In article <[email-masked]>, [email-masked] (Cosmos Nicolaou) writes:
|> 
|> Hi,
|> 
|> has anyone tried to upgrade from 2.2 to 2.3 and if so did you experience
|> any problems - in particular will the 2.3 boot cdrom recognise that
|> you've already got 2.2 installed and perform an incremental upgrade or
|> will it just go ahead and re-format your disk for you?
|> 

Here's some info we got from Sun.  Hope it helps.

--Les

           >From [email-masked] Wed Nov 24 10:03:40 1993
Date: Wed, 24 Nov 93 08:05:42 PST
From: [email-masked] (Robert Rebiejo)
To: [email-masked]
Subject: Regarding Upgrade from 2.2 -> 2.3
Cc: [email-masked]
Content-Length: 1848

The criterion for whether or not Upgrade is a choice in suninstall.

Enjoy!
----- Begin Included Message -----

--> One customer boots the cd and the Upgrade option does not appear as an
--> Installation choice, The book says it checks to make sure you have a Solaris
--> 2.1 disk, Exactly what is it checking for? Does it actually look at the disk
--> partitions or do some kind of grep on OS version?

An unpgradeable disk is defined to have the file 
        /var/sadm/softinfo/INST_RELEASE
This file must have the following entries:
        OS=Solaris
        VERSION=2.3
        REV=0
         
VERSION must be > 2.0 for upgrade to work.
 
We assume that the / file system is on slice 0 of the disk.  

A separate /var file system is dealt with properly provided that 
/ is mountable.

Here is the algorithm for upgrades to 2.2 - I'm sure it is
pretty close for 2.3 (this was provided by Lori Alt a while
back).

for each disk on the system {
	attempt to mount slice 0 at /a;  /* note that if slice 0 is already
		*  mounted somewhere, or for some other reason the mount
		*  would fail, this attempt will fail  */
	if (mount succeeded) {
		read /a/etc/vfstab to determine whether /var is a separate
			file system;
		if ( /var is on a separate file system) 
			mount that file system at /a/var;
		read the file /a/var/sadm/softinfo/INST_RELEASE;
		if (the read succeeds and the value of VERSION in the
		    file is 2.1 or later) {
			add disk to list of upgradeable disks
		}
		unmount /a/var if it was mounted
		ummount /a
	}
}
if (there is at least one disk in the list of upgradeable disks)
	present the upgrade button

So, if the user had deleted the /var/sadm/softinfo/INST_RELEASE file,
the disk would not be recognized as upgradeable.

----- End Included Message -----