Re: [CentOS] kernel update doesn't update grub.conf
Devin Reade wrote on Thu, 16 Apr 2009 21:19:54 -0600: The symptoms you describe could be a side effect of being previously hit by http://bugs.centos.org/view.php?id=2914 and https://bugzilla.redhat.com/show_bug.cgi?id=447841. Thanks for the belated info, anyway. But this doesn't seem to apply here. No crypto fs and no problem with mkinitrd at all. It didn't happen with all the earlier updates, just this one, and there was no indication during the install that there was a problem. I just noticed it before reboot because I have to adjust the xen kernel line after each kernel upgrade. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
[I saw this thread in the mailing list archives, but wasn't subscribed at the time, so sorry it's not a proper follow-up.] The symptoms you describe could be a side effect of being previously hit by http://bugs.centos.org/view.php?id=2914 and https://bugzilla.redhat.com/show_bug.cgi?id=447841. Those bug items describe workarounds. After you get mkinitrd upgraded to that in 5.3 the problem should go away, although you may have to manually fix up the results of the bad kernel install. Devin -- You live and learn. Or you don't live long. - Robert Heinlein ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
On Wed, 2009-04-08 at 01:43 +0200, Kai Schaetzl wrote: Barry Brimer wrote on Tue, 07 Apr 2009 17:30:44 -0500: According to /sbin/new-kernel-pkg .. the file that actually gets updated on x86 and x86_64 systems is /boot/grub/grub.conf And as I already mentioned in my first posting this file *got* touched. The last modified date got changed, but not the file itself. Comparing it with a file on another machine doesn't reveaL any obvious differences. Specifically, the default entry that should get used as a template is exactly the same, even with the tabs, only the root path is different. Comparing the /boot directories I recognize now that I have 3 kernels left on a machine where it worked, but 4 on the machine where grub.conf didn't get updated. This is obviously not set in /etc/sysconfig/kernel. Is this a yum setting? I remember there is configuration how many kernels to keep, but I can't find it. /etc/yum.conf The installonlypkgs and installonly_limit keywords. The first, according to man yum.conf, defaults to kernel, kernel-smp, kernel-bigmem, kernel-enterprise, kernel-debug, kernel-unsupported and the latter to 3. Kai -- Bill ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
William L. Maltby wrote on Wed, 08 Apr 2009 06:01:43 -0400: Hmmm... Maybe the *64 systems are different? No, they are the same in this respect. I'm not seeing any difference. There is a difference between systems (no matter which arch) when the /etc/grub.conf symlink got created. On all my systems it seems to be identical in date with the grub files in /boot/grub which seems to be the date of installation. But on the system I have this problem it's some months later. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
William L. Maltby wrote on Wed, 08 Apr 2009 05:39:27 -0400: The installonlypkgs and installonly_limit keywords. The first, according to man yum.conf, defaults to kernel, kernel-smp, kernel-bigmem, kernel-enterprise, kernel-debug, kernel-unsupported and the latter to 3. It seems to default to kernel* as I have clearly seen xen kernels announced for removal. All the yum.conf files are the same on my machines. I lied about what I wrote about the kernels that got kept. It's always 5 on the amchiens that have existed for some time. This fits with the installonly_limit = 5 in all yum.conf files. On the one machine with the problem it's 4 kernels, I think it hasn't reached more yet. Anyway, it remains a mystery why grub.conf didn't get updated here. I will check again with next kernel ... Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
on 4-7-2009 2:16 PM Robert spake the following: William L. Maltby wrote: On Tue, 2009-04-07 at 21:31 +0200, Kai Schaetzl wrote: Barry Brimer wrote on Tue, 07 Apr 2009 10:29:31 -0500: /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. Sorry, I was talking about /boot/grub/grub.conf. I wasn't aware that one could assume I was talking about /etc/grub.conf. Well, JIC, make sure yoyr /boot/grub entries look like this. ls -l /boot/grub/[gm]* lrwxrwxrwx 1 root root8 May 9 2008 /boot/grub/grub.conf - menu.lst -rw-r--r-- 1 root root 1108 Apr 2 21:33 /boot/grub/menu.lst I'm not sure why it's set this way, probably some historical reason. I only mention because I don't even know which the update process affects. If they aren't linked, I guess that might cause a problem. I have long been amazed at that relationship. Mine is not the same as yours. (CentOS 5.3 totally updated) [r...@mavis download]# ls -l /boot/grub/[gm]* /etc/grub.conf -rw--- 1 root root 2378 Apr 2 15:07 /boot/grub/grub.conf lrwxrwxrwx 1 root root 11 Aug 7 2008 /boot/grub/menu.lst - ./grub.conf lrwxrwxrwx 1 root root 22 Aug 7 2008 /etc/grub.conf - ../boot/grub/grub.conf [r...@mavis download]# So, while menu.lst is the real file and grub.conf is a symlink to it on your system, the opposite is true on mine. I have no idea how that happened. I do know that when I do a manual edit, I don't go through a who's on first routine. I just edit one of them and move on to the next windmill. That has been there since RedHat switched from lilo to grub. Either there was some hard coded stuff they didn't want to mess with, or the anaconda team and the grub conversion team didn't communicate very well. That had to be back at least to RedHat 7.0, if not in the 6's. signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
On Mon, 2009-04-06 at 18:35 +0200, Kai Schaetzl wrote: Just updated another machine to 5.3, everything fine, but grub.conf wasn't updated to the 128 kernel. It got a new modified date and the kernel is there, but the content wasn't changed. /etc/sysconfig/kernel contains the correct UPDATEDEFAULT=yes No errors in logs or during the update. No problem to boot with this kernel once added. This is the first time I ever see this happen. Any clues? Kai This happened to me the other day when that kernel came out. init would not reload on the kernel update and yum stalled. I had reboot into the old kernel rpm -e the 128 kernel and yum update kernel again and all was fine. I do have to say this machine was memory limited and swapping on update bad. johnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
Quoting JohnS jse...@gmail.com: On Mon, 2009-04-06 at 18:35 +0200, Kai Schaetzl wrote: Just updated another machine to 5.3, everything fine, but grub.conf wasn't updated to the 128 kernel. It got a new modified date and the kernel is there, but the content wasn't changed. /etc/sysconfig/kernel contains the correct UPDATEDEFAULT=yes No errors in logs or during the update. No problem to boot with this kernel once added. This is the first time I ever see this happen. Any clues? Kai /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
I just updated kernel manually last evening: that is, directly using rpm and it did update the grub.conf. Well, you can always manually edit the grub.conf file, right? BTW: I managed to install 5.3 on the very first generation MAC PRO (xeon 2.66, XT1900) last weekend with old kernel: I took a detour in order to install it directly from CD iso. The system Hung several times and the DVD rom was NOT recognized. However, after updated to the newest kernel last evening, the DVD ram recognized and it did NOT hang any more: at least for about 6 hours. Cheers! Lincong --- On Tue, 4/7/09, JohnS jse...@gmail.com wrote: From: JohnS jse...@gmail.com Subject: Re: [CentOS] kernel update doesn't update grub.conf To: CentOS mailing list centos@centos.org Date: Tuesday, April 7, 2009, 11:17 AM On Mon, 2009-04-06 at 18:35 +0200, Kai Schaetzl wrote: Just updated another machine to 5.3, everything fine, but grub.conf wasn't updated to the 128 kernel. It got a new modified date and the kernel is there, but the content wasn't changed. /etc/sysconfig/kernel contains the correct UPDATEDEFAULT=yes No errors in logs or during the update. No problem to boot with this kernel once added. This is the first time I ever see this happen. Any clues? Kai This happened to me the other day when that kernel came out. init would not reload on the kernel update and yum stalled. I had reboot into the old kernel rpm -e the 128 kernel and yum update kernel again and all was fine. I do have to say this machine was memory limited and swapping on update bad. johnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
Barry Brimer wrote on Tue, 07 Apr 2009 10:29:31 -0500: /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. Sorry, I was talking about /boot/grub/grub.conf. I wasn't aware that one could assume I was talking about /etc/grub.conf. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
Lincohn john wrote on Tue, 7 Apr 2009 08:49:17 -0700 (PDT): Well, you can always manually edit the grub.conf file, right? sure, but it should work automatically. And did on all the other upgrades. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
On Tue, 2009-04-07 at 21:31 +0200, Kai Schaetzl wrote: Barry Brimer wrote on Tue, 07 Apr 2009 10:29:31 -0500: /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. Sorry, I was talking about /boot/grub/grub.conf. I wasn't aware that one could assume I was talking about /etc/grub.conf. Well, JIC, make sure yoyr /boot/grub entries look like this. ls -l /boot/grub/[gm]* lrwxrwxrwx 1 root root8 May 9 2008 /boot/grub/grub.conf - menu.lst -rw-r--r-- 1 root root 1108 Apr 2 21:33 /boot/grub/menu.lst I'm not sure why it's set this way, probably some historical reason. I only mention because I don't even know which the update process affects. If they aren't linked, I guess that might cause a problem. Kai -- Bill ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
William L. Maltby wrote: On Tue, 2009-04-07 at 21:31 +0200, Kai Schaetzl wrote: Barry Brimer wrote on Tue, 07 Apr 2009 10:29:31 -0500: /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. Sorry, I was talking about /boot/grub/grub.conf. I wasn't aware that one could assume I was talking about /etc/grub.conf. Well, JIC, make sure yoyr /boot/grub entries look like this. ls -l /boot/grub/[gm]* lrwxrwxrwx 1 root root8 May 9 2008 /boot/grub/grub.conf - menu.lst -rw-r--r-- 1 root root 1108 Apr 2 21:33 /boot/grub/menu.lst I'm not sure why it's set this way, probably some historical reason. I only mention because I don't even know which the update process affects. If they aren't linked, I guess that might cause a problem. I have long been amazed at that relationship. Mine is not the same as yours. (CentOS 5.3 totally updated) [r...@mavis download]# ls -l /boot/grub/[gm]* /etc/grub.conf -rw--- 1 root root 2378 Apr 2 15:07 /boot/grub/grub.conf lrwxrwxrwx 1 root root 11 Aug 7 2008 /boot/grub/menu.lst - ./grub.conf lrwxrwxrwx 1 root root 22 Aug 7 2008 /etc/grub.conf - ../boot/grub/grub.conf [r...@mavis download]# So, while menu.lst is the real file and grub.conf is a symlink to it on your system, the opposite is true on mine. I have no idea how that happened. I do know that when I do a manual edit, I don't go through a who's on first routine. I just edit one of them and move on to the next windmill. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
On Tue, 2009-04-07 at 16:16 -0500, Robert wrote: William L. Maltby wrote: On Tue, 2009-04-07 at 21:31 +0200, Kai Schaetzl wrote: snip Well, JIC, make sure yoyr /boot/grub entries look like this. ls -l /boot/grub/[gm]* lrwxrwxrwx 1 root root8 May 9 2008 /boot/grub/grub.conf - menu.lst -rw-r--r-- 1 root root 1108 Apr 2 21:33 /boot/grub/menu.lst I'm not sure why it's set this way, probably some historical reason. I only mention because I don't even know which the update process affects. If they aren't linked, I guess that might cause a problem. I have long been amazed at that relationship. Mine is not the same as yours. (CentOS 5.3 totally updated) Ditto here. [r...@mavis download]# ls -l /boot/grub/[gm]* /etc/grub.conf -rw--- 1 root root 2378 Apr 2 15:07 /boot/grub/grub.conf lrwxrwxrwx 1 root root 11 Aug 7 2008 /boot/grub/menu.lst - ./grub.conf lrwxrwxrwx 1 root root 22 Aug 7 2008 /etc/grub.conf - ../boot/grub/grub.conf [r...@mavis download]# So, while menu.lst is the real file and grub.conf is a symlink to it on your system, the opposite is true on mine. I have no idea how that happened. I do know that when I do a manual edit, I don't go through a who's on first routine. I just edit one of them and move on to the next windmill. Two things. Probably doesn't make any difference, but we never should assume. AFAIK, my 5.3 is completely box stock in this area, and probably 98% of others too. I have no /etc/grub*. $ ls -l /etc/grub* ls: /etc/grub*: No such file or directory I also checked my 4.6 Centos. It has the /boot/grub[mg]* relationship reversed (menu.lst-grub.conf). I presume that's OK for 4.x as it is also as delivered AFAIK. It *does* have an /etc/grub.conf-../boot/grub/grub.conf So I'm guessing your is left over from an update from 4.x-5.x? But again, I don't have any information that this would affect anything. I thought they would be worth mentioning only because mine has upgraded trouble-free (one exception back when sqllite(?) needed to be upgraded before the normal one) from 5.0-5.3. I did do the glibc thing first, which should not have an effect on this I guess. Since *lots* of other folks have also upgraded w/NP, one makes a first assumption that something must be slightly different on your node. snip sig stuff HTH -- Bill ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
snip Since *lots* of other folks have also upgraded w/NP, one makes a first assumption that something must be slightly different on your node. s/your/Kai's/ #? snip -- Bill ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
Quoting Robert kerp...@sbcglobal.net: William L. Maltby wrote: On Tue, 2009-04-07 at 21:31 +0200, Kai Schaetzl wrote: Barry Brimer wrote on Tue, 07 Apr 2009 10:29:31 -0500: /etc/grub.conf should be a symlink to /boot/grub/grub.conf. If for some reason it is not, correct it, or look directly in /boot/grub/grub.conf and see if the kernel was added there. Sorry, I was talking about /boot/grub/grub.conf. I wasn't aware that one could assume I was talking about /etc/grub.conf. Well, JIC, make sure yoyr /boot/grub entries look like this. ls -l /boot/grub/[gm]* lrwxrwxrwx 1 root root8 May 9 2008 /boot/grub/grub.conf - menu.lst -rw-r--r-- 1 root root 1108 Apr 2 21:33 /boot/grub/menu.lst I'm not sure why it's set this way, probably some historical reason. I only mention because I don't even know which the update process affects. If they aren't linked, I guess that might cause a problem. I have long been amazed at that relationship. Mine is not the same as yours. (CentOS 5.3 totally updated) [r...@mavis download]# ls -l /boot/grub/[gm]* /etc/grub.conf -rw--- 1 root root 2378 Apr 2 15:07 /boot/grub/grub.conf lrwxrwxrwx 1 root root 11 Aug 7 2008 /boot/grub/menu.lst - ./grub.conf lrwxrwxrwx 1 root root 22 Aug 7 2008 /etc/grub.conf - ../boot/grub/grub.conf [r...@mavis download]# So, while menu.lst is the real file and grub.conf is a symlink to it on your system, the opposite is true on mine. I have no idea how that happened. I do know that when I do a manual edit, I don't go through a who's on first routine. I just edit one of them and move on to the next windmill. According to /sbin/new-kernel-pkg .. the file that actually gets updated on x86 and x86_64 systems is /boot/grub/grub.conf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
Barry Brimer wrote on Tue, 07 Apr 2009 17:30:44 -0500: According to /sbin/new-kernel-pkg .. the file that actually gets updated on x86 and x86_64 systems is /boot/grub/grub.conf And as I already mentioned in my first posting this file *got* touched. The last modified date got changed, but not the file itself. Comparing it with a file on another machine doesn't reveaL any obvious differences. Specifically, the default entry that should get used as a template is exactly the same, even with the tabs, only the root path is different. Comparing the /boot directories I recognize now that I have 3 kernels left on a machine where it worked, but 4 on the machine where grub.conf didn't get updated. This is obviously not set in /etc/sysconfig/kernel. Is this a yum setting? I remember there is configuration how many kernels to keep, but I can't find it. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel update doesn't update grub.conf
William L. Maltby wrote on Tue, 07 Apr 2009 17:52:04 -0400: AFAIK, my 5.3 is completely box stock in this area, and probably 98% of others too. I have no /etc/grub*. $ ls -l /etc/grub* ls: /etc/grub*: No such file or directory I also checked my 4.6 Centos. It has the /boot/grub[mg]* relationship reversed (menu.lst-grub.conf). I presume that's OK for 4.x as it is also as delivered AFAIK. Bill, there's definitely something wrong on *your* system. ;-) It should be exactly as Robert has found it on his machine. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos