升级SUSE到SP4 - 图文

更新时间:2023-09-13 16:47:01 阅读量: 教学研究 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Upgrade Suse 升级SUSE

以下做三个测试. 1. 直接升级kernel.

2. 安装新的kernel并保留旧的kernel 3.从SLES SP3升级到SP4

Issue:

The Linux kernel version is( 3.0.76-0.11-defaultoutdated), according to SAP NOTE 2084325:Linux Kernel lower than 3.0.80-0.5.1 can cause XFS filesystem data inconsistency after a reboot and, in the worst cases, a system standstill. Please see SAP NOTE 1867783 for details.

Recommendations: Upgrade to at least below according to Note 1557506

SLES 11.2 3.0.101-0.7.23.1 SLES 11.3 3.0.101-0.40

download:

https://download.suse.com/Download?buildid=VvbY-xM-FfE 下载 kernel-default 和 kernel-base 需要login有权限才能下载

Upgrade kernel directly

hana21:/ # ls /boot/

System.map-3.0.76-0.11-default boot.readme initrd message vmlinuz

backup_mbr config-3.0.76-0.11-default initrd-3.0.76-0.11-default symvers-3.0.76-0.11-default.gz vmlinuz-3.0.76-0.11-default

boot grub lost+found vmlinux-3.0.76-0.11-default.gz hana21:~ # cat /etc/SuSE-release

SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 3

hana21:~ # ls

.ICEauthority .eclipse .gnome2 .hdb .pulse .ssh Desktop kernel-default-3.0.101-0.40.1.x86_64.rpm

.bash_history .esd_auth .gnome2_private .kbd .pulse-cookie .suse_register.log Documents kernel-default-base-3.0.101-0.40.1.x86_64.rpm

.config .exrc .gnupg .local .recently-used.xbel .viminfo bin .dbus .gconf .gstreamer-0.10 .mozilla .sdb .xsession-errors hdbstudio

.dmrc .gconfd .gvfs .nautilus .skel .xsession-errors.old inst-sys

hana21:~ # rpm -Uvh kernel-default-* ( just update kernel-default is enough )

Preparing...

########################################### [100%] 1:kernel-default-base

########################################### [ 50%]

