krishsays;
Using parts of the below link I was able to get the first part of my testing to complete.
again the configuration I was working with was;
solaris 8 veritas 3.5, upgradeing the OS to solaris 9 and keeping Veritas 3.5 since I do not have a newer edition. no root drive encapsulateing at this point. I have just set up a raid 5 volume with some cd images on it.
steps I took
1) pkginfo -l SUNWlur SUNWluu
2) pkgrm SUNWlur SUNWluu
3)install live update for the OS I was installing.. used solaris 9 disk 2
4) installed patches for live update found on doc 72099
5) formatted and partitioned the new drive the way I wanted it. (make sure when paartitioning the drive you set the flags to WB, they also must be WB on current BE or lucreate will fail)
6)ran lucreate for the partitions I wanted copied. this is what I ran;
#lucreate -c sol8 -m /:/dev/dsk/c0t1d0s0:ufs -m \
-:/dev/dsk/c0t1d0s1:swap -m /usr:/dev/dsk/c0t1d0s3:ufs \
-m /var:/dev/dsk/c0t1d0s4:ufs \
-m /opt:/dev/dsk/c0t1d0s5:ufs \
-m /export/home:/dev/dsk/c0t1d0s6:ufs -n sol9
7)#lumount sol9
8)# cd /.alt.sol9/etc
# cp -p vfstab vfstab.vxfs
# sed '/vx\/dsk/s/^/#/g' vfstab.vxfs > vfstab
# cp system system.vxfs
# sed '/forceload:.*drv\/vx/s/^/*/' system.vxfs > system
9)# showrev -p | egrep “112392|113203|113595|113596|113698”
10)#patchrm -R /.alt.sol9 112392-01 (I only had this patch installed)
11)Once all the patches are removed, remove VERITAS packages from the ABE(alternate boot environment.
Before you use the command pkgrm, make sure that you don't have these files:
/ABEmountpoint/var/vx/isis/vxisis.lock
If you have these files, remove them.
#rm /var/vx/isis/vxisis.lock /.alt.sol9/var/vx/isis/vxisis.lock
12)# pkginfo -l -R /.alt.sol9 | grep VRTS
VRTSvmpro VRTSfspro VRTSfsdoc VRTSvmdoc VRTSvmman VRTSvxfs VRTSobgui VRTSvxvm VRTSob VRTSvlic
Remove the packages depending on their interdependencies.
13)#pkgrm -R /.alt.sol9 packagename (I removed the packages in the order they are above, Be careful to remove the packages in reverse order of how they are installed. Reason for this is on one of my test runs I removed VRTSvxvm before VRTSvmpro and when I tried to remove VRTSvmpro some of the backout scripts had been removed so pkgrm failed causeing my test to ulimately fail)
I did not get this error but you may;
More information is available on VERITAS incident #113279. A description can be found on SunSolve for Patch 113201.
(113279) pkgrm -R should not unload (local) vxvm modules. This is fixed by patch 113201-05, which has dependency patches as well. The same problem is also noticed in VERITAS Version 3.1 and 3.1.1.
No patch exists for those versions. In order to keep the primary boot disk out of risk and to have a standard procedure for three versions of VXVM, we will use the following procedure.
In this scenario (when pkgrm -R on VRTSvxvm fails), we will partially mimic what pkgrm does, by using the rm command.
# touch /.alt.Solaris9/etc/vx/reconfig.d/state.d/install-db
# rm /.alt.Solaris9/kernel/drv/vx*
# rm /.alt.Solaris9/kernel/drv/sparcv9/vx*
14) I then ran the upgrage procedure with local cd's;
Insert cd 1 of 2 solaris 9
#luupgrade -u -n sol9 -s /cdrom/cdrom0/s0
Wait for completion
Insert cd 2 0f 2 solaris 9
#luupgrade -i -n sol9 -s /cdrom/cdrom0
Wait for completion
15)I had downloaded patches 113596-05 113595-06 113203-04 112392-08 to my solaris 8 environment.
ran
#lumount sol9 (to mount ABE)
#cp patches to /.alt.sol9
#luumount sol9 (to unmount ABE)
16)# luactivate sol9 (To activate the ABE)
17)#init 0 (you should see messages for the sol9 boot environment being activated.
18)boot -s (make sure that the correct boot environment boots up, a couple times my system did not boot the environment I wanted)
19)I mounted my cdrom and put in the cd 1 of Veritas 3.5
20) #cd /cdrom
#./installer and installed Volume manager (all packages) and filesystems. (I only had the licenses for these so you may need to install more packages)
Also when I installed the Volume Manager packages It will ask you if you want to restore the old configuration part way through adding the packages.
21)ran;
#patchadd . 113596-06
#patchadd . 113595-06
#patchadd . 113203-04
#patchadd . 112392-08
22) #reboot -- -s
when system came up single user I ran vxdisk list to confirm I had atleast rootdg
23) Restore the original vfstab and system files.
# cp /etc/vfstab /etc/vfstab.beforereboot
# cp /etc/system /etc/system.beforereboot
# cp /etc/vfstab.vxfs /etc/vfstab
# cp /etc/system.vxfs /etc/system
24)Remove install-db and reboot.
# rm -f /etc/vx/reconfig.d/state.d/install-db
# init 6 / shutdown -i 6 -y -g 0
My raid 5 volume mounted on reboot and all information was there so it was successful.
My next steps will be to build a system with encapsulated boot drive since there are more steps to do when boot drives are encapsulated.
will update later
Thanks
CA