Есть диск 1 Тб. На нём есть раздел 500 Гб. Как его расширить до 1 Тб?
[root@fs ~]# vgdisplay -v
No volume groups found.
[root@fs ~]# vgs -v
No volume groups found.
[root@fs ~]# lvextend /dev/mapper/centos-srv -L +500G
Volume group "centos" not found
Cannot process volume group centos
[root@fs ~]# lvscan -v
No volume groups found.
[root@fs ~]# fdisk -l
Disk /dev/sda: 1.1 TiB, 1209462790144 bytes, 2362232012 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: dos
Disk identifier: 0x000bfdcc
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 1021321215 1019222016 486G 8e Linux LVM
/dev/sda3 1021321216 2362232011 1340910796 639.4G 8e Linux LVM
Disk /dev/mapper/centos-root: 50 GiB, 53687091200 bytes, 104857600 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
Disk /dev/mapper/centos-swap: 16 GiB, 17179869184 bytes, 33554432 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
Disk /dev/mapper/centos-srv: 420 GiB, 450971566080 bytes, 880803840 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
/dev/sda3 можно удалить.
Файловая система - XFS.
Centos 8.