Not enough disk space in filesystem for VM image

asked 2014-12-31 16:35:34 -0600

zhongguo gravatar image


I created a 10Gig VM image with virt-install, then used OpenStack Dashboard>Project>Compute>Images>CreateImage to add this image to my Images list.

While the image was uploading, I noticed that my Filesystem /dev/mapper/centos-root usage goes from 57% to 100%

[root@controller-node]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   50G   29G   22G  57% /
devtmpfs                  32G     0   32G   0% /dev
tmpfs                     32G  180K   32G   1% /dev/shm
tmpfs                     32G  1.2G   31G   4% /run
tmpfs                     32G     0   32G   0% /sys/fs/cgroup
/dev/mapper/centos-home  848G  9.8G  838G   2% /home

Then the VM image failed to complete the uploading process. The OpenStack Dashboard showed the image as "Killed". So I guess my /dev/mapper/centos-root partition is too small. I am assuming that the VM image was created on this partition. So my question is: is there anyway to create the VM image on the other partition /dev/mapper/centos-home which has plenty of room ?

Thank you for your help

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-01 02:58:02 -0600

cd /home glance image-create --name='name' --disk-format=qcow2 --container-format=bare --public < image.img

edit flag offensive delete link more

answered 2015-01-01 04:24:36 -0600

By default all uploads through horizon will go to /tmp directory.

You can change that by adding FILE_UPLOAD_TEMP_DIR=some-dir in

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-31 16:35:34 -0600

Seen: 1,015 times

Last updated: Jan 01 '15