Hi,
I want to add a extra disk to my lvm-thin storage, here what I did :
Format the new disk
(One primary partition )
Then
Extend volume group
Now I have :
So I tried to extend lvm-thin :
but I still get lv size of 3.70T:
How can I can solve this ?
Thanks
I want to add a extra disk to my lvm-thin storage, here what I did :
Format the new disk
cfdisk /dev/sdd
(One primary partition )
Code:
Model: ATA WDC WD6002FRYZ-0 (scsi)
Disk /dev/sdd: 6001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 6001GB 6001GB lvm
Then
pvcreate /dev/sdd1
Extend volume group
vgextend vmdata /dev/sdd1
Now I have :
Code:
vgdisplay vmdata
--- Volume group ---
VG Name vmdata
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 517
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 40
Open LV 4
Max PV 0
Cur PV 2
Act PV 2
VG Size <9.10 TiB
PE Size 4.00 MiB
Total PE 2384652
Alloc PE / Size 2384652 / <9.10 TiB
Free PE / Size 0 / 0
VG UUID lhtyEH-EYaQ-Od6L-FHvG-Qr6K-1YbD-K4dX4o
So I tried to extend lvm-thin :
lvresize --size 9.10T --poolmetadatasize 9.10T vmdata/vmstore
but I still get lv size of 3.70T:
Code:
lvdisplay vmdata/vmstore
--- Logical volume ---
LV Name vmstore
VG Name vmdata
LV UUID MhJUXw-ZrWF-xJhW-9UXF-iw1b-skRk-KS91no
LV Write Access read/write
LV Creation host, time pve, 2019-03-08 11:01:20 +0100
LV Pool metadata vmstore_tmeta
LV Pool data vmstore_tdata
LV Status available
# open 28
LV Size <3.70 TiB
Allocated pool data 33.13%
Allocated metadata 0.24%
Current LE 969014
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
How can I can solve this ?
Thanks