Unable to create more than 2 GB in openstack

I installed OpenStack on my local machine. I can perform all functions, such as loading an image, creating and starting an instance, binding a floating ip, etc. But I can not create a volume of more than 2 GB. If I create any volume larger than 2 GB, then it gives me the status "error" on my panel. Creates less than 2 GB.

+5
source share
3 answers

It looks like your VG can only be 2G in size? Try searching deeper in volume logs, or do vgs / lvs, and look at your available and used features.

+2
source

DevStack, 5 . , / "pvs" "vgs" ( root).

0

. .

"vgs", . - , , VSize 2GB.

$vgs
  VG            #PV #LV #SN Attr   VSize   VFree
  stack-volumes   3   1   0 wz--n-  10.00g 10.00g
  stratos1        1   2   0 wz--n- 931.09g 48.00m

(-). 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:~# pvcreate /dev/loop3
  Physical volume "/dev/loop3" successfully created

" ".

root@stratos1:~# vgextend stack-volumes  /dev/loop3

" "

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
0
source

All Articles