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?
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.

 
arnoldCommented:
df -k
mount
lvresize is the tool to use to resize an Logical Volume if that is your setup.
fdisk -l
lvmsdiskscan
pvdisplay
vgdisplay
lvdisplay

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.
1

Experts Exchange Solution brought to you by ConnectWise

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.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.