Ask Your Question
0

Not enough disk space in filesystem for VM image

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

zhongguo gravatar image

Hi

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
0

answered 2015-01-01 02:58:02 -0500

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

edit flag offensive delete link more
0

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

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

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

https://docs.djangoproject.com/fr/1.5...

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: 2014-12-31 16:35:34 -0500

Seen: 825 times

Last updated: Jan 01 '15