From: Joris van Rantwijk <jvrantwijk@xs4all.nl>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvremove hangs on removing snapshot
Date: Sun, 4 Jun 2006 21:01:07 +0200 [thread overview]
Message-ID: <20060604190107.GA60385@xs4all.nl> (raw)
Hello,
When trying to remove a dm-snapshot device, I see lvremove freezing.
A reboot is then needed to get the system in a usable state again.
I know that previous freezes/segfaults on removing a snapshot
have been traced to a problem with kcopyd, but I am running
linux 2.6.16.16 which should contain the fix for these problems.
So it seems that my problem is different.
The freeze happens consistently, and even if the snapshot and/or
real device have not been accessed. For example, I type:
# lvcreate --size 1G --snapshot --name homesnap vg0/home
# lvremove vg0/home
Are you sure ... ? Y
[ lvremove now frozen ]
If a filesystem was mounted on the original vg0/home, any attempt
to access the filesystem will freeze as well. Other than that, the
system remains responsive.
After a reboot, I see that vg0/home and vg0/homesnap are both still
present but set to inactive. I can then lvremove vg0/homesnap and
lvchange vg0/home to reactivate it.
If I strace lvremove on its one-way trip, I see that it sends
a few DM_SUSPEND ioctls, then freezes on a DM_TABLE_LOAD ioctl.
Am I doing something wrong with the snapshot, or is this still a bug?
I seem to remember that I had it working correctly some time ago, but
now it fails all the time.
My system is Debian 3.1, linux 2.6.16.16, lvm2 2.01.04.
Thanks,
Joris.
next reply other threads:[~2006-06-04 19:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-04 19:01 Joris van Rantwijk [this message]
2006-06-05 20:04 ` [linux-lvm] lvremove hangs on removing snapshot Alasdair G Kergon
2006-06-06 19:26 ` Joris van Rantwijk
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=20060604190107.GA60385@xs4all.nl \
--to=jvrantwijk@xs4all.nl \
--cc=linux-lvm@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).