cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edison Su <Edison...@citrix.com>
Subject RE: [ASF40] [QA] Issue with volume Snapshot on KVM
Date Wed, 26 Sep 2012 23:33:45 GMT
http://libvirt.org/formatsnapshot.html: if you specify snapshot='external', a new file will
be created on the primary storage, which points to original disk. Then original disk will
be read-only, we can back up this file to secondary storage.

> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> Sent: Wednesday, September 26, 2012 3:29 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [ASF40] [QA] Issue with volume Snapshot on KVM
> 
> By external do you mean the qemu that comes with 6.3? In other words,
> nothing has to be done for 6.3 other than removing/changing the check?
> 
> On Wed, Sep 26, 2012 at 4:23 PM, Edison Su <Edison.su@citrix.com> wrote:
> > The snapshot for KVM is not supported right now.
> > In CS 3.x, we use patched qemu-kvm to take snapshot, and backup the
> snapshot from qcow2 image to secondary storage. In ASF 4.x, we will not
> patch qemu-kvm again. Instead, we will use external snapshot added in
> 6.3. But it hasn't done yet, maybe in 4.1 release?
> >
> >> -----Original Message-----
> >> From: Sowmya Krishnan [mailto:sowmya.krishnan@citrix.com]
> >> Sent: Wednesday, September 26, 2012 4:39 AM
> >> To: cloudstack-dev@incubator.apache.org
> >> Subject: [ASF40] [QA] Issue with volume Snapshot on KVM
> >>
> >> Hi,
> >>
> >> I am trying to take snapshot of volume on KVM (RHEL6.3) and I am
> >> getting an exception that says it isn't supported:
> >>
> >> 2012-09-26 15:09:11,411 ERROR [cloud.api.ApiDispatcher] (Job-
> Executor-
> >> 16:job-27) Exception while executing CreateSnapshotCmd:
> >> com.cloud.utils.exception.CloudRuntimeException: KVM Snapshot is not
> >> supported on cluster: 5
> >>         at
> >>
> com.cloud.storage.snapshot.SnapshotManagerImpl.createSnapshot(SnapshotM
> >> anagerImpl.java:424)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator$InterceptorDispatcher.interc
> >> ept(ComponentLocator.java:1231)
> >>         at
> >>
> com.cloud.storage.snapshot.SnapshotManagerImpl.createSnapshot(SnapshotM
> >> anagerImpl.java:130)
> >>         at
> >>
> com.cloud.api.commands.CreateSnapshotCmd.execute(CreateSnapshotCmd.java
> >> :155)
> >>         at
> com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
> >>         at
> >>
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:432)
> >>         at
> >>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >>         at
> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >>         at
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja
> >> va:1110)
> >>         at
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> >> ava:603)
> >>         at java.lang.Thread.run(Thread.java:679)
> >>
> >> I am on build: Git Revision:
> 995bab60385f7d663680ef6f5342056c6db3d305
> >> It's working fine on Ubuntu 12.04 and XS 6.0.2.
> >>
> >> Here's the DB extract of 'host' table on RHEL6.3 vs Ubuntu12.04:
> >>
> >> RHEL 6.3:
> >> =======
> >>
> >> mysql> select id, status, type, hypervisor_type, capabilities from
> >> cloud.host;
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> | id | status | type               | hypervisor_type | capabilities
> |
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> |  1 | Up     | Routing            | KVM             | hvm
> |
> >> |  2 | Alert  | SecondaryStorage   | None            | NULL
> |
> >> |  3 | Up     | SecondaryStorageVM | NULL            | NULL
> |
> >> |  4 | Up     | ConsoleProxy       | NULL            | NULL
> |
> >> |  5 | Up     | Routing            | KVM             | hvm
> |
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> 5 rows in set (0.00 sec)
> >>
> >> Ubuntu 12.04:
> >> ===========
> >>
> >> mysql>  select id, status, type, hypervisor_type, capabilities from
> >> cloud.host;
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> | id | status | type               | hypervisor_type | capabilities
> |
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> |  1 | Up     | Routing            | KVM             | hvm
> |
> >> |  2 | Alert  | SecondaryStorage   | None            | NULL
> |
> >> |  3 | Up     | ConsoleProxy       | NULL            | NULL
> |
> >> |  4 | Up     | SecondaryStorageVM | NULL            | NULL
> |
> >> |  5 | Up     | Routing            | KVM             | hvm,snapshot
> |
> >> |  6 | Up     | Routing            | KVM             | hvm
> |
> >> +----+--------+--------------------+-----------------+--------------
> +
> >> 6 rows in set (0.00 sec)
> >>
> >>
> >> Am I missing any additional package to be installed for snapshot to
> >> work on KVM?
> >>
> >> I have the following versions of qemu-img and qemu-kvm installed on
> my
> >> host:
> >>
> >> [root@rhel63 ~]# rpm -qa | grep qemu
> >> gpxe-roms-qemu-0.9.7-6.9.el6.noarch
> >> qemu-img-0.12.1.2-2.295.el6.x86_64
> >> qemu-kvm-0.12.1.2-2.295.el6.x86_64
> >>
> >> Thanks,
> >> Sowmya
> >

Mime
View raw message