LVM2 clvmd and STABLE3
Hello,
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
thanks,
Marc
Quoted 6 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
clvmd will default to cman, but you can switch to corosync when you feel the need, by adding -Icorosync to the command-line.
Or there's a variable in /etc/sysconfig/cluster called CLVMD_CLUSTER_IFACE that is picked up by the init script too.
Signature · 1 line
Chrissie
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 9 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:
--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cman
All end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic -O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \
-llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference to confdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference to confdb_object_find_start' clvmd-corosync.c:(.text+0x6dd): undefined reference to confdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference to confdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference to confdb_key_get' clvmd-corosync.o: In function _cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference to quorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference to quorum_getquorate' clvmd-corosync.o: In function _get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference to cpg_fd_get' clvmd-corosync.o: In function _cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference to cpg_dispatch' clvmd-corosync.o: In function _cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference to cpg_mcast_joined' clvmd-corosync.o: In function init_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference to cpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference to quorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference to cpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference to quorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference to cpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference to quorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \
--disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \
--with-cluster=shared --with-pool=shared \
--with-snapshots=shared --with-mirrors=internalQuoted 7 lines
clvmd will default to cman, but you can switch to corosync when you feel the need, by adding -Icorosync to the command-line.
Or there's a variable in
/etc/sysconfig/clustercalledCLVMD_CLUSTER_IFACEthat is picked up by the init script too.
Quoted 69 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 9 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internal
Oh, the Make system still needs to be finished. I left that to the LVM maintainers as I'm not good with Makefiles ... people always seem to feel the need to tidy up after me.
You can add -L /usr/lib/corosync -lcpg -lquorum -lconfdb to the linker command-line. or /usr/lib64/corosync for 64bit systems. If you feel the urge.
Signature · 1 line
Chrissie
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 83 lines
Quoted 69 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 9 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalOh, the Make system still needs to be finished. I left that to the LVM maintainers as I'm not good with Makefiles ... people always seem to feel the need to tidy up after me.
Quoted 4 lines
You can add -L
/usr/lib/corosync-lcpg -lquorum -lconfdb to the linker command-line. or/usr/lib64/corosyncfor 64bit systems. If you feel the urge.
Hello Chrissie,
the buildsystem of lvm2 sill (as of version 2.02.50) doesn't link when using --with-clvmd=cman,corosync
We plan to move over to stable3 on our test-systems and i'm unsure if i should switch from cman to corosync for clvmd during the change...
What is the best choice in this case?
What is the value of --with-clvmd on rawhide for cluster3?
What differences we have to expect between these two options?
I think a default value of "auto" for --with-clvmd which uses the best bindings it could find on a system would be nice...
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internal
Hmmm.
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 83 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \
--enable-cmdlib --enable-dmeventd --enable-pkgconfig \
--disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \
--with-cluster=shared --with-pool=shared \
--with-snapshots=shared --with-mirrors=internal
make
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic -O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
-Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic
-O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \
-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference to confdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference to confdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference to confdb_key_get' clvmd-corosync.o: In function _cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference to quorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference to cpg_fd_get' clvmd-corosync.o: In function _cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference to cpg_dispatch' clvmd-corosync.o: In function _cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference to cpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference to quorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference to cpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference to quorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference to cpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference to cpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference to quorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2
The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use "all" i can't build because USE_GULM gets in my way:
gcc -m32 -c -I. -I../../include -DUSE_GULM -DUSE_CMAN -DUSE_OPENAIS -DUSE_COROSYNC -D_REENTRANT -DHAVE_CONFIG_H -DDM_IOCTLS -march=i686 -mtune=generic -O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
-Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic
-O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 clvmd-command.c -o clvmd-command.o
In Datei, eingef?gt von clvmd-command.c:77:
clvmd-comms.h:80:35: Fehler: openais/totem/totem.h: Datei oder Verzeichnis nicht gefunden
make[2]: *** [clvmd-command.o] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd' make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2
How can we fix this?
Marc
Quoted 159 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 82 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \
--enable-cmdlib --enable-dmeventd --enable-pkgconfig \
--disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \
--with-cluster=shared --with-pool=shared \
--with-snapshots=shared --with-mirrors=internal
makeand end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2
Quoted 7 lines
The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what findstring() is suppose to do. but it's obviously not working.
Chrissie
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 164 lines
Quoted 162 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 82 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \
--enable-cmdlib --enable-dmeventd --enable-pkgconfig \
--disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \
--with-cluster=shared --with-pool=shared \
--with-snapshots=shared --with-mirrors=internal
makeand end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
Quoted 7 lines
Quoted 4 lines
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.
You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.
I think the tests for the individual bindings of clvmd don't belong inside of the Makefile but inside of configure.in and configure should set the bindings to yes if and only if it can find the needed dependencies for them.
Because i don't know what the test for the individual bindings should test for, i can't create a patch to fix this up properly...
Marc
Quoted 167 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 166 lines
Quoted 164 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.
Oh I don't touch configure.in - far too scary
Chrissie
Am Donnerstag, den 30.07.2009, 11:54 +0100 schrieb Christine Caulfield:
Quoted 173 lines
Quoted 171 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 169 lines
Quoted 158 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2Quoted 7 lines
The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.
Quoted 6 lines
Quoted 4 lines
You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.Oh I don't touch configure.in - far too scary
Maybe you know whom to ask for a fix, a quick and dirty one would be to always check for the corosync things in configure.in (eg remove the if around it).
But i'm still thinking that it should be fixed the right way (eg. remove the substring checks fom the Makefile and set what to build from configure.in) and will try to cook something up if i'm able to spot fo what to check for each clvmd binding...
Marc
Quoted 177 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:54 +0100 schrieb Christine Caulfield:
Quoted 176 lines
Quoted 174 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 163 lines
Quoted 161 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
Quoted 6 lines
Quoted 4 lines
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.
Quoted 6 lines
Quoted 1 line
Oh I don't touch configure.in - far too scary
Maybe you know whom to ask for a fix, a quick and dirty one would be to always check for the corosync things in configure.in (eg remove the if around it).
But i'm still thinking that it should be fixed the right way (eg. remove the substring checks fom the
Makefileand set what to build from configure.in) and will try to cook something up if i'm able to spot fo what to check for each clvmd binding...
Alasdair has checked in a fix to configure - you might like to try that :-)
Chrissie
Am Donnerstag, den 30.07.2009, 13:39 +0100 schrieb Christine Caulfield:
Quoted 179 lines
Quoted 177 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:54 +0100 schrieb Christine Caulfield:
Quoted 176 lines
Quoted 174 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 163 lines
Quoted 161 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3, a build with --with-clvmd=corosync or --with-clvmd=cman ?
I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
Quoted 6 lines
Quoted 4 lines
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Oh I don't touch configure.in - far too scary
Maybe you know whom to ask for a fix, a quick and dirty one would be to always check for the corosync things in configure.in (eg remove the if around it).
But i'm still thinking that it should be fixed the right way (eg. remove the substring checks fom the
Makefileand set what to build from configure.in) and will try to cook something up if i'm able to spot fo what to check for each clvmd binding...Alasdair has checked in a fix to configure - you might like to try that :-)
Builds fine with the fixes, thanks :-)
How can i control now what backend clvmd will use to propagate the locks or does it use the right one by default?
Do i need the cman and corosync backends for compatibility with cluster2 or what is the reason behind to build them both?
Marc
Am Donnerstag, den 30.07.2009, 15:06 +0200 schrieb Marc - A. Dahlhaus [ Administration | Westermann GmbH ]:
Quoted 184 lines
Am Donnerstag, den 30.07.2009, 13:39 +0100 schrieb Christine Caulfield:
Quoted 183 lines
Quoted 181 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:54 +0100 schrieb Christine Caulfield:
Quoted 169 lines
Quoted 167 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 166 lines
Quoted 164 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 5 lines · Chrissie Caulfield
Quoted 3 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Hello,
Quoted 8 lines
Quoted 4 lines
what is the right approach to build LVM2 with STABLE3,
a build with --with-clvmd=corosync or --with-clvmd=cman ?I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.Oh I don't touch configure.in - far too scary
Maybe you know whom to ask for a fix, a quick and dirty one would be to always check for the corosync things in configure.in (eg remove the if around it).
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
But i'm still thinking that it should be fixed the right way (eg. remove the substring checks fom the
Makefileand set what to build from configure.in) and will try to cook something up if i'm able to spot fo what to check for each clvmd binding...Alasdair has checked in a fix to configure - you might like to try that :-)
Builds fine with the fixes, thanks :-)
How can i control now what backend clvmd will use to propagate the locks or does it use the right one by default?
Found that one in the code, man page needs some updating...
Quoted 5 lines
Do i need the cman and corosync backends for compatibility with cluster2 or what is the reason behind to build them both?
Marc
Quoted 187 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 15:06 +0200 schrieb Marc - A. Dahlhaus [ Administration | Westermann GmbH ]:
Quoted 185 lines
Am Donnerstag, den 30.07.2009, 13:39 +0100 schrieb Christine Caulfield:
Quoted 184 lines
Quoted 182 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:54 +0100 schrieb Christine Caulfield:
Quoted 169 lines
Quoted 167 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 11:42 +0100 schrieb Christine Caulfield:
Quoted 166 lines
Quoted 164 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Donnerstag, den 30.07.2009, 10:01 +0100 schrieb Christine Caulfield:
Quoted 81 lines
Quoted 70 lines · Marc - A. Dahlhaus [ Administration | Westermann GmbH ]
Am Dienstag, den 10.03.2009, 16:50 +0000 schrieb Chrissie Caulfield:
Quoted 69 lines
Quoted 68 lines · Marc - A. Dahlhaus
Quoted 13 lines · Chrissie Caulfield
Marc - A. Dahlhaus [ Administration | Westermann GmbH ] wrote:
Hello,
what is the right approach to build LVM2 with STABLE3,
a build with --with-clvmd=corosync or --with-clvmd=cman ?I recommend you do both.
--with-clvmd=corosync=cman,corosync
sounds nice but it doesn't build.
I use the last released tarballs of STABLE3, corosync, openais and LVM2. I tested the following:--with-clvmd=corosync=cman,corosync
--with-clvmd=cman,corosync
--with-clvmd=corosync,cmanAll end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-12-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \ -llvm -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman -ldlm -lreadline -lrt -ldl -lncursesclvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x695): undefined reference toconfdb_initialize' clvmd-corosync.c:(.text+0x6c6): undefined reference toconfdb_object_find_start'
clvmd-corosync.c:(.text+0x6dd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x727): undefined reference toconfdb_object_find' clvmd-corosync.c:(.text+0x769): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x7e9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x801): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x98d): undefined reference toquorum_getquorate' clvmd-corosync.o: In function_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xadd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb30): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc12): undefined reference tocpg_mcast_joined' clvmd-corosync.o: In functioninit_corosync_cluster':
clvmd-corosync.c:(.text+0xc80): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xcec): undefined reference toquorum_initialize' clvmd-corosync.c:(.text+0xdb9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xddc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xdf4): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe66): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xe89): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xea1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf1c): undefined reference to `quorum_finalize'Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
The full configure line for reference:
./configure --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalHmmm.
Quoted 7 lines
I've just checked and the lvm2 configure code to do this was in the 2.02.45 release.
I tried it with head of CVS and it works fine ;-)
Chrissie
I use this commands:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --enable-cmdlib --enable-dmeventd --enable-pkgconfig \ --disable-selinux --with-clvmd=corosync,cman --with-lvm1=shared \ --with-cluster=shared --with-pool=shared \ --with-snapshots=shared --with-mirrors=internalmake
and end up with:
gcc -m32 -o clvmd clvmd-command.o clvmd.o lvm-functions.o refresh_clvmd.o clvmd-cman.o clvmd-corosync.o -march=i686 -mtune=generic
(quoted diff) +0
-11-O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../../libdm -L../../lib -L../../daemons/dmeventd \-llvm-internal -lpthread -ldevmapper-event -ldevmapper -ldlm -lcman
-ldlm -lreadline -lrt -ldl -lncurses
clvmd-corosync.o: In function `_get_cluster_name':
clvmd-corosync.c:(.text+0x6b5): undefined reference to `confdb_initialize'
clvmd-corosync.c:(.text+0x6e6): undefined reference to `confdb_object_find_start'
clvmd-corosync.c:(.text+0x6fd): undefined reference toconfdb_finalize' clvmd-corosync.c:(.text+0x747): undefined reference toconfdb_object_find'
clvmd-corosync.c:(.text+0x789): undefined reference toconfdb_key_get' clvmd-corosync.o: In function_cluster_closedown':
clvmd-corosync.c:(.text+0x809): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0x821): undefined reference toquorum_finalize' clvmd-corosync.o: In function `_is_quorate':
clvmd-corosync.c:(.text+0x9ad): undefined reference to `quorum_getquorate'
clvmd-corosync.o: In function `_get_main_cluster_fd':
clvmd-corosync.c:(.text+0xafd): undefined reference tocpg_fd_get' clvmd-corosync.o: In function_cluster_fd_callback':
clvmd-corosync.c:(.text+0xb50): undefined reference tocpg_dispatch' clvmd-corosync.o: In function_cluster_send_message':
clvmd-corosync.c:(.text+0xc32): undefined reference to `cpg_mcast_joined'
clvmd-corosync.o: In function `init_corosync_cluster':
clvmd-corosync.c:(.text+0xca0): undefined reference tocpg_initialize' clvmd-corosync.c:(.text+0xd0c): undefined reference toquorum_initialize'
clvmd-corosync.c:(.text+0xdd9): undefined reference tocpg_join' clvmd-corosync.c:(.text+0xdfc): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xe14): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xe86): undefined reference tocpg_local_get' clvmd-corosync.c:(.text+0xea9): undefined reference tocpg_finalize' clvmd-corosync.c:(.text+0xec1): undefined reference toquorum_finalize' clvmd-corosync.c:(.text+0xf3c): undefined reference to `quorum_finalize'
collect2: ld gab 1 als Ende-Status zur?ck
make[2]: *** [clvmd] Fehler 1
make[2]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons/clvmd'
make[1]: *** [clvmd] Fehler 2
make[1]: Leaving directory `/repo/kiss-linux/lvm2/src/LVM2.2.02.50/daemons'
make: *** [daemons] Fehler 2The problem is in configure as configure doesn't look for individual substrings in CLVMD but tests for the whole string...
So i have to set it to cman OR corosync OR all but not to cman,corosync or corosync,cman...
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I can build just fine with "cman" and also with "corosync" but if i use
Hmm, that's what
findstring()is suppose to do. but it's obviously not working.You are looking at daemons/clvmd/Makefile.in...
Please take a look at configure.in and search for the string corosync. You should spot what i mean there.Oh I don't touch configure.in - far too scary
Maybe you know whom to ask for a fix, a quick and dirty one would be to always check for the corosync things in configure.in (eg remove the if around it).
But i'm still thinking that it should be fixed the right way (eg. remove the substring checks fom the
Makefileand set what to build from configure.in) and will try to cook something up if i'm able to spot fo what to check for each clvmd binding...
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Alasdair has checked in a fix to configure - you might like to try that :-)
Builds fine with the fixes, thanks :-)
How can i control now what backend clvmd will use to propagate the locks or does it use the right one by default?
Found that one in the code, man page needs some updating...
Oops, yes. I've added that now, thank you.
It does appear in the usage output from 'clvmd -h' :-)
Chrissie