Pessoal,
tenho que AUMENTAR um filesystem no debian 10, com LVM, mas não estou conseguindo.
No VMware, aumentei o disco de 10 para 50GB.
No debian fiz um rescan e, com o fdisk -l, mostra que o /dev/sda foi pra 50GB.
Com o fdisk /dev/sda tento criar o sda3 mas ele só fica com 1023K, vejam.
==================================================
root@vmteste:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p):
Using default response p.
Partition number (3,4, default 3):
First sector (499712-104857599, default 499712):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (499712-501757, default 501757):
Created a new partition 3 of type 'Linux' and of size 1023 KiB.
Command (m for help): t
Partition number (1-3,5, default 5): 3
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'.
Command (m for help): w
The partition table has been altered.
Syncing disks.
==================================================
root@vmteste:~# fdisk -l
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: Virtual disk
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: 0x6e3d2448
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 20969471 20467714 9,8G 5 Extended
/dev/sda3 499712 501757 2046 1023K 8e Linux LVM
/dev/sda5 501760 20969471 20467712 9,8G 8e Linux LVM
==================================================
Disk: /dev/sda
Size: 50 GiB, 53687091200 bytes, 104857600 sectors
Label: dos, identifier: 0x6e3d2448
Device Boot Start End Sectors Size Id Type
>> /dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 20969471 20467714 9,8G 5 Extended
└─/dev/sda5 501760 20969471 20467712 9,8G 8e Linux LVM
/dev/sda3 499712 501757 2046 1023K 8e Linux LVM
Free space 20969472 104857599 83888128 40G
==================================================
Como disse, desse modo estou tentando AUMENTAR UM DISCO JÁ EXISTENTE.
Quando ADICIONO outro disco e atacho ele no LVM, consigo aumentar.
Alguém sabe como faz?
Obrigado!