Ask Your Question
0

instance launched with flavour doesn't add required Hard disk

asked 2018-06-20 09:33:49 -0500

I have launched the VM with Flavor m1.xlarge with assigned 160 GB Root Disk

image description

The Instance is running properly

The disk space shows only 6Gig

image description

The fdisk doesnt show required number of GBs

image description

How does i will get disk space from the flavour without using volume, I have enough space in compute nodes

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2018-06-20 20:25:51 -0500

fdisk tells you this:

Disk /dev/vda: 171.8GB

Your problem is that this disk has two small partitions: vda2 is a 7GB physical volume containing the root logical volume, and vda1 the 1GB boot partition. The rest of vda is free.

I don't know whether it is Nova or your image that determines how the disk is partitioned. There might be ways to influence the partitioning at instance launch time, but if so I don't know how.

To use the remaining space on your running instance, you could either create another physical volume or increase the size of vda2 and use pvresize to adapt the physical volume size.

Here is somebody with the same problem. Googling for openstack instance disk partition gives you more such results.

edit flag offensive delete link more
0

answered 2018-07-10 18:52:03 -0500

updated 2018-07-10 18:56:49 -0500

one other issue... is that if you try to be "helpful" and setup the storage partitions as mount points then the access rights are incorrect for the volumes to be written. Check the R/W group for the area you are storing the volumes in.

Also check(you may need the correct repos, or slightly different commands):

1.sudo yum install cloud-init 2.sudo yum install cloud-utils-growpart

edit flag offensive delete link more
0

answered 2018-07-06 17:19:20 -0500

tze gravatar image

Your disk is correct, you need cloud-init (or your action) to resize partions.

edit flag offensive delete link more
0

answered 2018-06-25 02:50:28 -0500

theque42 gravatar image

Afaik: Assuming your using a cloud-enabled version of linux, the diskconfig should be done by cloud init on first boot.

https://cloudinit.readthedocs.io/en/l...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-06-20 09:33:49 -0500

Seen: 94 times

Last updated: Jul 10