. .
"vgs", . - , , VSize 2GB.
$vgs
VG
stack-volumes 3 1 0 wz
stratos1 1 2 0 wz
(-). Openstack . , . - " ".
50 .
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=50G
losetup /dev/loop3 cinder-volumes
fdisk /dev/loop3
fdisk :
n
p
1
ENTER
ENTER
t
8e
w
root@stratos1:~
Physical volume "/dev/loop3" successfully created
" ".
root@stratos1:~
" "
See the details of the available physical devices. You will see the new device below.
root@stratos1:~# pvs
PV VG Fmt Attr PSize PFree
/dev/loop0 stack-volumes lvm2 a- 10.01g 10.01g
/dev/loop3 stack-volumes lvm2 a- 50.00g 50.00g
Now check the details of the volume groups by running the vgdisplay command. You will see that stack-volumesthere is more free space in the volume group (60 GB with 50 GB more).
root@stratos1:~# vgdisplay
--- Volume group ---
VG Name stack-volumes
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 303
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 3
Act PV 3
VG Size 60.00 GiB
PE Size 4.00 MiB
Total PE 23040
Alloc PE / Size 7680 / 30.00 GiB
Free PE / Size 15360 / 60.00 GiB
VG UUID bM4X5R-hC3V-zY5F-ZMVI-s7dz-Kpiu-tPQ2Zt
source
share