Kernel image: /boot/vmlinuz-3.0.101-0.40-default Initrd image: /boot/initrd-3.0.101-0.40-default Root device: /dev/system/root_lv (mounted on / as ext3) Resume device: /dev/system/swap_lv find: `/lib/modules/3.0.101-0.40-default/kernel/drivers/scsi/device_handler': No such file or directory

modprobe: Module thermal not found.

WARNING: no dependencies for kernel module 'thermal' found. modprobe: Module processor not found.

WARNING: no dependencies for kernel module 'processor' found. modprobe: Module fan not found.

WARNING: no dependencies for kernel module 'fan' found. modprobe: Module mptspi not found.

WARNING: no dependencies for kernel module 'mptspi' found. modprobe: Module ata_generic not found.

WARNING: no dependencies for kernel module 'ata_generic' found. modprobe: Module dm_mirror not found.

WARNING: no dependencies for kernel module 'dm-mirror' found. modprobe: Module dm_snapshot not found.

WARNING: no dependencies for kernel module 'dm-snapshot' found. modprobe: Module linear not found.

WARNING: no dependencies for kernel module 'linear' found.

Kernel Modules: scsi_mod libata ata_piix dm-mod mbcache jbd ext3 crc-t10dif sd_mod

Features: acpi dm block lvm2 resume.userspace resume.kernel Bootsplash: SLES (800x600) 37594 blocks

2:kernel-default

########################################### [100%]

Kernel image: /boot/vmlinuz-3.0.101-0.40-default Initrd image: /boot/initrd-3.0.101-0.40-default Root device: /dev/system/root_lv (mounted on / as ext3) Resume device: /dev/system/swap_lv

Kernel Modules: hwmon thermal_sys thermal processor fan scsi_mod scsi_transport_spi mptbase mptscsih mptspi libata ata_piix

ata_generic dm-mod dm-log dm-region-hash dm-mirror dm-snapshot scsi_dh scsi_dh_rdac scsi_dh_emc scsi_dh_alua scsi_dh_hp_sw mbcache jbd ext3 linear crc-t10dif sd_mod

Features: acpi dm block lvm2 resume.userspace resume.kernel Bootsplash: SLES (800x600) 39174 blocks

hana21:~ # ls /boot/

System.map-3.0.101-0.40-default boot.readme initrd message vmlinuz

backup_mbr config-3.0.101-0.40-default initrd-3.0.101-0.40-default symvers-3.0.101-0.40-default.gz vmlinuz-3.0.101-0.40-default

boot grub lost+found vmlinux-3.0.101-0.40-default.gz hana21:~ # uname -a

Linux hana21 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux

hana21:~ # reboot

Broadcast message from root (pts/0) (Thu Jan 14 01:50:22 2016):

The system is going down for reboot NOW!

hana21:~ # uname -a

Linux hana21 3.0.101-0.40-default #1 SMP Thu Sep 18 13:09:38 UTC 2014 (44b8c95) x86_64 x86_64 x86_64 GNU/Linux hana21:~ #

Using install instead of upgrade to keep original kernel

susetemp:~ # ll -h kernel-default-3.0.101-0.40.1.x86_64.rpm -rw-r--r-- 1 root root 23M Jan 18 17:44 kernel-default-3.0.101-0.40.1.x86_64.rpm

susetemp:~ # uname -a

Linux hana22.sst.com 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux susetemp:~ # ll /boot/ total 19467

-rw-r--r-- 1 root root 2067870 Jun 14 2013 System.map-3.0.76-0.11-default

-rw-r--r-- 1 root root 512 Oct 23 03:55 backup_mbr lrwxrwxrwx 1 root root 1 Oct 23 03:51 boot -> . -rw-r--r-- 1 root root 1236 May 11 2013 boot.readme

-rw-r--r-- 1 root root 131683 Jun 14 2013 config-3.0.76-0.11-default

drwxr-xr-x 2 root root 1024 Oct 23 03:55 grub

lrwxrwxrwx 1 root root 26 Oct 23 03:55 initrd -> initrd-3.0.76-0.11-default

-rw-r--r-- 1 root root 8424214 Oct 23 03:55 initrd-3.0.76-0.11-default

drwx------ 2 root root 12288 Oct 23 03:47 lost+found -rw-r--r-- 1 root root 435712 Oct 23 03:55 message

-rw-r--r-- 1 root root 224012 Jun 14 2013 symvers-3.0.76-0.11-default.gz

-rw-r--r-- 1 root root 4605902 Jun 14 2013 vmlinux-3.0.76-0.11-default.gz

lrwxrwxrwx 1 root root 27 Oct 23 03:52 vmlinuz -> vmlinuz-3.0.76-0.11-default

-rw-r--r-- 1 root root 3941312 Jun 14 2013 vmlinuz-3.0.76-0.11-default

susetemp:~ # rpm -ivh kernel-default-3.0.101-0.40.1.x86_64.rpm error: Failed dependencies: kernel-default-base_x86_64 = 3.0.101-0.40.1 is needed by kernel-default-3.0.101-0.40.1.x86_64

susetemp:~ # scp hana21:/root/kernel-default-base-3.0.101-0.40.1.x86_64.rpm .

The authenticity of host 'hana21 (192.168.76.181)' can't be established.

ECDSA key fingerprint is

9c:77:95:51:50:66:61:bd:ec:fb:c3:e2:97:31:82:c5 [MD5].

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'hana21,192.168.76.181' (ECDSA) to the list of known hosts. Password:

kernel-default-base-3.0.101-0.40.1.x86_64.rpm 100% 15MB 7.4MB/s 00:02

susetemp:~ # ll -h kernel-default-base-3.0.101-0.40.1.x86_64.rpm -rw-r--r-- 1 root root 15M Jan 18 17:46 kernel-default-base-3.0.101-0.40.1.x86_64.rpm

susetemp:~ # rpm -ivh kernel-default-3.0.101-0.40.1.x86_64.rpm error: Failed dependencies:

kernel-default-base_x86_64 = 3.0.101-0.40.1 is needed by kernel-default-3.0.101-0.40.1.x86_64 susetemp:~ # rpm -ivh kernel-default-* Preparing...

########################################### [100%] 1:kernel-default-base

########################################### [ 50%] Scanning scripts ...

Resolve dependencies ...

Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ...

Kernel image: /boot/vmlinuz-3.0.101-0.40-default Initrd image: /boot/initrd-3.0.101-0.40-default Root device: /dev/system/root_lv (mounted on / as ext3) Resume device: /dev/system/swap_lv find: `/lib/modules/3.0.101-0.40-default/kernel/drivers/scsi/device_handler': No such file or directory

modprobe: Module thermal not found.

WARNING: no dependencies for kernel module 'thermal' found. modprobe: Module processor not found.

