Solaris LiveUpgrade: Difference between revisions
m (Text replacement - "[[Kategorie:" to "[[Category:") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
==Install LiveUpgrade patches== | ==Install LiveUpgrade patches== | ||
[http://sysadmin-tips-and-tricks.blogspot.co.uk/2012/07/solaris-live-upgrade-installation.html This site] has a good list of patches needed: | [http://sysadmin-tips-and-tricks.blogspot.co.uk/2012/07/solaris-live-upgrade-installation.html This site] has a good list of patches needed: | ||
< | <syntaxhighlight lang=bash> | ||
SPARC: | SPARC: | ||
119254-LR Install and Patch Utilities Patch | 119254-LR Install and Patch Utilities Patch | ||
Line 24: | Line 24: | ||
==Mount the Solaris 10 DVD ISO-image== | ==Mount the Solaris 10 DVD ISO-image== | ||
< | <syntaxhighlight lang=bash> | ||
# mkdir /tmp/os | # mkdir /tmp/os | ||
# mount $(lofiadm -a /root/sol-10-u11-ga-x86-dvd.iso) /tmp/os | # mount $(lofiadm -a /root/sol-10-u11-ga-x86-dvd.iso) /tmp/os | ||
Line 30: | Line 30: | ||
==Create the new BootEnvironment== | ==Create the new BootEnvironment== | ||
< | <syntaxhighlight lang=bash> | ||
# lucreate -n Solaris10u11 | # lucreate -n Solaris10u11 | ||
</source> | </source> | ||
==Upgrade the new BootEnvironment== | ==Upgrade the new BootEnvironment== | ||
< | <syntaxhighlight lang=bash> | ||
# echo "autoreg=disable" > /tmp/no-autoreg | # echo "autoreg=disable" > /tmp/no-autoreg | ||
# luupgrade -u -n Solaris10u11 -s /tmp/os -k /tmp/no-autoreg | # luupgrade -u -n Solaris10u11 -s /tmp/os -k /tmp/no-autoreg | ||
Line 41: | Line 41: | ||
==Activate the new BootEnvironment== | ==Activate the new BootEnvironment== | ||
< | <syntaxhighlight lang=bash> | ||
# luactivate Solaris10u11 | # luactivate Solaris10u11 | ||
</source> | </source> | ||
Line 47: | Line 47: | ||
=Install EIS patches= | =Install EIS patches= | ||
==Mount the new EIS-ISO== | ==Mount the new EIS-ISO== | ||
< | <syntaxhighlight lang=bash> | ||
# mkdir /tmp/eis | # mkdir /tmp/eis | ||
# mount -F hsfs $(lofiadm -a /root/EIS/EIS-DVD-ONE-15JUL15.iso) /tmp/eis | # mount -F hsfs $(lofiadm -a /root/EIS/EIS-DVD-ONE-15JUL15.iso) /tmp/eis | ||
Line 53: | Line 53: | ||
==Update LU patches== | ==Update LU patches== | ||
< | <syntaxhighlight lang=bash> | ||
# cd /tmp/eis/sun/patch/x86/LU/10 | # cd /tmp/eis/sun/patch/x86/LU/10 | ||
# unpack-patches -q -r | # unpack-patches -q -r | ||
Line 60: | Line 60: | ||
==Create the new BootEnvironment== | ==Create the new BootEnvironment== | ||
< | <syntaxhighlight lang=bash> | ||
# lucreate -n Solaris10-EIS-15JUL15 | # lucreate -n Solaris10-EIS-15JUL15 | ||
</source> | </source> | ||
==Mount the new BootEnvironment== | ==Mount the new BootEnvironment== | ||
< | <syntaxhighlight lang=bash> | ||
# mkdir /tmp/BE | # mkdir /tmp/BE | ||
# lumount Solaris10-EIS-15JUL15 /tmp/BE | # lumount Solaris10-EIS-15JUL15 /tmp/BE | ||
Line 71: | Line 71: | ||
==Install EIS-Patches== | ==Install EIS-Patches== | ||
< | <syntaxhighlight lang=bash> | ||
# cd /tmp/eis/sun | # cd /tmp/eis/sun | ||
Line 87: | Line 87: | ||
==Problems: Installing this patch set to an alternate boot environment first requires the live boot environment to have patch utilities and other prerequisite patches== | ==Problems: Installing this patch set to an alternate boot environment first requires the live boot environment to have patch utilities and other prerequisite patches== | ||
< | <syntaxhighlight lang=bash> | ||
Installing this patch set to an alternate boot environment first requires the | Installing this patch set to an alternate boot environment first requires the | ||
live boot environment to have patch utilities and other prerequisite patches | live boot environment to have patch utilities and other prerequisite patches | ||
Line 98: | Line 98: | ||
</source> | </source> | ||
===Solution=== | ===Solution=== | ||
< | <syntaxhighlight lang=bash> | ||
root@solaris10 # cd /mnt/var/tmp/10/10_x86_Recommended | root@solaris10 # cd /mnt/var/tmp/10/10_x86_Recommended | ||
root@solaris10 # ./installpatchset --apply-prereq --s10patchset | root@solaris10 # ./installpatchset --apply-prereq --s10patchset | ||
Line 106: | Line 106: | ||
</source> | </source> | ||
==Umount the BE== | ==Umount the BE== | ||
< | <syntaxhighlight lang=bash> | ||
# luumount Solaris10-EIS-15JUL15 | # luumount Solaris10-EIS-15JUL15 | ||
</source> | </source> | ||
==Activate BE & Reboot== | ==Activate BE & Reboot== | ||
< | <syntaxhighlight lang=bash> | ||
# luactivate Solaris10-EIS-15JUL15 | # luactivate Solaris10-EIS-15JUL15 | ||
# init 6 | # init 6 | ||
Line 121: | Line 121: | ||
In the unzipped CPU do: | In the unzipped CPU do: | ||
< | <syntaxhighlight lang=bash> | ||
root@solaris10 # ./installpatchset --s10patchset --apply-prereq | root@solaris10 # ./installpatchset --s10patchset --apply-prereq | ||
</source> | </source> | ||
Line 127: | Line 127: | ||
== Create LiveUpgrade environment == | == Create LiveUpgrade environment == | ||
In this example we use the CPU_2017-07: | In this example we use the CPU_2017-07: | ||
< | <syntaxhighlight lang=bash> | ||
root@solaris10 # lucreate -n Solaris_10-CPU_2017-07 | root@solaris10 # lucreate -n Solaris_10-CPU_2017-07 | ||
... | ... | ||
Line 135: | Line 135: | ||
== Apply the patchset to the LiveUpgrade environment == | == Apply the patchset to the LiveUpgrade environment == | ||
< | <syntaxhighlight lang=bash> | ||
root@solaris10 # ./installpatchset --s10patchset -B Solaris_10-CPU_2017-07 | root@solaris10 # ./installpatchset --s10patchset -B Solaris_10-CPU_2017-07 | ||
</source> | </source> | ||
== Activate the new patched LiveUpgrade envinronment == | == Activate the new patched LiveUpgrade envinronment == | ||
< | <syntaxhighlight lang=bash> | ||
root@solaris10 # luactivate Solaris_10-CPU_2017-07 | root@solaris10 # luactivate Solaris_10-CPU_2017-07 | ||
</source> | </source> | ||
Now you can reboot into it whenever you want, but it should be soon, because of things that will be only in this boot environment later like logs and such. | Now you can reboot into it whenever you want, but it should be soon, because of things that will be only in this boot environment later like logs and such. |
Revision as of 21:39, 25 November 2021
Upgrade Solaris release
Install LiveUpgrade patches
This site has a good list of patches needed: <syntaxhighlight lang=bash> SPARC: 119254-LR Install and Patch Utilities Patch 121430-LR Live Upgrade patch 121428-LR SUNWluzone required patches 138130-01 vold patch 140914-02 cpio patch
x86: 119255-LR Install and Patch Utilities Patch 121431-LR Live Upgrade patch 121429-LR SUNWluzone required patches 138884-01 SunOS 5.10_x86: GRUB patch 138131-01 vold patch 140915-02 cpio patch </source> Higher patch revisions may be available...
Mount the Solaris 10 DVD ISO-image
<syntaxhighlight lang=bash>
- mkdir /tmp/os
- mount $(lofiadm -a /root/sol-10-u11-ga-x86-dvd.iso) /tmp/os
</source>
Create the new BootEnvironment
<syntaxhighlight lang=bash>
- lucreate -n Solaris10u11
</source>
Upgrade the new BootEnvironment
<syntaxhighlight lang=bash>
- echo "autoreg=disable" > /tmp/no-autoreg
- luupgrade -u -n Solaris10u11 -s /tmp/os -k /tmp/no-autoreg
</source>
Activate the new BootEnvironment
<syntaxhighlight lang=bash>
- luactivate Solaris10u11
</source>
Install EIS patches
Mount the new EIS-ISO
<syntaxhighlight lang=bash>
- mkdir /tmp/eis
- mount -F hsfs $(lofiadm -a /root/EIS/EIS-DVD-ONE-15JUL15.iso) /tmp/eis
</source>
Update LU patches
<syntaxhighlight lang=bash>
- cd /tmp/eis/sun/patch/x86/LU/10
- unpack-patches -q -r
- cd
</source>
Create the new BootEnvironment
<syntaxhighlight lang=bash>
- lucreate -n Solaris10-EIS-15JUL15
</source>
Mount the new BootEnvironment
<syntaxhighlight lang=bash>
- mkdir /tmp/BE
- lumount Solaris10-EIS-15JUL15 /tmp/BE
</source>
Install EIS-Patches
<syntaxhighlight lang=bash>
- cd /tmp/eis/sun
- patch-EIS -R /tmp/BE /var/tmp
Will apply patches from directories: x86/10 x86/cacao/2.1 x86/SWUP/10 SunVTS/7.0_x86 x86/LU/10
Patching from directory: patch/x86/10
Cleaning out /tmp/BE//var/tmp/10...
...
Now the Solaris 10_x86 Recommended Patches...
...
</source>
Problems: Installing this patch set to an alternate boot environment first requires the live boot environment to have patch utilities and other prerequisite patches
<syntaxhighlight lang=bash> Installing this patch set to an alternate boot environment first requires the live boot environment to have patch utilities and other prerequisite patches at the same (or higher) patch revisions as those delivered by this patch set.
The required prerequisite patches can be applied to the live boot environment by invoking this script with the '--apply-prereq' option, ie.
./installpatchset --apply-prereq --s10patchset
</source>
Solution
<syntaxhighlight lang=bash> root@solaris10 # cd /mnt/var/tmp/10/10_x86_Recommended root@solaris10 # ./installpatchset --apply-prereq --s10patchset ... Installation of prerequisite patches complete. ... </source>
Umount the BE
<syntaxhighlight lang=bash>
- luumount Solaris10-EIS-15JUL15
</source>
Activate BE & Reboot
<syntaxhighlight lang=bash>
- luactivate Solaris10-EIS-15JUL15
- init 6
</source>
Solaris 10 CPU with LiveUpgrade
Install LiveUpgrade (and some other necessary) Patches
In the unzipped CPU do: <syntaxhighlight lang=bash> root@solaris10 # ./installpatchset --s10patchset --apply-prereq </source>
Create LiveUpgrade environment
In this example we use the CPU_2017-07: <syntaxhighlight lang=bash> root@solaris10 # lucreate -n Solaris_10-CPU_2017-07 ... Population of boot environment <Solaris_10-CPU_2017-07> successful. Creation of boot environment <Solaris_10-CPU_2017-07> successful. </source>
Apply the patchset to the LiveUpgrade environment
<syntaxhighlight lang=bash> root@solaris10 # ./installpatchset --s10patchset -B Solaris_10-CPU_2017-07 </source>
Activate the new patched LiveUpgrade envinronment
<syntaxhighlight lang=bash> root@solaris10 # luactivate Solaris_10-CPU_2017-07 </source>
Now you can reboot into it whenever you want, but it should be soon, because of things that will be only in this boot environment later like logs and such.