参考这篇文章进行内核升级
/a/1190000000733628
最后报
[root@puppetnode02 linux-3.10.84]# make install
sh /data/soft/linux-3.10.84/arch/x86/boot/install.sh 3.10.84 arch/x86/boot/bzImage \
System.map "/boot"
ERROR: modinfo: could not find module ipt_MASQUERADE
ERROR: modinfo: could not find module ipt_REDIRECT
ERROR: modinfo: could not find module iptable_nat
ERROR: modinfo: could not find module nf_nat
这少模块问题怎么处理
貌似直接查找都是有的
[root@puppetnode02 linux-3.10.84]# lsmod | grep ipt_MASQUERADE
ipt_MASQUERADE 2466 1
nf_nat 22759 3 ipt_MASQUERADE,ipt_REDIRECT,iptable_nat
nf_conntrack 79357 4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
[root@puppetnode02 linux-3.10.84]# lsmod | grep ipt_REDIRECT
ipt_REDIRECT 1840 1
nf_nat 22759 3 ipt_MASQUERADE,ipt_REDIRECT,iptable_nat
[root@puppetnode02 linux-3.10.84]# lsmod | grep iptable_nat
iptable_nat 6158 1
nf_nat 22759 3 ipt_MASQUERADE,ipt_REDIRECT,iptable_nat
nf_conntrack_ipv4 9506 3 iptable_nat,nf_nat
nf_conntrack 79357 4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
ip_tables 17831 2 iptable_nat,iptable_filter
[root@puppetnode02 linux-3.10.84]# lsmod | grep nf_nat
nf_nat 22759 3 ipt_MASQUERADE,ipt_REDIRECT,iptable_nat
nf_conntrack_ipv4 9506 3 iptable_nat,nf_nat
nf_conntrack 79357 4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
但不知道后面怎么处理
直接用yum升级了。
1、查看原有的内核信息
2、导入public key
3、因为 Docker 推荐使用 3.8 以上内核,所以我们选择使用 YUM 方式来升级内核。
导入 KEY ,安装软件源。在 YUM 的 ELRepo 源中,有 mainline(3.13.1)、long-term(3.10.28)这 2 个内核版本,考虑到 long-term 更稳定,会长期更新,选择这个版本。
主要:
yum的时候要带上--enablerepo=elrepo-kernel参数
[root@localhost ~]# yum --enablerepo=elrepo-kernel install kernel-lt
4、修改grub顺序
修改默认的启动内核,新安装的内核一般在第一个,这里把default = 1 改为 default = 0 就好了。
[root@localhost ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.10.84-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.10.84-1.el6.elrepo.x86_64 ro root=UUID=7ab2f0a8-b4b1-40bd-80b3-2c6f22486ded rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD quiet rhgb crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM
initrd /initramfs-3.10.84-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-220.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=UUID=7ab2f0a8-b4b1-40bd-80b3-2c6f22486ded rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD quiet rhgb crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM
initrd /initramfs-2.6.32-220.el6.x86_64.img
5、重启机器查看内核信息
升级内核完成