All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Trumpold <markt@netqa.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: nbd-general@lists.sourceforge.net, Wouter Verhelst <w@uter.be>,
	bonzini@stefanha-thinkpad.redhat.com,
	Paul Clements <Paul.Clements@steeleye.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Nbd]  Hibernate and qemu-nbd
Date: Fri, 04 Oct 2013 07:30:45 -0700	[thread overview]
Message-ID: <CE7417FD.911A%markt@netqa.com> (raw)
In-Reply-To: <CAJSP0QWCzMyJ_Q8ebZHtZUDkgcJhzc2JvMHAfgurxbH5x+dh-A@mail.gmail.com>



On 9/26/13 10:18 PM, "Stefan Hajnoczi" <stefanha@gmail.com> wrote:

>
>Try the qemu-nbd --persistent option.  That should prevent it from
>shutting down when nbd-client is disconnected.
>
>Stefan
>


Hi Stefan,

Sorry for the delay..
I tried the following per your suggestion:

  920  qemu-nbd --persistent -p 2000 /root/qemu/q1.img &
  921  nbd-client -persist localhost 2000 /dev/nbd0
  922  fsck /dev/nbd0
  923  mount /dev/nbd0 /mnt
  924  ls /mnt
  925  umount /dev/nbd0
  ::

  927  echo reboot >/sys/power/disk
  928  echo disk >/sys/power/state
  929  mount /dev/nbd0 /mnt

This seems to work; that is both sides (client and server) persist
after the hibernate cycle.

However, if I don't 'umount' '/dev/nbd0' before the hibernate
cycle, and try to 'ls /mnt' after, the 'ls' hangs indefinitely.

For my real use case we have the root filesystem mounted,
so unmounting is not an option (at least I don't think so).

I also tried remounting readonly, and also 'blockdev --flushbufs ..'
before the hibernate cycle -- either or both did not help.

I had thought about trying a 'chroot' and then a 'umount', but
have not yet tried this.

This one was so close..

Thank you for all your attention on this.

Best Regards,
Mark T.

  reply	other threads:[~2013-10-04 14:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 20:48 [Qemu-devel] [Nbd] Hibernate and qemu-nbd Mark Trumpold
2013-09-27  5:18 ` Stefan Hajnoczi
2013-10-04 14:30   ` Mark Trumpold [this message]
2013-10-10  9:15     ` Stefan Hajnoczi
2013-10-15 15:17       ` Stefan Hajnoczi
  -- strict thread matches above, loose matches on Subject: below --
2013-10-18 18:23 Mark Trumpold
2013-10-17 17:07 Mark Trumpold
2013-10-17 19:53 ` Paul Clements
2013-09-25 14:42 [Qemu-devel] " Mark Trumpold
2013-09-26 19:46 ` [Qemu-devel] [Nbd] " Wouter Verhelst

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=CE7417FD.911A%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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.