Expanding disk size in CentOS8

fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 41943039 39843840 19G 8e Linux LVM
  106  reboot
107 pvcreate /dev/sda3
108 vgdisplay
110 vgextend cs /dev/sda3
111 lvdisplay
115 lvextend /dev/cs/root /dev/sda3
119 xfs_growfs /dev/cs/root
120 df -h
(base) [user@localhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cs-root 100G 18G 83G 18% /

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store