WARNING: no dependencies for kernel module 'processor' found. modprobe: Module fan not found.

WARNING: no dependencies for kernel module 'fan' found. modprobe: Module mptspi not found.

WARNING: no dependencies for kernel module 'mptspi' found. modprobe: Module ata_generic not found.

WARNING: no dependencies for kernel module 'ata_generic' found. modprobe: Module dm_mirror not found.

WARNING: no dependencies for kernel module 'dm-mirror' found. modprobe: Module dm_snapshot not found.

WARNING: no dependencies for kernel module 'dm-snapshot' found. modprobe: Module linear not found.

WARNING: no dependencies for kernel module 'linear' found.

Kernel Modules: scsi_mod libata ata_piix dm-mod mbcache jbd ext3 crc-t10dif sd_mod

Features: acpi dm block lvm2 resume.userspace resume.kernel Bootsplash: SLES (800x600) 37595 blocks

2:kernel-default

########################################### [100%]

Kernel image: /boot/vmlinuz-3.0.101-0.40-default Initrd image: /boot/initrd-3.0.101-0.40-default Root device: /dev/system/root_lv (mounted on / as ext3) Resume device: /dev/system/swap_lv

Kernel Modules: hwmon thermal_sys thermal processor fan scsi_mod scsi_transport_spi mptbase mptscsih mptspi libata ata_piix

ata_generic dm-mod dm-log dm-region-hash dm-mirror dm-snapshot scsi_dh scsi_dh_hp_sw scsi_dh_alua scsi_dh_rdac scsi_dh_emc mbcache jbd ext3 linear crc-t10dif sd_mod

Features: acpi dm block lvm2 resume.userspace resume.kernel Bootsplash: SLES (800x600) 39175 blocks

susetemp:~ # uname -a

Linux hana22.sst.com 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux susetemp:~ # ll -h /boot/ total 38M

-rw-r--r-- 1 root root 2.0M Sep 24 2014 System.map-3.0.101-0.40-default

-rw-r--r-- 1 root root 2.0M Jun 14 2013 System.map-3.0.76-0.11-default

-rw-r--r-- 1 root root 512 Oct 23 03:55 backup_mbr lrwxrwxrwx 1 root root 1 Oct 23 03:51 boot -> . -rw-r--r-- 1 root root 1.3K May 11 2013 boot.readme

-rw-r--r-- 1 root root 129K Sep 23 2014 config-3.0.101-0.40-default

-rw-r--r-- 1 root root 129K Jun 14 2013 config-3.0.76-0.11-default

-rw-r--r-- 1 root root 0 Jan 18 17:47 do_purge_kernels drwxr-xr-x 2 root root 1.0K Jan 18 17:47 grub

lrwxrwxrwx 1 root root 27 Jan 18 17:47 initrd -> initrd-3.0.101-0.40-default

-rw-r--r-- 1 root root 8.1M Jan 18 17:47 initrd-3.0.101-0.40-default

-rw-r--r-- 1 root root 8.1M Oct 23 03:55 initrd-3.0.76-0.11-default

drwx------ 2 root root 12K Oct 23 03:47 lost+found -rw-r--r-- 1 root root 426K Oct 23 03:55 message

-rw-r--r-- 1 root root 221K Sep 24 2014 symvers-3.0.101-0.40-default.gz

-rw-r--r-- 1 root root 219K Jun 14 2013 symvers-3.0.76-0.11-default.gz

-rw-r--r-- 1 root root 4.5M Sep 24 2014 vmlinux-3.0.101-0.40-default.gz

-rw-r--r-- 1 root root 4.4M Jun 14 2013 vmlinux-3.0.76-0.11-default.gz

lrwxrwxrwx 1 root root 28 Jan 18 17:47 vmlinuz -> vmlinuz-3.0.101-0.40-default

-rw-r--r-- 1 root root 3.8M Sep 24 2014 vmlinuz-3.0.101-0.40-default

-rw-r--r-- 1 root root 3.8M Jun 14 2013 vmlinuz-3.0.76-0.11-default

susetemp:~ # reboot

hana22:~ # uname -a

Linux hana22 3.0.101-0.40-default #1 SMP Thu Sep 18 13:09:38 UTC 2014 (44b8c95) x86_64 x86_64 x86_64 GNU/Linux

Upgrade to SP4 from SP3

1. boot from SP4 DVD1

2. must select \

3. select \

本文来源:https://www.bwwdw.com/article/swhh.html

Top