If there are no issues with the new kernel, the server will boot into the new one or else, it would load the previous one.Īfter confirming that the server is working fine with the new kernel, we edit the /etc/nf again and set it as the default one and remove the panic field in the entry. Once the fall-back entry is set in nf, we reboot the server. Next, we access the grub console and set the default kernel to boot. Since the default entry is set to previous running kernel, it would fall back to that kernel and boot the server, thus avoiding any downtime. This will reboot the server on kernel panic after 5 seconds. This is edited and set to the running kernel number instead of the latest updated kernel.įor the newly updated kernel version, we set “panic=5″ in the line which starts with “kernel” corresponding to the newest kernel entry. In the nf file, there is an entry that is used to define the “default” kernel, which is booted when no option is specified. Thus there are three kernels available in this case. The first “title” is given the number 0, next “title” 1 and so on. These entries denote the kernels that are configured to load during a reboot. We’ll see how.Ī typical nf in CentOS 6 server has entries like these: Since it is not easy to predict which server would fail to boot after an update, we always configure a fall-back entry in the grub to prevent a server downtime. While majority of the servers reboot fine with the new kernel, we’ve seen instances where some servers fail to boot with the new kernel. Most server administrators perform the reboot to load the new CentOS 6 kernel, soon after the yum update. To ensure that customers are not affected by the downtime involved during reboots, we always schedule the updates to off-peak hours of the customer and confirm that the ‘konsole’ access to the server is available, in case an emergency pops up. Before updating, we ensure that the repository is defined correctly, or else it may install wrong kernel. In CentOS servers, the yum utility can be used to update kernel easily, by fetching the latest available versions from the yum repository. The backup can come handy to retrieve the entries, in case something goes wrong while editing it. If the nf gets corrupt during edits, the server can fail to boot. This is the config file that lists the operating systems to boot in GRUB’s menu interface during a server reboot. 1. Take a copy of the grub configurationīefore the kernel upgrade, it is always safe to take a copy of the nf file. Here’s how we do it with our 4-point update procedure. This can lead to kernel panic and server downtime, and you may have to contact the data centre to bring it back.īut with some safety measures and fallback configuration, it is possible to update Centos 6 kernel without causing a downtime for the server. If the updated kernel is by any means incompatible with the server, it can fail to boot. If not done with proper planning and caution, a kernel update can mess up with your server.Ĥ steps that we follow to update Centos 6 kernel We perform kernel updates in all Linux flavours, and the procedure varies with the type of the OS installed in the server and its version. In our Server administration services, we perform a wide range of tasks from server hardening to service optimization. Kernel updates are vital in our services, especially in scenarios where a vulnerability or exploit make the servers susceptible to hacks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |