From: Zdenek Kabelac <zkabelac@redhat.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Device mapper does not really remove the references to removed LV.
Date: Tue, 15 May 2012 10:12:52 +0200 [thread overview]
Message-ID: <4FB21004.9040905@redhat.com> (raw)
In-Reply-To: <5A672399-BC00-4545-B203-031056EC4CC2@linkfluence.net>
Dne 14.5.2012 19:37, Germain Maurice napsal(a):
> Hi everybody,
>
> I'm facing to some problems in my virtualization cluster and i need some help to prevent it occurring again.
>
> I know that LVM is not cluster aware and we have to use it with lot of caution.
> However, i have a shared LVM storage between 6 nodes. I use KVM hosts.
Hmm - if you are planing to build your own cluster - assuming you do not want
to use lvm2 cluster support tools like clmvd - which needs advanced
configuration) - you will need to write your own daemon, to watch out for
locks and metadata changes.
>
> Two days ago i rebooted my whole cluster in order to get the same LVM metadata and the same dmsetup table over the cluster. That's ok.
>
> "vgck SATA6To" is ok.
>
> Right now, I have a problem when deleting an LV.
>
> On the node where the VM lives, i did the lvremove command (lv name : SATA6To/vm-306-disk-3), i have a good state of LVM :
You need to propagate such change around your cluster by your daemon - and you
have to be quite carefully where have you activated such LV before doing lvremove.
lvremove is simple command which does not communicate with other nodes in your
cluster to let them know something has changed - so you might find some
inspiration in CLVMD and it's locking technique to distribute locks around the
cluster.
>
> Any idea how to clear all references to the LV previously removed ?
>
Before you remove LV on any node - you have to make sure all nodes deactivated
such LV.
IMHO I'd suggest to use clvmd - instead of programming new daemon...
Zdenek
next prev parent reply other threads:[~2012-05-15 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 17:37 [linux-lvm] Device mapper does not really remove the references to removed LV Germain Maurice
2012-05-15 8:12 ` Zdenek Kabelac [this message]
2012-05-15 9:43 ` Germain Maurice
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=4FB21004.9040905@redhat.com \
--to=zkabelac@redhat.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.