How do I resize the root partition in RHEL 7.3

Latest response

Hi all, how do i resize the root partition to give more space to my home partition? I'm using RHEL 7.3 and RAID 5.

My current disk space:
df

My current disk partition:
fdisk

Thanks.

Responses

You don't. XFS doesn't support shrinking.

For this much of a size difference, do a reinstall.

There's no other workaround? It's painful to do a reinstall. Thanks for the info.

In theory you could copy everything off 'rhel-root' to another system (or external disk), shrink the LV, recreate the XFS filesystem, then copy everything back. If it doesn't work however, you'll need to re-install the system.

For the time it takes to successfully plan and execute that, it's probably quicker to re-install the system

Thanks.

I've attempted to grow (you are interested in shrinking) a root "/" volume on a RHEL 7 system, and even though I did lots of research, and lots of preparation, it went very poorly, and I ended up reloading the system. There's enough risk with attempting atypical resizing of the root "/" partition that the pain of that will out-weigh reloading or kickstarting the system.

I agree with Marcus & Jamie above, yes, it's painful to reload, but it's the best viable option. You could create a kickstart from the /root/anaconda-ks.cfg and adjust the partitions accordingly to make it a little easier. You could stage the kickstart on another Linux system on a web server that can be "seen" on the network by the system you're kickstarting.

Kind Regards, -RJ

RJ, thanks for the info.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.