linux 重新安装内核,升级操作系统内核(不重新安装UltraPath)

升级操作系统内核,暂时不重新启动操作系统。

执行cat /etc/UltraPath.packages.info命令,查看“t140s_solutionType”字段。

[root@localhost CentOS]# cat /etc/UltraPath.packages.info

g10s_OSVersion=CentOS7

g10s_kernelType=normal

g30s_isSanBoot=0

t140s_solutionType=service

f20_solution=createSolution

g10s_sysbit=x86_64

t290s_runServType=CentOSService

##########first install####end#####20160225033249########

如果“t140s_solutionType”为“service”,则表示UltraPath多路径软件是以boot from Local方式安装,执行6。

如果“t140s_solutionType”为“mkinitrd”,则表示UltraPath多路径软件是以boot from SAN方式安装,执行3。

可选:执行upLinux updateForNewKernel命令。

如果回显信息如下所示,则执行6。[root@localhost CentOS]# upLinux updateForNewKernel

The new kernel is 2.6.32-220.el6.x86_64.

The running service is deleted successfully.

The UltraPath startup guide items are deleted successfully.

remove nxup from dracut.

The UltraPath files are deleted successfully.

User configuration is saved successfully.

append nxup to dracut.

The mirror is updated successfully.

append UltraPath title to bootloader successfully.[/boot/grub/menu.lst]

The running service is installed successfully.

The system kernel is updated successfully in UltraPath. Please reboot.

如果回显信息如下所示,请打开新的窗口,以root用户登录应用服务器,并执行4。[root@localhost CentOS]# upLinux updateForNewKernel

***********************************************************************************************

* Notice *

***********************************************************************************************

*UltraPath detects that the default startup item of BootLoader do not point to the upgraded *

*new kernel. *

*The BootLoader type is grub.

* Edit /boot/grub/menu.lst and make the entry that contains the initramfs image without *

*the ultraPath modules as the default entry. *

*For more information, see the UltraPath User Guide. *

*Chapter in [Upgrading Kernel Without Re-Installing UltraPath] *

***********************************************************************************************

Whether to go on?

:

可选:手动修改操作系统BootLoader启动项。

b550870e

根据上述回显信息中“The BootLoader type is grub”项选择相应的手动修改启动项方式。例如,“The BootLoader type is grub”表示操作系统以grub方式启动。

操作系统以grub方式启动。执行vi命令打开/boot/grub/menu.lst。

b550870e

回显信息中,每个“title”项对应一个操作系统内核,且每个“title”项所在的位置与“default”值相关。例如,第一个“title”项对应的“default”值为0,第二个“title”项对应的“default”值为1,以此类推。

b550870e

修改“default”值。以升级后新内核“title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7”为例。

b550870e

由于“title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7”为第二个“title”项,因此其对应的“default”值为“1”。

b550870e

输入“:wq”并按“Enter”键,保存退出。

操作系统以grub2方式启动。执行vi命令打开/boot/grub2/grub.cfg。

b550870e

每个“menuentry”项对应一个操作系统内核。

b550870e

执行grub2-set-default ‘升级后新内核版本’命令。以升级后新内核“CentOS Linux, with Linux 3.10.0-123.el7.x86_64”为例。[root@localhost ~]# grub2-set-default ‘CentOS Linux, with Linux 3.10.0-123.el7.x86_64’

操作系统以grub2-efi方式启动。对于SUSE12SPX系列,执行vi命令打开/boot/grub2/grub.cfg。

对于Oracle7.X系列,执行vi命令打开/boot/efi/EFI/redhat/grub.cfg。

对于CentOS7.X系列,执行vi命令打开/boot/efi/EFI/centos/grub.cfg。

b550870e

每个“menuentry”项对应一个操作系统内核。

b550870e

执行grub2-set-default ‘升级后新内核版本’命令。以升级后新内核“CentOS Linux, with Linux 3.10.0-123.el7.x86_64”为例。[root@localhost ~]# grub2-set-default ‘CentOS Linux, with Linux 3.10.0-123.el7.x86_64’

操作系统以lilo方式启动。执行vi命令打开/etc/lilo.conf。

b550870e

每个“label”对应一个操作系统内核。

b550870e

修改“default”值为升级后新内核。以升级后新内核“SUSE_Linux”为例。

b550870e

输入“:wq”并按“Enter”键,保存退出。

操作系统以elilo方式启动。执行vi命令打开/etc/elilo.conf。

其余操作请参见“操作系统以lilo方式启动”的步骤2、步骤3。

操作系统以egrub方式启动。执行vi命令打开/etc/grub.conf。

其余操作请参见“操作系统以grub方式启动”的步骤2、步骤3。

在3的回显信息中输入“y”,如下所示:

[root@localhost CentOS]# upLinux updateForNewKernel

*************************************************************************************************

* Notice *

*************************************************************************************************

*UltraPath detects that the default startup item of BootLoader do not point to the upgraded *

*new kernel. *

*The BootLoader type is grub.

* Edit /boot/grub/menu.lst and make the entry that contains the initramfs image without *

*the ultraPath modules as the default entry. *

*For more information, see the UltraPath User Guide. *

*Chapter in [Upgrading Kernel Without Re-Installing UltraPath] *

*************************************************************************************************

Whether to go on?

:y

重新启动操作系统,完成升级内核操作。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值