[Openstack] Delete the imported VM image to release space -- Sisu

Sisu Xi xisisu at gmail.com
Sat Jun 14 22:19:18 UTC 2014


Hi, all:

I am using OpenStack with XenServer. I am using a pre-build image found in:
http://downloads.vmd.citrix.com/OpenStack/
The image file is devstack-havana.xva.

This image has a disk size of 40G, I tried to import a self-build 15G
image, it worked just fine.

When I reboot the machine, the previously imported 15G image is gone (which
is expected).
stack at DevStackOSDomU:~$ glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
| ID                                   | Name                            |
Disk Format | Container Format | Size     | Status |
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
| 22bcc4ed-c412-495d-995c-bdfc571e0991 | cirros-0.3.0-x86_64-disk        |
vhd         | ovf              | 9220018  | active |
| 93aefd5f-3e75-4969-a013-e49e9c85163d | cirros-0.3.1-x86_64-uec         |
ami         | ami              | 25165824 | active |
| 4d63a0d5-91e0-4fcb-944c-9fa25e7549e8 | cirros-0.3.1-x86_64-uec-kernel  |
aki         | aki              | 4955792  | active |
| d8c961b7-5fe1-4520-8fa3-8bba97729eeb | cirros-0.3.1-x86_64-uec-ramdisk |
ari         | ari              | 3714968  | active |
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+


However, the disk-space is not released. And I cannot find the previously
imported image.
---------result of df-ah---------
root at DevStackOSDomU:/var/lib/mysql# df -ah
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       38G   33G  3.1G  92% /
proc               0     0     0    - /proc
sysfs              0     0     0    - /sys
none               0     0     0    - /sys/fs/fuse/connections
none               0     0     0    - /sys/kernel/debug
none               0     0     0    - /sys/kernel/security
udev            1.5G  4.0K  1.5G   1% /dev
devpts             0     0     0    - /dev/pts
tmpfs           300M  288K  300M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.5G     0  1.5G   0% /run/shm
none               0     0     0    - /proc/xen

I checked the /var/lib/mysql, and also tried to use "du -a /var | sort -n
-r | head -n 10" to find the top 10 files, but still cannot find any file
larger than 1G.

Can anyone help me with this?

Thanks very much!

Sisu


-- 


*Sisu Xi, PhD Candidate*

http://www.cse.wustl.edu/~xis/
Department of Computer Science and Engineering
Campus Box 1045
Washington University in St. Louis
One Brookings Drive
St. Louis, MO 63130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140614/889582ab/attachment.html>


More information about the Openstack mailing list