Expand XFS filesystem on CentOS Linux release 8.2.2004 (Core)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

Is there a way to expand xfs filesystem /dev/nvme0n1p2 which is 7.8G and
occupy the remaining free disk space of 60GB?

[root@ip-10-0-0-218 centos]# df -hT --total
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  1.7G     0  1.7G   0% /dev
tmpfs          tmpfs     1.7G     0  1.7G   0% /dev/shm
tmpfs          tmpfs     1.7G   23M  1.7G   2% /run
tmpfs          tmpfs     1.7G     0  1.7G   0% /sys/fs/cgroup
*/dev/nvme0n1p2 xfs       7.8G  7.0G  824M  90% /* ---->
expand /dev/nvme0n1p2 which is 7.8G and occupy the remaining free disk
space of 60GB.
/dev/nvme0n1p1 vfat      599M  6.4M  593M   2% /boot/efi
tmpfs          tmpfs     345M     0  345M   0% /run/user/1000
total          -          16G  7.0G  8.5G  46% -
[root@ip-10-0-0-218 centos]# fdisk -l
GPT PMBR size mismatch (20971519 != 125829119) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be
corrected by write.
*Disk /dev/nvme0n1: 60 GiB*, 64424509440 bytes, 125829120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E97B9FFA-2C13-474E-A0E4-ABF1572CD20C

Device            Start      End  Sectors  Size Type
/dev/nvme0n1p1     2048  1230847  1228800  600M EFI System
/dev/nvme0n1p2  1230848 17512447 16281600  7.8G Linux filesystem
/dev/nvme0n1p3 17512448 17514495     2048    1M BIOS boot
[root@ip-10-0-0-218 centos]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[root@ip-10-0-0-218 centos]#

Please suggest. Thanks in Advance.

Best Regards,

Kaushal
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux