From: Phillip Susi <psusi@cfl.rr.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Subject: Re: [linux-lvm] Snapshot merge in the background?
Date: Thu, 21 Oct 2010 20:32:34 -0400 [thread overview]
Message-ID: <4CC0DBA2.1010503@cfl.rr.com> (raw)
In-Reply-To: <4CBF5A3A.3050106@cfl.rr.com>
After some more testing, I have found that the udev rule was running
lvchange -a y whenever a PV is added or changed. It seems that nearly
any lvm command causes a change event to be emitted on the PVs. Why is
this? After I removed the |change clause from the udev rule so that
lvchange is no longer run on these change events, I now see that indeed,
running lvchange -a manually to reactivate an origin volume with a
pending merge does cause it to activate and merge in the background,
during which time it can be mounted. Strangely though, while the merge
is taking place in the background, I still see change events on the
underlying PVs being emitted. Also running lvs while the merge is still
on going reports IO errors trying to read the snapshot volume, which
makes sense since according to dmsetup table, it consists only of the
error target.
With the change to the udev rule, the system boots immediately and
finishes the merge in the background, as it should, leading me to
conclude that the problem was all of the udev event ping-pong causing
udevadm settle to hold up the boot.
On 10/20/2010 05:08 PM, Phillip Susi wrote:
> On 10/20/2010 4:55 PM, Mike Snitzer wrote:
>> "Before finishing the boot"... can you be more specific? Where was it
>> stopped waiting for a snapshot merge? How did you know it was waiting
>> for snapshot merge? Which distro are you using?
>
> It seemed to be stopped waiting for the initial activation of the root
> lv before continuing with the boot. This manifested as a several minute
> delay before the gui came up, and when I checked the bootchart image, it
> was indeed sitting running lvm for a long time before everything else.
> This is with Ubuntu 10.10.
prev parent reply other threads:[~2010-10-22 0:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 20:05 [linux-lvm] Snapshot merge in the background? Phillip Susi
2010-10-20 20:55 ` Mike Snitzer
2010-10-20 21:08 ` Phillip Susi
2010-10-22 0:32 ` Phillip Susi [this message]
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=4CC0DBA2.1010503@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=linux-lvm@redhat.com \
--cc=snitzer@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 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).