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

Sisu Xi xisisu at gmail.com
Mon Jun 16 15:33:11 UTC 2014


Hi, Chao:

Thanks for the reply. the folder is empty on my image.

stack at DevStackOSDomU:~$ ls /opt/stack/data/glance/images/
stack at DevStackOSDomU:~$

Sisu


On Sat, Jun 14, 2014 at 6:50 PM, 严超 <yanchao727 at gmail.com> wrote:

> If you're using devstack and glance to keep the image, you can find your
> images in /opt/stack/data/glance/images.
>
> *Best Regards!*
>
>
> *Chao Yan--------------**My twitter:Andy Yan @yanchao727
> <https://twitter.com/yanchao727>*
>
>
> *My Weibo:http://weibo.com/herewearenow
> <http://weibo.com/herewearenow>--------------*
>
>
> 2014-06-15 6:19 GMT+08:00 Sisu Xi <xisisu at gmail.com>:
>
>>  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
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>


-- 


*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/20140616/b8b6f43b/attachment.html>


More information about the Openstack mailing list