All of lore.kernel.org
 help / color / mirror / Atom feed
From: Da <dcodix@gmail.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvremove snapshot hangs LVM system
Date: Wed, 13 Jun 2012 16:46:39 +0200	[thread overview]
Message-ID: <CAL-GF3yxEchtim-aHe_irC3M=znRzF2r-VpvSx21=oZZCjM76g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]

It's been a long time, but finally I had time to test it a bit.

As Ray Morris suggested I tried disabling selinux, with no luck. It happens
all the same.

Any way, I did some more testing and I think I detected the problem, but
not yet the solution.
The problem is that "lvremove" will fail removing the "dm" device. Nothing
changes on "dmsetup ls" after an "lvremove" yet if "lvremove" says the
removal was successful.

If I try to remove the "dm" before the "lvremove" then it seems to work:
[root@node2 ~]# dmsetup remove vgtest01-snap02 && dmsetup remove
vgtest01-snap02-cow && lvremove /dev/vgtest01/snap02
  Logical volume "snap02" successfully removed


But yet if I try any other "lvm" command:
[root@node2 ~]# lvcreate -s -L 20M -n snap10 /dev/vgtest01/lvtest-snap01
  /dev/vgtest01/snap10: not found: device not cleared
  Aborting. Failed to wipe snapshot exception store.

So I have to restart "clvm (which is better than rebooting).

I tried changing the snapshot to  "--monitor n" and "--noudevsync" with the
same luck.

So, I guess something is failing in the process to remove the "dm",... I
will keep looking...

Do someone have any ideas?

Thanks!

[-- Attachment #2: Type: text/html, Size: 1401 bytes --]

             reply	other threads:[~2012-06-13 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 14:46 Da [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-13 16:09 [linux-lvm] lvremove snapshot hangs LVM system Da
2012-06-19 13:34 ` Da
2012-05-07  9:19 Da
2012-04-24 15:27 Da
2012-04-24 17:33 ` Ray Morris
2012-04-03 15:05 Dan C

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='CAL-GF3yxEchtim-aHe_irC3M=znRzF2r-VpvSx21=oZZCjM76g@mail.gmail.com' \
    --to=dcodix@gmail.com \
    --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 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.