Estou tentando aumentar o tamanho do meu pv/vg/lv depois de adicionar um novo gabinete de armazenamento e criei 2 novos volumes e anexei-os ao host. Embora o aumento de PV e VG tenha funcionado muito bem, parece que LV não vê nenhum espaço livre. Talvez alguém possa me indicar a direção certa por que isso não está funcionando?
O que foi feito até agora:
rescan-scsi-bus.sh -r
pvcreate /dev/mapper/mpathe
Physical volume "/dev/mapper/mpathe" successfully created.
pvcreate /dev/mapper/mpathf
Physical volume "/dev/mapper/mpathf" successfully created.
vgextend vgall /dev/mapper/mpathe
Volume group "vgall" successfully extended
vgextend vgall /dev/mapper/mpathf
Volume group "vgall" successfully extended
mas agora lvextend mostra isso:
lvextend -l +100%FREE /dev/vgall/lvol0
Using stripesize of last segment 4.00 KiB
Rounding size (152285551 extents) down to stripe boundary size for segment (152285548 extents)
Size of logical volume vgall/lvol0 changed from 478.39 TiB (125408168 extents) to 478.51 TiB (125439052 extents).
Logical volume vgall/lvol0 successfully resized.
o que basicamente não é nada, e as execuções subsequentes mostram:
lvextend -l +100%FREE /dev/vgall/lvol0
Using stripesize of last segment 4.00 KiB
Rounding size (152285551 extents) down to stripe boundary size for segment (152285548 extents)
Size of logical volume vgall/lvol0 unchanged from 478.51 TiB (125439052 extents).
Command failed with status code 5.
Saída do display PV / LV / VG abaixo:
--- Physical volume ---
PV Name /dev/mapper/mpatha
VG Name vgall
PV Size <119.60 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 31352042
Free PE 0
Allocated PE 31352042
--- Physical volume ---
PV Name /dev/mapper/mpathb
VG Name vgall
PV Size <119.63 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 31359763
Free PE 0
Allocated PE 31359763
--- Physical volume ---
PV Name /dev/mapper/mpathc
VG Name vgall
PV Size <119.60 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 31352042
Free PE 0
Allocated PE 31352042
--- Physical volume ---
PV Name /dev/mapper/mpathd
VG Name vgall
PV Size <119.63 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 31359763
Free PE 0
Allocated PE 31359763
--- Physical volume ---
PV Name /dev/mapper/mpathe
VG Name vgall
PV Size <51.27 TiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 13438976
Free PE 13431255
Allocated PE 7721
--- Physical volume ---
PV Name /dev/mapper/mpathf
VG Name vgall
PV Size 51.20 TiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 13422965
Free PE 13415244
Allocated PE 7721
--- Volume group ---
VG Name vgall
System ID
Format lvm2
Metadata Areas 6
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 6
Act PV 6
VG Size 580.92 TiB
PE Size 4.00 MiB
Total PE 152285551
Alloc PE / Size 125439052 / 478.51 TiB
Free PE / Size 26846499 / 102.41 TiB
--- Logical volume ---
LV Path /dev/vgall/lvol0
LV Name lvol0
VG Name vgall
LV Write Access read/write
LV Status available
# open 1
LV Size 478.51 TiB
Current LE 125439052
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:6
lvdisplay -m /dev/vgall/lvol0
--- Logical volume ---
LV Path /dev/vgall/lvol0
LV Name lvol0
VG Name vgall
LV UUID MKcUYB-dAoJ-qJq1-hQEy-ArGl-c0bi-WKY0bU
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2023-10-04 20:00:04 +0200
LV Status available
# open 1
LV Size 478.51 TiB
Current LE 125439052
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:6
--- Segments ---
Logical extents 0 to 125408167:
Type striped
Stripes 4
Stripe size 4.00 KiB
Stripe 0:
Physical volume /dev/mapper/mpathb
Physical extents 0 to 31352041
Stripe 1:
Physical volume /dev/mapper/mpathd
Physical extents 0 to 31352041
Stripe 2:
Physical volume /dev/mapper/mpatha
Physical extents 0 to 31352041
Stripe 3:
Physical volume /dev/mapper/mpathc
Physical extents 0 to 31352041
Logical extents 125408168 to 125439051:
Type striped
Stripes 4
Stripe size 4.00 KiB
Stripe 0:
Physical volume /dev/mapper/mpathe
Physical extents 0 to 7720
Stripe 1:
Physical volume /dev/mapper/mpathf
Physical extents 0 to 7720
Stripe 2:
Physical volume /dev/mapper/mpathb
Physical extents 31352042 to 31359762
Stripe 3:
Physical volume /dev/mapper/mpathd
Physical extents 31352042 to 31359762
Na página de manual, ele deve ser usado
lvextend -l+100%FREE vgall/lvol0
opcionalmente-r
para aumentar o FS ao mesmo tempo. Para mim funciona no Fedora40:lvextend -l+100%FREE home_vg/New_home -r
Size of logical volume home_vg/New_home changed from 465,70 GiB (119220 extents) to 465,74 GiB (119230 extents).
por favor poste a saída de:
se o tipo de segmento for "distribuído" e não "linear", você precisará adicionar um terceiro novo disco para estender o LV.
Ah, sim, obrigado por me apontar na direção certa. O LV foi inicialmente criado com 4 PV's simultaneamente, e após adicionar apenas 2 novos PV's tive que executar: