[CentOS] Expand XFS filesystem on CentOS Linux release 8.2.2004 (Core)

Fri Mar 12 14:29:16 UTC 2021
Rainer Duffner <rainer at ultra-secure.de>


> Am 12.03.2021 um 15:23 schrieb Thomas Mueller <thomas at chaschperli.ch>:
> 
> On 3/12/21 1:45 PM, Kaushal Shriyan wrote:
>> Is there a way to expand xfs filesystem /dev/nvme0n1p2 which is 7.8G and
>> occupy the remaining free disk space of 60GB?
> 
> parted porbably could do it. there is also a gparted gui (https://gparted.org/ <https://gparted.org/>), but doesn't seem to be in CentOS 8.
> 
> Maybe boot from a livecd that includes the gui tool, like https://gparted.org/livecd.php <https://gparted.org/livecd.php> or https://www.system-rescue.org/ <https://www.system-rescue.org/>


If the downtime is acceptable, that’s almost always the smartest thing to do, IMO.