Reduce RedHat "Home" volume created after the installation, and the file system is XFS.

Hello team,

After a "Next", "Next" RedHat installation, where most of the unique logical storage was unnecessarily assigned to a LVM Volume used for the "home" folder...

How can I take back all of this space and use it for something else (i.e. swap or root)? I have made it often with other file systems, but XFS does not allow it. What should be the best way to go without reinstalling it?
LVL 15
Schnell SolutionsSystems Infrastructure EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

df -k
lvresize is the tool to use to resize an Logical Volume if that is your setup.
fdisk -l

The other option, is to unmount /home
and mount it as /mnt
copy the data from /mnt to the /home path.
Then delete the partition now mounted on /mnt and repurpose the space, make sure to copy the data from the path /home to the new partition while mounted as /mnt and ...... then the partition can be mounted overlaying the /home mount point.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Schnell SolutionsSystems Infrastructure EngineerAuthor Commented:
Great. I was doing something similar some minutes ago and I was able to make it.

Basically the same idea that you are expressing, the only difference was that I made a dump of /home to a localfile. Recreated the /home lvm and then restored the dump.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.