CentOS7 – Remove /home And Expand / After Install?

Home » CentOS » CentOS7 – Remove /home And Expand / After Install?
CentOS 1 Comment

I did a default install and after installing some other things I
realized that a lot of space was allocated to /home as an lvm that is never going to be used. Is it possible to remove the lvm and grow the root (xfs) filesystem without starting over?

One thought on - CentOS7 – Remove /home And Expand / After Install?

  • That should be very possible

    For example if you have LVM for your root and home filesystems like the following

    /dev/Volume00/rootfs
    /dev/Volume00/home

    Do a pvscan to see how much space is available in your Volume Group

    /usr/sbin/pvscan

    If you have anything on /home you want then you can arrange to move it, tar it up, move it to the side, whatever. You can then:

    umount /home sed -i -e