Re: [CentOS] /boot partition too small

2017-10-11 Thread Lamar Owen

On 10/10/2017 09:20 PM, Robert Nichols wrote:
For you, there really is no way around the messy and delicate process 
of shrinking and relocating a filesystem and the LVM volumes to make 
space for a larger /boot partition. Frankly, I would hesitate to do 
that in place on my own system, and I have quite a bit of experience 
with doing unspeakable things with LVM volumes. You really need to do 
that resizing in the context of moving everything to another disk.


Agreed.  If / and /home are on xfs you can't shrink anyway.  I'm not 
sure if ext4 can be shrunk while mounted (I seem to remember that it can't).




If it's a server that you don't want to take down for the time it 
takes for that procedure, you can do amazing things with pvmove while 
your system continues to run, but you still need another disk to hold 
those volumes temporarily.


As long as there is enough slack space in the volume group you can do 
this.  If there is no slack space you have real problems, especially 
with XFS (one reason I still use ext4 for many things, and one reason I 
never fill the volume group to 100%).


I have done the pvmove and filesystem resize dance before, live, with 
the second hard disk attached via iSCSI.  The least fun piece is then 
resizing the /boot partition and its filesystem.  But I had enough slack 
space in the volume group.  What can be done here is unmounting /home, 
shrinking /home the appropriate amount, and then you have enough slack 
space to do the shrink and move (not fully live, but semi-live, and you 
can't have any logged-in users with open files in /home).  Shrinking 
from the end of the filesystem and pv is easy; shrinking from the 
beginning is hard and prone to errors.  (gparted and similar do the move 
of the end of a partition fine; moving the start is much much harder).


However, if you can shrink enough from the end you can put /boot on the 
last partition on the disk instead of the first, although you will have 
to do some grub stanza editing to get rid of /dev/sda1 and replace with 
the appropriate device for the new /boot.  So you could shrink /home, 
shrink the pv, shrink the partition holding the pv (this is the risky 
part), then add a partition to the end of the disk for the new /boot.  
If you've never done this sort of thing before you may want to get 
someone who has done this sort of thing to do it.


Otherwise, if you feel at all uncomfortable doing this it may just be 
easier to pull a backup and reinstall.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-11 Thread Nicolas Kovacs
Le 10/10/2017 à 15:55, KM a écrit :
> First off - let me say I am not an administrator.   I need to know if
> there is an easy way to increase my /boot partition.  When I
> installed CentOS 6 after running 5, it was my oversight not to
> increase the /boot size.  it's too small and I can't do yum updates.

Here's a possible solution to your problem:

  # yum install yum-utils
  # package-cleanup --oldkernels --count=1
  # yum update

Prevent this from happening again by editing /etc/yum.conf:

  installonly_limit=2 (default value 5, reduce to 2)

Cheers,

Niki
-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-11 Thread Sorin Srbu
> -Original Message-
> From: CentOS [mailto:centos-boun...@centos.org] On Behalf Of Sorin Srbu
> Sent: den 11 oktober 2017 07:57
> To: CentOS mailing list <centos@centos.org>
> Subject: Re: [CentOS] /boot partition too small
> 
> > -Original Message-
> > From: CentOS [mailto:centos-boun...@centos.org] On Behalf Of KM
> > Sent: den 10 oktober 2017 21:06
> > To: centos@centos.org; Phil Perry <ppe...@elrepo.org>
> > Subject: Re: [CentOS] /boot partition too small
> >
> >  Do i need to do something special or is it as easy as:
> > - save the contents of the current /boot - umount /boot and change the
> > /etc/fstab so it doesn't mount again-  create a boot directory that is
in
> > the root  filesystem- copy the contents back
> > I realize the physical/current /boot will be a waste of space but it's
not
> > that
> > big so it's fine.
> > I thought i probably have to make configuration changes of some sort.
> > Again I apologize in advance since I am not really good at this
> > (partition/file
> > system).  I have tried searching but am never sure exactly what I should
> > try.   I need to find the "for dummies" version(s) of this. Thanks
again.
> > KM
> 
> Assuming you have backups, if something should go south, you might want
> to try
> out the Gparted boot-iso.
> 
> Using Gparted you should be able to shrink some of the other partitions,
and
> then grow the boot partition.
> 
> More info on:
> https://gparted.org/index.php
> 
> If you have another non-critical computer to test using Gparted on, do
that
> first before doing it "for real".
> 
> Hope this helps.

Wait a sec, this was LVM right?
Not sure if Gparted supports that yet.

--
//Sorin
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Sorin Srbu
> -Original Message-
> From: CentOS [mailto:centos-boun...@centos.org] On Behalf Of KM
> Sent: den 10 oktober 2017 21:06
> To: centos@centos.org; Phil Perry <ppe...@elrepo.org>
> Subject: Re: [CentOS] /boot partition too small
>
>  Do i need to do something special or is it as easy as:
> - save the contents of the current /boot - umount /boot and change the
> /etc/fstab so it doesn't mount again-  create a boot directory that is in
> the root  filesystem- copy the contents back
> I realize the physical/current /boot will be a waste of space but it's not 
> that
> big so it's fine.
> I thought i probably have to make configuration changes of some sort.
> Again I apologize in advance since I am not really good at this 
> (partition/file
> system).  I have tried searching but am never sure exactly what I should
> try.   I need to find the "for dummies" version(s) of this. Thanks again.
> KM

Assuming you have backups, if something should go south, you might want to try 
out the Gparted boot-iso.

Using Gparted you should be able to shrink some of the other partitions, and 
then grow the boot partition.

More info on:
https://gparted.org/index.php

If you have another non-critical computer to test using Gparted on, do that 
first before doing it "for real".

Hope this helps.
--
//Sorin
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Sorin Srbu
> -Original Message-
> From: CentOS [mailto:centos-boun...@centos.org] On Behalf Of KM
> Sent: den 10 oktober 2017 15:55
> To: CentOS Mailing List <centos@centos.org>
> Subject: [CentOS] /boot partition too small
>
> First off - let me say I am not an administrator.   I need to know if there 
> is an
> easy way to increase my /boot partition.  When I installed CentOS 6 after
> running 5, it was my oversight not to increase the /boot size.  it's too 
> small
> and I can't do yum updates.
> if it's not easy to actually increase it, is it safe to take a chunk in my 
> root
> filesystem (like /new.boot or something) and just mount it as /boot from
> now on so it uses the space or is that not a good idea?  I am sure I could 
> easily
> copy the rpms/kernel stuff over to it and then unmounts the real /boot and
> mount this new area as /boot.
> Can you administrators let me know what you think of all this?   Thanks in
> advance.

Been there done that.

A simple solution is to edit /etc/yum.conf and change the line

installonly_limit=5

to e.g.

installonly_limit=3

and see if that's enough with the existing boot partition size.

A "yum update" should delete the two oldest kernel images.


--
//Sorin
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread John R Pierce

On 10/10/2017 6:50 PM, John R Pierce wrote:
Your root filesystem is in an LVM volume. CentOS 6 is still using 
GRUB legacy, which does not support /boot in LVM. 



says up there, /boot is /dev/sda1, this is almost exactly the config 
of my C6 servers. 



never mind, I realized after I sent this, you were talking about him 
MOVING his /boot to /



--
john r pierce, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread John R Pierce

On 10/10/2017 6:20 PM, Robert Nichols wrote:

Filesystem Size  Used Avail Use% Mounted on
/dev/mapper/vg_bldsrv-lv_root
    50G   26G   22G  55% /
tmpfs 9.0G  156K  9.0G   1% /dev/shm
/dev/sda1  96M   33M   59M  36% /boot
/dev/mapper/vg_bldsrv-lv_home
   861G  371G  447G  46% /home


Your root filesystem is in an LVM volume. CentOS 6 is still using GRUB 
legacy, which does not support /boot in LVM. 



says up there, /boot is /dev/sda1, this is almost exactly the config of 
my C6 servers.



--
john r pierce, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Robert Nichols

On 10/10/2017 09:53 AM, KM wrote:

  Thanks for all of the input, not really sure what if anything I will do.  i 
was hoping it would be easy and i could just create a /boot in root, and copy 
the actual boot contents to it and use it.   wishful thinking i guess.  just to 
give a complete picture here is the current partitioning on the serverin 
case anyone wants to say anymore.  Thanks in advance.
Filesystem    Size  Used Avail Use% Mounted on
/dev/mapper/vg_bldsrv-lv_root
    50G   26G   22G  55% /
tmpfs 9.0G  156K  9.0G   1% /dev/shm
/dev/sda1  96M   33M   59M  36% /boot
/dev/mapper/vg_bldsrv-lv_home
   861G  371G  447G  46% /home


Your root filesystem is in an LVM volume. CentOS 6 is still using GRUB legacy, 
which does not support /boot in LVM.

For you, there really is no way around the messy and delicate process of 
shrinking and relocating a filesystem and the LVM volumes to make space for a 
larger /boot partition. Frankly, I would hesitate to do that in place on my own 
system, and I have quite a bit of experience with doing unspeakable things with 
LVM volumes. You really need to do that resizing in the context of moving 
everything to another disk.

If it's a server that you don't want to take down for the time it takes for 
that procedure, you can do amazing things with pvmove while your system 
continues to run, but you still need another disk to hold those volumes 
temporarily.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread m . roth
KM wrote:
>  Thanks for all of the input, not really sure what if anything I will do. 
> i was hoping it would be easy and i could just create a /boot in root,
> and copy the actual boot contents to it and use it.   wishful thinking i
> guess.  just to give a complete picture here is the current partitioning
> on the serverin case anyone wants to say anymore.  Thanks in advance.
> Filesystem    Size  Used Avail Use% Mounted on
> /dev/mapper/vg_bldsrv-lv_root
>    50G   26G   22G  55% /
> tmpfs 9.0G  156K  9.0G   1% /dev/shm
> /dev/sda1  96M   33M   59M  36% /boot
> /dev/mapper/vg_bldsrv-lv_home
>   861G  371G  447G  46% /home
>
> Most of this is like speaking another language to me anyway.  I'll
> consider it all.

What I would recommend: go out and buy a "small" new h/d, say, 150GB or
250GB. Also get an adapter for it (let me note that I actually bought, a
year or two ago, a hot-swap drive bay that fits in a std. tower case...).
Then partition that (we've been using 1G for /boot for years), mount it on
/mnt, mount newdrive/boot /mnt/newdrive/boot, and rsync -HPavx /.
/mnt/newdrive, and rsync -HPavx /boot /mnt/newdrive/boot

Then grub-install /dev/newdrive, and swap drives.

mark

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Yves Bellefeuille
KM  wrote:

> Do i need to do something special or is it as easy as:
> - save the contents of the current /boot - umount /boot and change
> the /etc/fstab so it doesn't mount again-  create a boot directory
> that is in the root filesystem- copy the contents back

You'll also have to reinstall Grub. The wiki has information on this.

-- 
Yves Bellefeuille



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread KM
 Do i need to do something special or is it as easy as:
- save the contents of the current /boot - umount /boot and change the 
/etc/fstab so it doesn't mount again-  create a boot directory that is in the 
root  filesystem- copy the contents back
I realize the physical/current /boot will be a waste of space but it's not that 
big so it's fine.   
I thought i probably have to make configuration changes of some sort.
Again I apologize in advance since I am not really good at this (partition/file 
system).  I have tried searching but am never sure exactly what I should try.   
I need to find the "for dummies" version(s) of this. Thanks again.
KM

On ‎Tuesday‎, ‎October‎ ‎10‎, ‎2017‎ ‎02‎:‎44‎:‎12‎ ‎PM, Phil Perry 
 wrote:  
 
 On 10/10/17 15:27, John Hodrien wrote:
> On Tue, 10 Oct 2017, Pete Biggs wrote:
> 
>> No, you can't do that. /boot is special and needs to be a separate
>> partition.
> 
> Needs is a bit strong, as grub2 does support LVM.  It's not a supported
> configuration for Redhat.
> 
> I'm not a sure there's a lot to it beyond having the lvm module loaded in
> grub, but I've honestly not tried.
> 

Indeed, /boot does not need to be a separate partition. I have /boot 
within the root filesystem on my test boxes where I know I will need to 
install many / all kernels for testing / development purposes for the 
specific reason that I do not need to set a size for /boot and it can 
just consume whatever it needs from the rest of the filesystem.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Alice Wonder

On 10/10/2017 07:04 AM, Vanhorn, Mike wrote:

If there are many old kernels in there, you can probably remove the oldest 
one(s) to make room for newer ones.


This is what I do. When /boot hits about 80% I go through and remove old 
kernels I will never boot into anyway.


Usually that's at four kernels.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Phil Perry

On 10/10/17 15:27, John Hodrien wrote:

On Tue, 10 Oct 2017, Pete Biggs wrote:


No, you can't do that. /boot is special and needs to be a separate
partition.


Needs is a bit strong, as grub2 does support LVM.  It's not a supported
configuration for Redhat.

I'm not a sure there's a lot to it beyond having the lvm module loaded in
grub, but I've honestly not tried.



Indeed, /boot does not need to be a separate partition. I have /boot 
within the root filesystem on my test boxes where I know I will need to 
install many / all kernels for testing / development purposes for the 
specific reason that I do not need to set a size for /boot and it can 
just consume whatever it needs from the rest of the filesystem.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Yves Bellefeuille
KM  wrote:

>  if it's not easy to actually increase it,

It's possible to resize partitions. I use System Rescue CD,
http://www.system-rescue-cd.org/

-- 
Yves Bellefeuille



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread KM
 Thanks for all of the input, not really sure what if anything I will do.  i 
was hoping it would be easy and i could just create a /boot in root, and copy 
the actual boot contents to it and use it.   wishful thinking i guess.  just to 
give a complete picture here is the current partitioning on the serverin 
case anyone wants to say anymore.  Thanks in advance. 
Filesystem    Size  Used Avail Use% Mounted on
/dev/mapper/vg_bldsrv-lv_root
   50G   26G   22G  55% /
tmpfs 9.0G  156K  9.0G   1% /dev/shm
/dev/sda1  96M   33M   59M  36% /boot
/dev/mapper/vg_bldsrv-lv_home
  861G  371G  447G  46% /home

Most of this is like speaking another language to me anyway.  I'll consider it 
all. 
KM

On ‎Tuesday‎, ‎October‎ ‎10‎, ‎2017‎ ‎10‎:‎42‎:‎21‎ ‎AM, Fred Smith 
 wrote:  
 
 On Tue, Oct 10, 2017 at 10:36:16AM -0400, Stephen John Smoogen wrote:
> On 10 October 2017 at 09:55, KM  wrote:
> > First off - let me say I am not an administrator.  I need to know if there 
> > is an easy way to increase my /boot partition.  When I installed CentOS 6 
> > after running 5, it was my oversight not to increase the /boot size. it's 
> > too small and I can't do yum updates.

> > if it's not easy to actually increase it, is it safe to take a chunk in my 
> > root filesystem (like /new.boot or something) and just mount it as /boot 
> > from now on so it uses the space or is that not a good idea?  I am sure I 
> > could easily copy the rpms/kernel stuff over to it and then unmounts the 
> > real /boot and mount this new area as /boot.
> > Can you administrators let me know what you think of all this?  Thanks in 
> > advance.
> > KM
> 
> There is no easy way to increase the /boot partition. One can try to
> build another /boot partition and use that but that isn't simple
> either and prone to problems if the /boot is outside of where that
> particular BIOS can intepret (aka embedded in an LVM) or jump to.
> 
> I have found the simpler method is usually: dump the disks to backup,
> reinstall the system with 500 to 1000 MB /boot and restore from
> backups.

You can do this (warning--back up everything first, just in case):
-download the grub live CD image (google for it)
-burn it to a CD
-boot it
-use the graphical partition editor to resize and/or move existing
partitions to make room for a larger boot then enlarge the /boot.
all this may take a while once you tell it to commit your changes,
but it isn't hard to do. I've done it several times, as well as smaller
changes, and have yet to have a failure (knock on wood).

Does it work with LVM? Hmmm... good question. I think so, but would
have to go check to be sure.

Good luck!


-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
                      I can do all things through Christ 
                              who strengthens me.
-- Philippians 4:13 ---
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Fred Smith
On Tue, Oct 10, 2017 at 10:36:16AM -0400, Stephen John Smoogen wrote:
> On 10 October 2017 at 09:55, KM  wrote:
> > First off - let me say I am not an administrator.   I need to know if there 
> > is an easy way to increase my /boot partition.  When I installed CentOS 6 
> > after running 5, it was my oversight not to increase the /boot size. it's 
> > too small and I can't do yum updates.

> > if it's not easy to actually increase it, is it safe to take a chunk in my 
> > root filesystem (like /new.boot or something) and just mount it as /boot 
> > from now on so it uses the space or is that not a good idea?  I am sure I 
> > could easily copy the rpms/kernel stuff over to it and then unmounts the 
> > real /boot and mount this new area as /boot.
> > Can you administrators let me know what you think of all this?   Thanks in 
> > advance.
> > KM
> 
> There is no easy way to increase the /boot partition. One can try to
> build another /boot partition and use that but that isn't simple
> either and prone to problems if the /boot is outside of where that
> particular BIOS can intepret (aka embedded in an LVM) or jump to.
> 
> I have found the simpler method is usually: dump the disks to backup,
> reinstall the system with 500 to 1000 MB /boot and restore from
> backups.

You can do this (warning--back up everything first, just in case):
-download the grub live CD image (google for it)
-burn it to a CD
-boot it
-use the graphical partition editor to resize and/or move existing
partitions to make room for a larger boot then enlarge the /boot.
all this may take a while once you tell it to commit your changes,
but it isn't hard to do. I've done it several times, as well as smaller
changes, and have yet to have a failure (knock on wood).

Does it work with LVM? Hmmm... good question. I think so, but would
have to go check to be sure.

Good luck!


-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
   I can do all things through Christ 
  who strengthens me.
-- Philippians 4:13 ---
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Stephen John Smoogen
On 10 October 2017 at 09:55, KM  wrote:
> First off - let me say I am not an administrator.   I need to know if there 
> is an easy way to increase my /boot partition.  When I installed CentOS 6 
> after running 5, it was my oversight not to increase the /boot size.  it's 
> too small and I can't do yum updates.
> if it's not easy to actually increase it, is it safe to take a chunk in my 
> root filesystem (like /new.boot or something) and just mount it as /boot from 
> now on so it uses the space or is that not a good idea?  I am sure I could 
> easily copy the rpms/kernel stuff over to it and then unmounts the real /boot 
> and mount this new area as /boot.
> Can you administrators let me know what you think of all this?   Thanks in 
> advance.
> KM

There is no easy way to increase the /boot partition. One can try to
build another /boot partition and use that but that isn't simple
either and prone to problems if the /boot is outside of where that
particular BIOS can intepret (aka embedded in an LVM) or jump to.

I have found the simpler method is usually: dump the disks to backup,
reinstall the system with 500 to 1000 MB /boot and restore from
backups.



> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos



-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread John Hodrien

On Tue, 10 Oct 2017, Pete Biggs wrote:


No, you can't do that. /boot is special and needs to be a separate
partition.


Needs is a bit strong, as grub2 does support LVM.  It's not a supported
configuration for Redhat.

I'm not a sure there's a lot to it beyond having the lvm module loaded in
grub, but I've honestly not tried.

jh
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread KM
 Here is my current info, should have increased it to like 500M or so at least.
Filesystem Size  Used   Avail Use% Mounted on/dev/sda1   96M   33M   
59M  36%   /boot

ls /boot
config-2.6.32-358.el6.x86_64
efi
grub
initramfs-2.6.32-358.el6.x86_64.img
initrd-2.6.32-358.el6.x86_64kdump.img
lost+found
symvers-2.6.32-358.el6.x86_64.gz
System.map-2.6.32-358.el6.x86_64
vmlinuz-2.6.32-358.el6.x86_64



On ‎Tuesday‎, ‎October‎ ‎10‎, ‎2017‎ ‎10‎:‎17‎:‎46‎ ‎AM, Pete Biggs 
 wrote:  
 
 On Tue, 2017-10-10 at 13:55 +, KM wrote:
> First off - let me say I am not an administrator.  I need to know if
> there is an easy way to increase my /boot partition.  When I
> installed CentOS 6 after running 5, it was my oversight not to
> increase the /boot size.  it's too small and I can't do yum updates.

How big is it?

> if it's not easy to actually increase it, is it safe to take a chunk
> in my root filesystem (like /new.boot or something) and just mount it
> as /boot from now on so it uses the space or is that not a good
> idea?  I am sure I could easily copy the rpms/kernel stuff over to it
> and then unmounts the real /boot and mount this new area as /boot.
> Can you administrators let me know what you think of all this?  

No, you can't do that. /boot is special and needs to be a separate
partition. 

The most likely cause of your problems is that you have multiple
kernels installed - when you boot the machine do you see multiple
versions on the grub boot screen? If you don't need the previous
versions then they can just be deleted using yum: do 'rpm -q kernel' to
see which kernels are installed and 'uname -r' to see which version you
are currently running (it should be the same as the highest version
installed).  You can then use 'yum erase ...' to remove the old
kernels. It's always handy to have a version or two old ones in case of
emergency so I always leave three on a system.

The multiple versions installed of some things - i.e. the kernel - is
controlled by a yum variable in /etc/yum.conf called
'installonly_limit'. It's probably set to 5 at the moment, you can set
it to 3 safely and that is usually sufficient to stop /boot filling up.

P.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread John Hodrien

On Tue, 10 Oct 2017, KM wrote:


Thanks for the idea.  I've already restricted it to one kernel.   so this 
will not help me.


And did you also delete the rescue kernel/image from /boot?

jh
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread KM
 Thanks for the idea.  I've already restricted it to one kernel.   so this 
will not help me.

On ‎Tuesday‎, ‎October‎ ‎10‎, ‎2017‎ ‎10‎:‎04‎:‎56‎ ‎AM, Vanhorn, Mike 
 wrote:  
 
 If there are many old kernels in there, you can probably remove the oldest 
one(s) to make room for newer ones.

I've run into problems where the yum update didn't work because there wasn't 
enough room in /boot; my notes for updating now include removing old kernels 
first before running updates.

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu

On 10/10/17, 9:55 AM, "CentOS on behalf of KM"  wrote:

First off - let me say I am not an administrator.  I need to know if there is 
an easy way to increase my /boot partition.  When I installed CentOS 6 after 
running 5, it was my oversight not to increase the /boot size.  it's too small 
and I can't do yum updates.
if it's not easy to actually increase it, is it safe to take a chunk in my root 
filesystem (like /new.boot or something) and just mount it as /boot from now on 
so it uses the space or is that not a good idea?  I am sure I could easily copy 
the rpms/kernel stuff over to it and then unmounts the real /boot and mount 
this new area as /boot.
Can you administrators let me know what you think of all this?  Thanks in 
advance.
KM
___
CentOS mailing list
CentOS@centos.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.centos.org_mailman_listinfo_centos=DwIGaQ=3buyMx9JlH1z22L_G5pM28wz_Ru6WjhVHwo-vpeS0Gk=_s0N94AIK4hLWzZ1WmAPvZjr8bPWpBPPuhyNjJkGAHs=oiG0zd3adnkmuJP8BRsykJqAVPEQ_hXcq80Jj-Bfl_c=hg7Ww_cslaLQa4jGDLcy3NhAmURSXvBOW3LXB3JXCuc=
 


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Pete Biggs
On Tue, 2017-10-10 at 13:55 +, KM wrote:
> First off - let me say I am not an administrator.   I need to know if
> there is an easy way to increase my /boot partition.  When I
> installed CentOS 6 after running 5, it was my oversight not to
> increase the /boot size.  it's too small and I can't do yum updates.

How big is it?

> if it's not easy to actually increase it, is it safe to take a chunk
> in my root filesystem (like /new.boot or something) and just mount it
> as /boot from now on so it uses the space or is that not a good
> idea?  I am sure I could easily copy the rpms/kernel stuff over to it
> and then unmounts the real /boot and mount this new area as /boot.
> Can you administrators let me know what you think of all this?   

No, you can't do that. /boot is special and needs to be a separate
partition. 

The most likely cause of your problems is that you have multiple
kernels installed - when you boot the machine do you see multiple
versions on the grub boot screen? If you don't need the previous
versions then they can just be deleted using yum: do 'rpm -q kernel' to
see which kernels are installed and 'uname -r' to see which version you
are currently running (it should be the same as the highest version
installed).  You can then use 'yum erase ...' to remove the old
kernels. It's always handy to have a version or two old ones in case of
emergency so I always leave three on a system.

The multiple versions installed of some things - i.e. the kernel - is
controlled by a yum variable in /etc/yum.conf called
'installonly_limit'. It's probably set to 5 at the moment, you can set
it to 3 safely and that is usually sufficient to stop /boot filling up.

P.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Vanhorn, Mike
If there are many old kernels in there, you can probably remove the oldest 
one(s) to make room for newer ones.

I've run into problems where the yum update didn't work because there wasn't 
enough room in /boot; my notes for updating now include removing old kernels 
first before running updates.

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu

On 10/10/17, 9:55 AM, "CentOS on behalf of KM"  wrote:

First off - let me say I am not an administrator.   I need to know if there is 
an easy way to increase my /boot partition.  When I installed CentOS 6 after 
running 5, it was my oversight not to increase the /boot size.  it's too small 
and I can't do yum updates.
if it's not easy to actually increase it, is it safe to take a chunk in my root 
filesystem (like /new.boot or something) and just mount it as /boot from now on 
so it uses the space or is that not a good idea?  I am sure I could easily copy 
the rpms/kernel stuff over to it and then unmounts the real /boot and mount 
this new area as /boot.
Can you administrators let me know what you think of all this?   Thanks in 
advance.
KM
___
CentOS mailing list
CentOS@centos.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.centos.org_mailman_listinfo_centos=DwIGaQ=3buyMx9JlH1z22L_G5pM28wz_Ru6WjhVHwo-vpeS0Gk=_s0N94AIK4hLWzZ1WmAPvZjr8bPWpBPPuhyNjJkGAHs=oiG0zd3adnkmuJP8BRsykJqAVPEQ_hXcq80Jj-Bfl_c=hg7Ww_cslaLQa4jGDLcy3NhAmURSXvBOW3LXB3JXCuc=
 


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] /boot partition too small

2017-10-10 Thread KM
First off - let me say I am not an administrator.   I need to know if there is 
an easy way to increase my /boot partition.  When I installed CentOS 6 after 
running 5, it was my oversight not to increase the /boot size.  it's too small 
and I can't do yum updates.
if it's not easy to actually increase it, is it safe to take a chunk in my root 
filesystem (like /new.boot or something) and just mount it as /boot from now on 
so it uses the space or is that not a good idea?  I am sure I could easily copy 
the rpms/kernel stuff over to it and then unmounts the real /boot and mount 
this new area as /boot.
Can you administrators let me know what you think of all this?   Thanks in 
advance.
KM
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos