From: Douglas McClendon <dmc.fedora@filteredperception.org>
To: dm-devel@redhat.com
Subject: Re: semop failed for cookie?
Date: Sun, 02 May 2010 20:36:18 -0500 [thread overview]
Message-ID: <4BDE2892.3080705@filteredperception.org> (raw)
In-Reply-To: <20100429162338.GA14077@agk-dp.fab.redhat.com>
On 04/29/2010 11:23 AM, Alasdair G Kergon wrote:
> On Wed, Apr 28, 2010 at 10:32:54PM -0500, Douglas McClendon wrote:
>> case, literally nothing would happen while both instances were 'live',
>
> If you had no data written to the snapshot or origin while both
> were loaded, you might have got away with it. But I think the new handover
> code give you a safe and supported mechanism now.
>
> Alasdair
I've got a "BUG" for you-
So, I tried on a nightly soas livecd iso build, booted under qemu
(should be the same for a rawhide or fedora13 beta i386 livecd iso,
booted to runlevel 1 (for simplicity sake))
I tried to suspend the snapshot device holding the rootfs, thinking that
I might be able to do that, then resume the newly created with a new
name copy of that device, and then resume the rootfs device after
loading a new table of a mirror of the copy device and the destination
partition.
But the instant I suspend the snapshot device containing the rootfs
(dmsetup suspend live-rw), I get-
BUG: lock held when returning to user space!
dmsetup/865 is leaving the kernel with locks still held!
1 lock held by dmsetup/865:
#0: (&journal->j_barrier){+.+...+}, at: [<c056b84d>] jbd2_journal_lock_\
updates+0xbd/0xc5
--------------- (manually transcribed) ------------
Now, my first guess as to how to proceed would be to try to get a
statically linked dmsetup copied into a tmpfs. Which, given the
particular target and my lack of enthusiasm for all of this, may take me
some time to try. Any other advice? Note, I could craft some manual
dmsetup commands to reproduce what I'm trying to do, that would apply to
any fedora-13/soas livecd iso. But for the sake of argument, lets
pretend that all I want to do is to run (dmsetup suspend live-rw ;
dmsetup resume live-rw) and have the system not fall over dead.
Also, to reiterate again, I got that message in dmesg about a problem
with the snapshot handover while trying to use my previously working but
not guaranteed to work 100% method. But note that method does not
involve snapshot merging at all, which from the documentation I found
(perhaps I didn't look in all the right places), is the only place that
the snapshot handover is related to.
Note, I'm not complaining, as this is very low priority for me, but
rather just doing my best to explain the issue.
-dmc
next prev parent reply other threads:[~2010-05-03 1:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-27 20:56 semop failed for cookie? Douglas McClendon
2010-04-27 22:33 ` Alasdair G Kergon
2010-04-28 3:52 ` Douglas McClendon
2010-04-28 23:11 ` Douglas McClendon
2010-04-29 0:00 ` Alasdair G Kergon
2010-04-29 3:32 ` Douglas McClendon
2010-04-29 16:23 ` Alasdair G Kergon
2010-05-03 1:36 ` Douglas McClendon [this message]
2010-05-05 5:18 ` Snapshot handover working, yippee!, was " Douglas McClendon
2010-05-05 15:22 ` Mike Snitzer
2010-04-28 9:38 ` Peter Rajnoha
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=4BDE2892.3080705@filteredperception.org \
--to=dmc.fedora@filteredperception.org \
--cc=dm-devel@redhat.com \
/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.