How to resize linux volume in Openstack

Step-by-step guide

 openstack volume create --size <size_in_GB> <volume-name>
 openstack server add volume <server-name> <volume-name>
 
 fdisk /dev/vdb
  n
  w
 
 pvcreate /dev/vdb1
 vgextend VolGroup00 /dev/vdb1
 lvextend /dev/VolGroup00/root /dev/vdb1
 resize2fs /dev/mapper/VolGroup00-root