Hello, everyone!
The post will share with you a case about failure to upgrade OS from SUSE 11 SP3 to SUSE 11 SP4.
Symptom
One user wanted to update his SUSE 11 SP3 to SUSE SP4 on Huawei virtualization platform. He creates a new VM to test the upgrade process. However, the test VM OS finished upgrade, it can't boot up normally after OS reboot. it prompted "Error 17: Cannot mount selected partition.

Scenario Information
FusionCompute Version: V100R006C10SPH107
OS version: SUSE Enterprise Linux Server 11 SP3
OS Upgrade Method: offline upgrade, boot OS from SUSE Enterprise Linux Server 11 SP4 ISO image, then update OS.

Root Cause
The root cause was the method of partition path recognition has changed in SLES 11 SP4. Such as,
In SLES 11 SP3:
Partition recognition path:

Boot partition setting:

In SLES 11 SP4
Partition recognition path:

Boot partition setting:

Solution
After we verified the solution many times in our Lab, the following steps are our recommended.
Upgrade the OS from SLES 11 SP3 to SLES 11 SP4.
1. Mount the SLES 11 SP4 installation ISO image to this SLES 11 SP3 VM, then mount it to one local directory. Command: “mkdir /mnt/dvd; mount –t iso9660 –o ro,loop /dev/sr0 /mnt/dvd;”.

2. Configure the image path as the upgrade source path. Command: “zypper ar file:///mnt/dvd SLES11SP4”.

Then check whether it has been added successfully. Command: “zypper lr”.

3. Begin the OS upgrade task. Command: “zypper update”.

Then OS will automatically start the update process.

4. After wait 15 mins later, the process of OS update finish. The time of whole upgrade process depends on OS hardware specification and current service load.

5.Check whether the partition recognition path has changed after OS updated. If yes, pls record new parition path. Command: “ls –ahl /dev/disk/by-id”.

6.Backup partition mounting table and boot list first, then edit the local partition mounting table and modify the OS boot setting.
Edit the partition mounting table, command: “cp –av /etc/fstab /etc/fstab.bak; vim /etc/fstab”. Ensure the result as same as the below screenshot.

Edit the OS boot list, command: “cp –av /boot/grub/menu.lst /boot/grub/menu.lst.bak; vim /boot/grub/menu.lst". ensure the result as same as the below screenshot.

7. Shutdown your business service first, then reboot OS to take effect new kernel and application. Command: “reboot”

8. Check whether the new ver OS can boot up normally.

9. Verify the new OS ver and kernel.

Now, the whole process of OS upgrade has already finished.
This is my solution, how about yours? Go ahead and share it with us!

