On 01/07, Salman Sheikh wrote:
> Hi all,
>
> How we can add the more disk to cinder, as I have created the
> cinder-volumes on one disk (/sdb) the sdb is 500Gb, if i want to increase
> the the size of cinder-volumes then how we extend the size of
> cinder-volumes. how we can add more disk in order to increase the size of
> cinder-volume. Kindly advise
Hi Salman,
You don't mention the cinder driver or anything, so I'm going to assume
you are using the LVM driver with default's cinder-volumes VG (Volume
Group) on the bare disk (no partition).
If that's the case, you'll need an additional disk (or loopback device),
create a PV (Physical Volume) on it, and add it to the cinder-volumes
VG.
Fortunately the LVM command that extends a VG can do the PV creation
automatically, so if for example you have added /dev/sdc to your system
and you want to use it for Cinder volumes you can:
- First check the current status of the VG:
$ sudo vgs
- Add the device:
$ sudo vgextend cinder-volumes /dev/sdc --debug
- Confirm the VG has grown:
$ sudo vgs
Cheers,
Gorka.