Ask Your Question
0

how to resize cinder-volumes ? [closed]

asked 2015-02-26 00:57:46 -0500

pandiarajan.s gravatar image

i have 500GB space on my servers

after installation i canot create volume > 20GB in dashboard

but can not create volumes that exceed 20GB complex value

How to resize cinder ?

My config is:

[root@openstack ~]# pvdisplay

--- Physical volume ---

PV Name /dev/sda2

VG Name centos_openstack

PV Size 465.27 GiB / not usable 3.00 MiB

Allocatable yes (but full)

PE Size 4.00 MiB

Total PE 119109

Free PE 0

Allocated PE 119109

PV UUID FBFZf6-5bXT-uJuv-VlHt-U7QJ-m3e0-RRl5mv

--- Physical volume ---

PV Name /dev/loop1

VG Name cinder-volumes

PV Size 20.60 GiB / not usable 0

Allocatable yes

PE Size 4.00 MiB

Total PE 5273

Free PE 5273

Allocated PE 0

PV UUID rDSMki-BIlW-HwdO-YlN7-ETo5-k4r1-5r9j2E

[root@openstack ~]# cinder list

+----+--------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +----+--------+--------------+------+-------------+----------+-------------+ +----+--------+--------------+------+-------------+----------+-------------+

can someone help me? I searched all over the internet but I canot found information how to resise cinder-volumes..

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by pandiarajan.s
close date 2015-02-26 22:25:07.773753

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-26 02:05:24 -0500

madhank gravatar image

updated 2015-02-26 02:07:09 -0500

HI check this first

cinder-manage service list

you need to have all your cinder service in smile

then do this

Create a Cinder volume. Our example uses m2 for the volume name and is 20GB in size:

cinder create --display-name m2 20

Attach the volume to a running instance. Our examples attaches the ID volume (UUID of the m2 volume) to an Instance named test.

nova volume-attach test <id of="" m2=""> /dev/vdb

Now you login into the vm with name test and check

fdisk -i

it will show the /dev/vdb

now you can create your new partition using the below

fdisk /dev/vdb

mkfs.ext3 /dev/vdb1

mkdir /cinder-test

mount /dev/vdb1 /cinder-test

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-26 00:57:46 -0500

Seen: 1,619 times

Last updated: Feb 26 '15