SLES upgrade to 15 SP6 PowerVC_V2 5
SLES upgrade to 15 SP6 PowerVC_V2 5
5 PowerVC
Prerequisites: ______________________________________________________________________ 3
Upload ISO to Virtual Media repository. Needs at least 12GB available. ____________________________ 3
Create vSCSI unit to the server and prepare to start the console for the upgrade. ____________________ 4
Hit “Enter” to continue; we don’t need the SAP partitions mounted. _____________________________ 16
All previously used repositories will be removed, and this is OK. Hit Next. _________________________ 17
Select the following modules: Basesystem, Legacy and Server Applications. _______________________ 17
Hit “Next” to continue with the installation of the selected modules. _____________________________ 18
- Validate from novalink we have access to the filer where the media is located:
[padmin@fit02a08lp969 ~]$ showmount -e 10.130.19.83|grep
/vol/vffit1_shares/install_files | grep 10.132.72
*Change for the segment of the server to be upgraded.
- Check from Novalink the vios:
[padmin@fit02a08lp969 ~]$ pvmctl vios list
+---------------------------+----+---------+--------+----------+------+-----+-----+
+---------------------------+----+---------+--------+----------+------+-----+-----+
+---------------------------+----+---------+--------+----------+------+-----+-----+
[padmin@fit02a08lp969 ~]$
- Access to each vios and validate if there is at least 10G of space to mount the media.
padmin@fit02a08ap963:/home/padmin $ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
13258 9463 rootvg 1525760 1388544
Name File Size Optical Access
sles15-5_sap_iso 3795 None ro
padmin@fit02a08ap963:/home/padmin $
Note: If repository does not have enough space, you can increase it, i.e:
padmin@fit02a08ap963:/home/padmin $ chrep -size 4G
*Adds an additional 4GB to the repository
Upload ISO to Virtual Media repository. Needs at least 12GB available.
In the Novalink:
If you have space, you can proceed to create the optical device from novalink.
Create vSCSI unit to the server and prepare to start the console for the upgrade.
Search for the Novalink of the server’s hosts in PowerVC and login to it with ssh with padmin
user.
pvmctl vm list
Backup files
Before starting the OS upgrade make sure you backup some important files:
shutdown -h now
Click “Continue”:
<hostname>_upgrade_sles_15-6_<CHG request>
Click “Capture”.
You can validate by going into “Images” and searching for your snapshot:
sudo rm -f /etc/SUSEConnect
sudo rm -f /etc/zypp/services.d/*
2. CD/DVD
*It will take some minutes to scan all devices and it will show a list.
Select SCSI CS-ROM
Position cursor to Upgrade and hit “Enter” to start the upgrade process. Wait for it to finish.
If you get
“Error: Cannot find any product to upgrade. Make sure the selected partition contains an
upgradable product.”:
OR:
cd /etc/products.d
ls -l
rm /etc/products.d/baseproduct
ln -s SLES.prod /etc/products.d/baseproduct
sudo rm -f /etc/SUSEConnect
sudo rm -f /etc/zypp/services.d/*
Some packages will probably need to be solved manually. Ensure that the previous installation
is going to be upgraded.
Hit tab to access the submenus and then use the UP/DOWN arrow keys to navigate.
Select Propose
Select Ok
Configuration is ready.
2. CD/DVD
*It will take some minutes to scan all devices and it will show a list, select SCSI CD-ROM
Error while mounting /mnt: special device /dev/rootvg/lvroot does not exist.
Run:
multipath -r
multipath -l
vgchange -ay
multipath -r
multipath -l
Try to mount again:
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
df -hT /mnt/boot
grub2-mkconfig -o /boot/grub2/grub.cfg
Then run:
Try checking that you are using two dashes “--“ instead of one large dash “–“.
Then run:
exit
umount /mnt/*
umount /mnt
shutdown -r now
After ISO upgrade please run the following script to perform the post steps and preparations for
the SLES 15.6 upgrade.
/collect/OSX/bin/sles_upgrades/15/poststeps.sh
This will make backup files in /tmp, fix the resolvers and change some configurations to services
like SSSD, NCPA, VFSTPD. It will also register the server to the RMT server.
screen
If after upgrade, you get the next warning when running zypper commands:
Run:
zypper lr -u
If you are prompted with a problem regarding Python packages, check that they are the same
packages, just newer versions and select option 1.
Type "Y".
Run the patch again.
If you get packages conflicts, check that they are the same packages, just newer versions. If
that's the case, type "yes":
If you get "Nothing to do" message, the patch is complete:
shutdown -r now
Now run your tests for the server. Server is now upgraded.
Fix RMC
Run the following:
mount /collect
cd /collect/OSX/rsct/sles15
/usr/sbin/rsct/bin/mknodeid -f
/usr/sbin/rsct/install/bin/recfgct
/usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Run Healthchecks
/collect/OSX/bin/healthcheck.sh
Run:
The DNS resolvers file, /etc/resolv.conf will be emptied after the upgrade, restore a backup of
that file after the upgrade (this is the current workaround in the meanwhile we are investigating
issues with netconfig).
sed -i 's/^NETCONFIG_DNS_POLICY=""/NETCONFIG_DNS_POLICY="auto"/'
/etc/sysconfig/network/config
ls -l /tmp/resolv.conf.bck
rm /etc/resolv.conf
cat /etc/resolv.conf
ls -l /etc/resolv.conf
Once on SLES 15 SP6, register the server to the RMT with the following command:
Validate with:
SUSEConnect --status-text
SUSEConnect -l
Install NCPA
Fix SSSD
Check that /etc/nsswitch.conf is correctly configured with “sss” instead of “ldap”, as below:
cat /etc/nsswitch.conf
Then, check that PAM is correctly configured too with “pam_sss.so” instead of “pam_ldap.so” as
the latter is deprecated in SLES 15.
If you keep getting errors and can’t get the service up, you can try with:
The service “xinetd” no longer exists in SLES 15 SP6, so we need to fix FTP/SFTP to run with
“vsftpd” service instead.
listen=YES
listen_ipv6=NO
or
#listen_ipv6=NO
Then:
Revision History
Revision History