qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mark Trumpold <markt@netqa.com>
To: Wouter Verhelst <w@uter.be>
Cc: nbd-general@lists.sourceforge.net,
	Stefan Hajnoczi <stefanha@gmail.com>,
	bonzini@stefanha-thinkpad.redhat.com,
	Paul Clements <Paul.Clements@steeleye.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Hibernate and qemu-nbd
Date: Wed, 25 Sep 2013 07:42:40 -0700	[thread overview]
Message-ID: <CE6841F5.9032%markt@netqa.com> (raw)
In-Reply-To: <523D6E15.3010004@uter.be>

Hello Wouter,

Thank you for your input.

I replayed the test as follows:

  -> qemu-nbd -p 2000 -persist /root/qemu/q1.img &
  -> nbd-client localhost 2000 /dev/nbd0
  -> echo reboot >/sys/power/disk
  -> echo disk >/sys/power/state

The "reboot" is a handy way to test, as it goes through the
complete hibernate cycle and returns to the prompt.

In this case the client DID try to reconnect as you suggest,
however the 'qemu-nbd' server side had exited, so no go.

Regards,
Mark T.


On 9/21/13 2:59 AM, "Wouter Verhelst" <w@uter.be> wrote:

>On 20-09-13 20:00, Mark Trumpold wrote:
>> Stefan,
>> 
>> So, I tried the following:
>> 
>>   -> qemu-nbd -p 2000 /root/qemu/q1.img &
>>   -> nbd-client localhost 2000 /dev/nbd0 &
>
>That won't work. nbd-client will only try the reconnect thing if you use
>the "-persist" option.
>
>Also, nbd-client will do a fork(), so the & isn't necessary.
>
>-- 
>This end should point toward the ground if you want to go to space.
>
>If it starts pointing toward space you are having a bad problem and you
>will not go to space today.
>
>  -- http://xkcd.com/1133/
>

  reply	other threads:[~2013-09-25 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 18:00 [Qemu-devel] Hibernate and qemu-nbd Mark Trumpold
2013-09-21  9:59 ` Wouter Verhelst
2013-09-25 14:42   ` Mark Trumpold [this message]
2013-09-26  7:11     ` Stefan Hajnoczi
2013-09-26 19:46     ` [Qemu-devel] [Nbd] " Wouter Verhelst
  -- strict thread matches above, loose matches on Subject: below --
2013-09-19 20:44 [Qemu-devel] " Mark Trumpold
2013-09-20  5:14 ` Stefan Hajnoczi
2013-09-17 14:10 Mark Trumpold
2013-09-18 13:12 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CE6841F5.9032%markt@netqa.com \
    --to=markt@netqa.com \
    --cc=Paul.Clements@steeleye.com \
    --cc=bonzini@stefanha-thinkpad.redhat.com \
    --cc=nbd-general@lists.sourceforge.net \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=w@uter.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).