Operations 2 min read

How to Shrink /home and Expand Root on CentOS 7

This guide walks through shrinking the /home partition, extending the root filesystem on a CentOS 7 server, handling busy mount issues, installing missing tools like fuser and xfsdump, resizing XFS, and safely remounting the partitions.

ITPUB
ITPUB
ITPUB
How to Shrink /home and Expand Root on CentOS 7

Background

The log server was originally set up with an unreasonable partition layout, leaving the /home filesystem oversized and the root filesystem lacking space.

Goal

Reduce the /home partition to about 100 GB and enlarge the root ( /) partition to accommodate growth.

Step 1 – Identify and Stop Processes Using /home

Attempting umount /home fails with “target busy”. The fuser command can reveal the offending processes, but on CentOS 7 it is missing.

Install the missing utility: yum install psmisc Now locate the processes: fuser -m /home Kill the identified PID (example 11757): kill -9 11757 After the process stops, unmount the filesystem:

umount /home
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxSystem AdministrationPartitioningCentOSXFS
ITPUB
Written by

ITPUB

Official ITPUB account sharing technical insights, community news, and exciting events.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.