← Back to team overview

openstack team mailing list archive

Re: [glance] how to export snapshot to local file system

 

Hi,

Why you are not use this


glance image-download <Image ID> --file filename.img


Br.

Umar
On Fri, Jan 18, 2013 at 11:26 AM, Wangpan <hzwangpan@xxxxxxxxxxxxxxxx>wrote:

> **
> I think you are right, and copy /var/lib/glance/images/xxxxxxxxxxx to
> remote host is the fastest way.
> You can check the snapshot by using it create an instance in the new
> openstack environment.
>
> 2013-01-18
>  ------------------------------
>  Wangpan
>  ------------------------------
>  *发件人:*Ajiva Fan
> *发送时间:*2013-01-18 14:08
> *主题:*[Openstack] [glance] how to export snapshot to local file system
> *收件人:*"openstack@xxxxxxxxxxxxxxxxxxx"<openstack@xxxxxxxxxxxxxxxxxxx>
> *抄送:*
>
>  dear all,
>
> i have deployed openstack essex on ubuntu 12.04 precise, there are
> some instances running for couple of days
> now the server becomes unstable, so i want to save my instances'
> snapshot to remote file system in order to use them in a new
> environment. i find that there is no such command in glance, so what
> should i do?
>
> i guess i can achieve it by following steps:
> 1. snapshot instance
> 2. locate the snapshot file in /var/lib/glance/images/xxxxxxxxxxx
> 3. copy this file to a remote host
> 4. upload this file by 'glance add' as disk_format=qcow2 to a new
> openstack environment
>
> is it correct? and is there any convenient way?
>
> thanks for any help
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Umar Draz
Network Architect

References