Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43247F5DF for ; Tue, 9 Apr 2013 02:11:36 +0000 (UTC) Received: (qmail 84509 invoked by uid 500); 9 Apr 2013 02:11:35 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 84465 invoked by uid 500); 9 Apr 2013 02:11:35 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 84457 invoked by uid 99); 9 Apr 2013 02:11:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2013 02:11:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shadowsor@gmail.com designates 209.85.217.169 as permitted sender) Received: from [209.85.217.169] (HELO mail-lb0-f169.google.com) (209.85.217.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2013 02:11:29 +0000 Received: by mail-lb0-f169.google.com with SMTP id p11so6367797lbi.28 for ; Mon, 08 Apr 2013 19:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ohf+eIVBcUOpErqQW4WHkgDRhRYxK/tyPeCmr1mzjAA=; b=UjTjMQFC/GF252SHxAjpXPWVK+d0W2xy+4jTNRN7POl5Bzfssy27vchoUk2OkLt0E6 7ifGyMJByNDcotmXC2iaYdoef/XCWnBSGe0ANyCs9qpDX/ZKGiUZxGoRVjDC4e7sic02 CQg1LsbIvTRON4dObtVYbj6oPQAFwx9/nNdaLmD06y9vj/Pl25UHZ9UHQG/Oo9DhdjeQ KX3WBRUnpaBzkHB+Dfqroh/V0eOBxJK0Sod61b1r5DN071kJquEQjAzaN9SE6aFLP3py ejxxKDfZIwp+Hcq2yfFufREVrPW7zlKRUUNE1kO9YXG7CB1YEM6N5NT+G70rnA74NYyZ lUcg== MIME-Version: 1.0 X-Received: by 10.152.122.100 with SMTP id lr4mr13041180lab.28.1365473469003; Mon, 08 Apr 2013 19:11:09 -0700 (PDT) Received: by 10.114.176.97 with HTTP; Mon, 8 Apr 2013 19:11:08 -0700 (PDT) Received: by 10.114.176.97 with HTTP; Mon, 8 Apr 2013 19:11:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Apr 2013 20:11:08 -0600 Message-ID: Subject: Re: [DISCUSS] pause VM From: Marcus Sorensen To: dev@cloudstack.apache.org Cc: cloudstack-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d042ef66111fb0004d9e41179 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042ef66111fb0004d9e41179 Content-Type: text/plain; charset=ISO-8859-1 Perhaps. I think there are separate issues here. There is volume snapshot and vm snapshot. If the hypervisor is capable of making volumes consistent , but VM snapshot is more about saving running state, then the two may not serve the same purpose when leveraging san-based snapshots. Its absolutely possible to pause the VM, quiesce the disks, and then snapshot them consistently utilizing underlying storage capabilities. But we are getting off in the weeds here with a single example, when what I want to discuss is pausing a VM in general. On Apr 8, 2013 6:19 PM, "Kelven Yang" wrote: > > > On 4/8/13 4:19 PM, "Marcus Sorensen" wrote: > > >Oh yes, I know these things, but here's my point. You said: > > > >"When CloudStack takes a snapshot of volume, it already utilizes snapshot > >feature provided by hypervisor to allow taking point of time storage image > >in a safe manner from operating system point of view." > > > >What about five volumes? Can we ensure they are all snapshotted at that > >same point in time without also pausing the VM, in addition to using those > >hypervisor-provided features? For example, let's say the VM is using a > >volume manager and striping data across five data disks, we absolutely > >have > >to take all data disk snapshots at the same point in such a scenario. We > >of > >course have to rely on the user to tell us that they want this, but we > >should have the capability. > > > >If we already have a VM snapshot feature that does every connected disk > >simultaneously while the VM is suspended, or the hypervisor can do it for > >us by quickly pausing/snapshotting/resuming seamlessly then fine, that's > >great. It just didn't seem like that functionality existed now, so I was > >wondering if anyone is working on it. > > I'm not sure using the tactic to pause a VM for the purpose of ensuring > full data integrity is the right answer for the use case you pointed. As > far as I know for VMware hypervisors, taking a VM snapshot does all the > things your mentioned above (quiesce the guest file system, snapshot > memory etc). Xen Server may be a little different, for crash consistency, > I think we ask user to stop a VM(instead of pausing it) before taking a > volume snapshot. > > So the question is, can "pausing VM" offer what we are looking for or is > it a half-completed solution? Forcely-pausing a VM to offer a not ensured > solution to customer is what I'm worrying about. > > -Kelven > > > > >That aside, it seems like all of the hypervisors CS controls provide their > >own UI to pause a VM. Is it something that has been discussed? > > > > > > > > > >On Mon, Apr 8, 2013 at 4:16 PM, Kelven Yang > >wrote: > > > >> > >> > >> On 4/8/13 1:39 PM, "Marcus Sorensen" wrote: > >> > >> >Has anyone put together a suggestion for adding a 'paused' state to > >> >virtual > >> >machines? Or is anyone working on it? This seems fairly > >>straightforward, > >> >and I think we may need the functionality going forward. Even if people > >> >rarely use it themselves, if storage solutions are going to offer > >> >snapshots > >> >they may want to pause the VM in order to get an atomic snapshot if > >>the VM > >> >has multiple disks. So at least internally it may be a useful utility. > >> > >> Pause VM itself can not ensure data integrity. True data integrity can't > >> be ensured without participant of guest OS and related application (for > >> example, Microsoft offers Volume Shadow Copy Service to orchestrate and > >> allow applications to participate the process via a set of tools and API > >> interaction to achieve that). > >> > >> When CloudStack takes a snapshot of volume, it already utilizes snapshot > >> feature provided by hypervisor to allow taking point of time storage > >>image > >> in a safe manner from operating system point of view. The ability of > >> pausing VM is not mandatory in this case, although pausing/resuming VM > >>may > >> be useful in certain use case, it does not seem to be in any urgency or > >> fit naturally in general cloud-operations. > >> > >> -Kelven > >> > >> > > >> > >> > > --f46d042ef66111fb0004d9e41179--