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

Fri Mar 12 19:25:58 UTC 2021
Kaushal Shriyan <kaushalshriyan at gmail.com>

On Fri, Mar 12, 2021 at 7:59 PM Rainer Duffner <rainer at ultra-secure.de>
wrote:

>
>
> > 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.
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos


Thanks for the reply. I am running this instance in AWS.

[root at ip-10-0-0-218 centos]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[root at ip-10-0-0-218 centos]#

>> Looks like you could move p3 to the end of the disk and then enlarge p2
and then grow the XFS on it.

Is there a way to move p3 to the end of the disk using fdisk or gparted CLI
tool?

Please suggest. Thanks in Advance.

Best Regards,

Kaushal