Hi Sisu,

Sorry – I understand now.  When you upload an image to glance it will get 
stored in the DevStackOSDomU by default, as that is where Swift is storing it’s 
data.
The data is likely in /opt/stack/data/swift but is likely still owned by the 
glance service account.  Unfortunately by rebooting the machine you caused 
devstack to restart.  It’s very possible that the glance image repository is 
not maintained between devstack runs – if so, the image could be ‘lost’ within 
swift.

We typically only use very small virtual machines for testing (which is the 
primary purpose of the devstack-setup) which is why we have not seen such space 
used in the DomU.

Bob

From: Sisu Xi [mailto:xis...@gmail.com]
Sent: 16 June 2014 16:36
To: xs-de...@lists.xenserver.org
Cc: openstack@lists.openstack.org
Subject: Re: [Openstack] [xs-devel] Delete the imported VM image to release 
space -- Sisu

Hi, Bob:

But when I port image into nova, I need to get it into DevStackOSDomU, right?

I just don't know why the disk is full. Here is the process:
1. port self-build image using glance image-create;
2. shutdown machine
3. boot machine up, the disk space is gone, and I don't know how to free it.

Thanks.

Sisu




On Mon, Jun 16, 2014 at 4:43 AM, Bob Ball 
<bob.b...@citrix.com<mailto:bob.b...@citrix.com>> wrote:
Nothing should be downloading files to DevStackOSDomU; they get downloaded 
straight into dom0 when you create an image.

Why do you think the missing disk space is related to mysql, or to /var?

Bob

From: 
xs-devel-requ...@lists.xenserver.org<mailto:xs-devel-requ...@lists.xenserver.org>
 
[mailto:xs-devel-requ...@lists.xenserver.org<mailto:xs-devel-requ...@lists.xenserver.org>]
 On Behalf Of Sisu Xi
Sent: 14 June 2014 23:19
To: xs-de...@lists.xenserver.org<mailto:xs-de...@lists.xenserver.org>; 
openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>
Subject: [xs-devel] Delete the imported VM image to release space -- Sisu

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@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@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


--
[https://dl.dropboxusercontent.com/u/268069/Sisu_Contact.jpeg]

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



--
[https://dl.dropboxusercontent.com/u/268069/Sisu_Contact.jpeg]

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@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to