Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many kernels? #1068

Closed
roweryan opened this issue Dec 27, 2015 · 10 comments
Closed

Too many kernels? #1068

roweryan opened this issue Dec 27, 2015 · 10 comments

Comments

@roweryan
Copy link

I have a lot of kernels in my grub list. How many should there be?

@roweryan
Copy link
Author

# rpm -q kernel-ml
kernel-ml-4.1.0-1.el7.elrepo.x86_64
kernel-ml-4.2.2-1.el7.elrepo.x86_64
kernel-ml-4.2.5-1.el7.elrepo.x86_64
kernel-ml-4.3.3-1.el7.elrepo.x86_64

@phillxnet
Copy link
Member

@roweryan This is normal as updated kernels get added, this shouldn't be a problem though. If you really don't want some earlier ones there then you can always uninstall them like you would any other rpm.

@roweryan
Copy link
Author

How many kernels does rockstor keep?

@schakrava
Copy link
Member

Currently, we don't delete any old kernels from the system. Perhaps we should cap it at 10 or something?

@k0nsl
Copy link

k0nsl commented Dec 28, 2015

@schakrava:
I think a cap at five excess kernels would be fine. That's just my opinion ;)

@roweryan
Copy link
Author

kernels are big. /boot is normally too small. kernels installed via yum can be limited to a number you choose, maybe we could use that mechanism. More than 5 is too many I think.

@phillxnet
Copy link
Member

@roweryan Yes, I was forgetting the /boot partition being separate for some reason.
The default install makes a 477 MB /boot (ext4).
From a quick look it appears each kernel is taking an additional 50MB or so on /boot and with the 4 listed kernels installed we have:-

df -h /boot/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1       477M  241M  207M  54% /boot

So as an estimate there is room for another 6 kernels (ie 10 total) so I think we should definitely limit the total kernel count to no more than 10 and I personally think 5 is about right for total maximum installed kernels for this /boot size. There is then a good bit of head room as well.

The above estimate assumes future kernels will be like the 4.3.3 where there is only one initramfs but if 2 then total space goes down to only another 4 kernels so 8 total. I'm still happy with 5 as total installed kernels.

  • edit- OK, I've just noticed that after reboot the kdump.img is created so we have space for only 8 total kernels - edit -. Thanks @roweryan for bringing this up as this is best caught early. I'm afraid I had assumed there was a clean up mechanism in place.

@schakrava schakrava added this to the Kilauea Iki milestone Dec 28, 2015
@schakrava
Copy link
Member

Nice work gentlemen. Looks like 5 it is! I'll get to this soon'ish, unless @phillxnet or someone else beats me to it!

schakrava added a commit that referenced this issue Jan 10, 2016
@ygd2013520
Copy link

@schakrava i download the Rockstor 3.8-10.ios, when i complete it ,i find in /usr/src/kernel/ do not have source code ? normally ,it have a source code name "4.2.5-1.el7.elrepo.x86_64" , right????

@phillxnet
Copy link
Member

@ygd2013520 Hello and welcome. I am linking to your forum post as that is a more appropriate place to address this query:-
http://forum.rockstor.com/t/rockstor-kernel-problem/946/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants