Shrink root Volume

General support questions
Post Reply
Posts: 4
Joined: 2019/05/21 09:32:14

Shrink root Volume

Post by NuwanthaD » 2019/11/07 12:36:29

Hi CentOS support,

How do we shrink volume in CentOS 7. Our real requirement is we have 200GB root partition need to reduce it to 100GB without damaging the data, how can we do it.
This VM runs on VMware ESXI 6.5,

Appreciate your help,

User avatar
Forum Moderator
Posts: 29120
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Shrink root Volume

Post by TrevorH » 2019/11/07 14:41:11

Check the output from df -hT / and see what filesystem is in use. If it's xfs then it cannot be shrunk. At all. You're in for a reinstall to fix that.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
Posts: 2933
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Shrink root Volume

Post by jlehtone » 2019/11/07 14:44:47

What is the filesystem on the volume? The default is XFS. It is not possible to shrink XFS.

With XFS you make a backup, create new and smaller volume, and restore to new volume.
With VM's you could possibly create new VM with "right size", copy data over, and then remove the original VM.

Post Reply

Return to “CentOS 7 - General Support”