On Tue, Oct 10, 2017 at 10:36:16AM -0400, Stephen John Smoogen wrote:> On 10 October 2017 at 09:55, KM <info4km at yahoo.com> 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 -- fredex at fcshome.stoneham.ma.us ----------------------------- I can do all things through Christ who strengthens me. ------------------------------ Philippians 4:13 -------------------------------
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 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 <fredex at fcshome.stoneham.ma.us> wrote: On Tue, Oct 10, 2017 at 10:36:16AM -0400, Stephen John Smoogen wrote:> On 10 October 2017 at 09:55, KM <info4km at yahoo.com> 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 -- fredex at fcshome.stoneham.ma.us ----------------------------- ? ? ? ? ? ? ? ? ? ? ? I can do all things through Christ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? who strengthens me. ------------------------------ Philippians 4:13 ------------------------------- _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
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 > > 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
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% /homeYour 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.