<link href="/user/plugins/datatables/assets/datatables.min.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/markdown-notices/assets/notices.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/form/assets/form-styles.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/simplesearch/css/simplesearch.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/highlight/css/default.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/login/css/login.css" type="text/css" rel="stylesheet"> <link href="/user/themes/imagefactory/css/components.min.css" type="text/css" rel="stylesheet"> <link href="/user/themes/imagefactory/css/otc.css" type="text/css" rel="stylesheet"> <script src="/user/themes/imagefactory/js/jquery.min.js"></script> <script src="/user/plugins/datatables/assets/datatables.min.js"></script> <script src="/user/plugins/highlight/js/highlight.pack.js"></script> <script src="/user/themes/imagefactory/js/components.min.js"></script> <script src="/user/themes/imagefactory/js/totop.js"></script> <script> hljs.initHighlightingOnLoad(); </script>
Brand Claim Brand Claim
by Müller, Sabrina

SLES service pack upgrade

<p>There are several ways to upgrade a SLES12 SP2 to SLES SP3.<br /> OTC has not prepared the way of upgrading via SMT server.<br /> The way to go in OTC is to change SLES repository configuration files to new service pack and start dist upgrade with zypper command. </p> <p>This upgrade process is the same for all SLES service pack upgrades.<br /> An official desciption how it is done for SLES-15 can be found at SUSE website: </p> <p>reference description for SLES-15<br /> <a href="https://www.suse.com/documentation/sles-15/singlehtml/book_sle_upgrade/book_sle_upgrade.html#sec.upgrade-online.zypper-plain">https://www.suse.com/documentation/sles-15/singlehtml/book_sle_upgrade/book_sle_upgrade.html#sec.upgrade-online.zypper-plain</a></p> <p>We prepared an example how to upgrade a fresh installed vm with OTC public image<br /> Enterprise_SLES12_SP2_latest to service pack SP2.</p> <ul> <li>Please create a backup from you vm before start.</li> <li>Be carefull if you have own repositories configured. May better to disable them while upgrading the system.</li> </ul> <h3>Upgrade SLES12 SP2 to SP3</h3> <hr /> <p>check os-release VERSION="12-SP2" </p> <blockquote> <p><code>sudo cat /etc/os-release</code> </p> </blockquote> <p>update vm with last patches </p> <blockquote> <p><code>sudo zypper ref</code><br /> <code>sudo zypper up -y</code><br /> <code>sudo zypper patch --updatestack-only</code> </p> </blockquote> <p>backup repo configuration </p> <blockquote> <p><code>sudo cp -rp /etc/zypp/repos.d/ /etc/zypp/repos.d.SP2.backup</code> </p> </blockquote> <p>replace repo config for SP2 with SP3 </p> <blockquote> <p><code>cd /etc/zypp/repos.d</code><br /> <code>sudo mv OTC-SLES12SP2-LTSS.repo _OTC-SLES12SP2-LTSS.repo.disabled</code> <code>sudo sed s/SP2/SP3/g OTC-* -i</code><br /> <code>sudo sh -c 'for repo in $(ls OTC* |grep SP2); do newRepo=$(echo $repo | sed s/SP2/SP3/g); echo mv $repo $newRepo; mv $repo $newRepo; done</code> </p> </blockquote> <p>in case of additional configured repos do the same or disable them </p> <blockquote> <p><code>sudo zypper refresh -f -s</code> </p> </blockquote> <p>simulate upgrade to SP3 </p> <blockquote> <p><code>sudo zypper --releasever 12.3 dup -y -D --no-allow-vendor-change</code> </p> </blockquote> <p>only continue if there are no errors in simulation </p> <p>run upgrade to SP3 </p> <blockquote> <p><code>sudo zypper --releasever 12.3 dup -y --no-allow-vendor-change</code> </p> </blockquote> <p>reboot </p> <blockquote> <p><code>sudo reboot</code> </p> </blockquote> <p>login to vm again<br /> check os-release VERSION="12-SP3" </p> <blockquote> <p><code>sudo cat /etc/os-release</code> </p> </blockquote>