Extending /boot Partition from 200M to 500M on CentOS / RHEL
Some dev env, you will have multiple kernel instances and takes up lots of space.
Here is the step to extend /boot partition on your system.
We will be using LVM to create /boot partition.
Or you can use a physical partition as well if possible.
1. Check the available space on your Volume Group
# vgs; lvs
2. Create a logical volume
# lvcreate -n boot -L 500M root-boot
or
# lvcreate -n boot -L 500M /dev/root-boot/boot
3. Create filesystem and add entry to fstab and mount it.
# lvscan
# mkfs.xfs /dev/root-boot/boot
# vi /etc/fstab
/dev/root-boot/boot /boot1 xfs defaults 0 0
# mount -a
4. copy all files from /boot to /boot1
# cp -rp /boot/* /boot1
5. Comment out old entry for /boot and change mount point for new device to /boot.
# /dev/sda1 /boot xfs default 0 0
/dev/root-boot/boot /boot xfs defaults 0 0
6. Reboot your machine and verify your system is up and running..
# reboot
No comments:
Post a Comment