Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
wecan
V2EX  ›  Linux

Kernel 升级不起作用怎么办

  •  
  •   wecan · Sep 1, 2015 · 3441 views
    This topic created in 4087 days ago, the information mentioned may be changed or developed.
    在 OpenVZ 的主机上,安装的是 cent os 6 。原来的 Kernel 版本是 2.6.32-042stab108.8 x86_64 ,想要升级到 2.6.32-573.1.1.el6 ,为了安装锐速。

    通过 yum install 找到并安装了 linux-kernel-2.6.32-573.1.1.el6 ,在 /boot 文件夹下看到的也是这些:

    [root@myhost boot]# ls
    System.map-2.6.32-573.1.1.el6.x86_64 initramfs-2.6.32-573.1.1.el6.x86_64.img
    config-2.6.32-573.1.1.el6.x86_64 symvers-2.6.32-573.1.1.el6.x86_64.gz
    grub vmlinuz-2.6.32-573.1.1.el6.x86_64

    不过 uname -ir 看到的仍然是旧的 kernel ( 2.6.32-042stab108.8 x86_64 ),重启也没用。

    另外 /etc/grub.conf 和 /boot 下面都没看到 grub 的 config 文件。请教各位大神该如何才能正确升级内核?谢谢
    10 replies  •  2015-09-02 16:34:44 +08:00
    extreme
    extreme
    Sep 1, 2015❤️1
    1
    OpenVZ 的虚拟机(叫 CHROOT 环境更合适)不能自定义内核,应该是 CHROOT 运行个 INIT 吧?
    就算安装了锐速也没用,因为你无权限加载内核模块。

    OpenVZ 可以使用: https://github.com/snooda/net-speeder
    extreme
    extreme
    Sep 1, 2015❤️1
    2
    @extreme
    纠正一下
    "应该是 CHROOT 运行个 INIT 吧" --> "可以看做是一个比较高级的 CHROOT"
    imlonghao
    imlonghao
    Sep 1, 2015❤️1
    3
    OpenVZ 你并不能升级内核
    choury
    choury
    Sep 1, 2015❤️1
    4
    OpenVZ 的主机不能换内核,谢谢
    msg7086
    msg7086
    Sep 1, 2015❤️1
    5
    OpenVZ 的内核在母机上,你没权限换
    jimzhong
    jimzhong
    Sep 1, 2015❤️1
    6
    OpenVZ 并不能更改内核额
    2015813
    2015813
    Sep 1, 2015 via Android❤️1
    7
    而且,越升级对配置要求越高,不要折腾了,稳定最重要。
    wecan
    wecan
    OP
    Sep 1, 2015 via Android
    8
    感谢各位大神指点!
    fengyqf
    fengyqf
    Sep 1, 2015❤️1
    9
    生产环境下,稳定是第一要务,没事不要升级内核,除非你有充分的理由。
    技术层面的原因,前面几楼已经说的很清楚了。
    redhat/centos 对内核的优化,通常比我们个人水平要高,也没必要去折腾
    usernametoolong
    usernametoolong
    Sep 2, 2015❤️1
    10
    换 kvm/hvm 或者 pygurb 的 Xen Pv
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4179 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 08:29 · PVG 16:29 · LAX 00:29 · JFK 03:29
    ♥ Do have faith in what you're doing.