[CentOS] /boot partition too small

Wed Oct 11 01:20:36 UTC 2017
Robert Nichols <rnicholsNOSPAM at comcast.net>

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 server....in 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.