Gentoo Archives: gentoo-cluster

From: Ulrich David <david.ulrich@×××××.ch>
To: gentoo-cluster@l.g.o
Subject: Re: [gentoo-cluster] clvm/lvm2/device-mapper
Date: Thu, 19 Nov 2009 12:01:29
Message-Id: F13D2973-D915-4DA9-BE9B-02368CBFF447@siesa.ch
In Reply to: Re: [gentoo-cluster] clvm/lvm2/device-mapper by Ulrich David
1 After looking in detail clvm is not what I need... clvm provide a locking system for protecting lvm configuration changes on lv... It doesn't prevent mounting the volumes on 2 hosts.
2
3 After searching for a while, I don't find any reponse for my question "What do I need in order to protect my shared storage (shared SAN lun with lvm volumes) during live migration?". My question is probably not right... Is it correct to say that :
4 "A migration moves the complete domU state including the current VFS state. The old domU is paused and all remaining dirty blocks are copied over before the migrated domU is taken active and the paused domU gets killed."
5
6 If it is I don't need to protect my shared lvm volume.... If nobody try to mount it on the two dom0 ?
7
8 David
9
10
11
12 Le 18 nov. 2009 à 19:31, Ulrich David a écrit :
13
14 > I just need to rebound on my initial question. I now want to install lvm2 with "cluster aware" tools (clvm). I want to use a lock on my lvm volumes which could be mount by multiple hosts (but only one at a time).
15 > I unmask clvm in the profile file of amd64. But when I install lvm2 with clvm use flag I don't have a useable clvm :
16 >
17 > iceage0 ~ # /etc/init.d/clvmd start
18 > * Caching service dependencies ...
19 > * Can't find service 'cman' needed by 'clvmd'; continuing... [ ok ]
20 > cman
21 > * ERROR: Some services needed are missing. Run
22 > * './clvmd broken' for a list of those
23 > * services. clvmd was not started.
24 > iceage0 ~ # /etc/init.d/clvmd status
25 > * status: stopped
26 >
27 > If I unmask cman, the result is :
28 >
29 >
30 > iceage0 ~ # emerge -pv lvm2
31 >
32 > These are the packages that would be merged, in order:
33 >
34 > Calculating dependencies... done!
35 >
36 > emerge: there are no ebuilds to satisfy "=sys-cluster/cman-2*".
37 > (dependency required by "sys-fs/lvm2-2.02.51-r2" [ebuild])
38 > (dependency required by "lvm2" [argument])
39 >
40 > no cman-2 in portage...
41 >
42 > I have noticed that with clvm flag, configuration option for lvm2 are :
43 > * econf: updating LVM2.2.02.51/autoconf/config.sub with /usr/share/gnuconfig/config.sub
44 > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-readline --disable-selinux --enable-pkgconfig --libdir=/usr/lib64 --enable-dmeventd --enable-cmdlib --enable-applib --enable-fsadm --enable-static_link --with-mirrors=internal --with-snapshots=internal --with-lvm1=internal --with-cluster=internal --with-clvmd=none --with-pool=internal --sbindir=/sbin --with-staticdir=/sbin CLDFLAGS=-Wl,-O1
45 >
46 > ==> --with-clvmd=none is that normal?