[Linux-cluster] Mix LVM locking type (1 and 2) on the same host
Pierre-Alain RIVIERE
pariviere at ippon.fr
Fri Jul 25 16:10:40 UTC 2008
Hello,
I'm trying to setup a 3 nodes CLVM cluster : alpha, beta and omega. My
setup is pretty simple right now, with the following cluster.conf.
I think cluster state is OK as :
--------------------------------------------
# cman_tool nodes
Node Sts Inc Joined Name
1 M 100 2008-07-25 17:40:12 alpha
2 M 100 2008-07-25 17:40:12 beta
100 M 48 2008-07-25 17:40:12 omega
---------------------------------------------
# group_tool
type level name id state
fence 0 default 00010002 none
[1 2 100]
dlm 1 clvmd 00020002 none
[1 2 100]
----------------------------------------------
lvm just works as expected on alpha and beta. But on omega, when I try
to use lvm, I've got these errors :
-----------------------------------------------
# lvcreate -L10M -nsrv04 xenvg
Rounding up size to full physical extent 12.00 MB
Error locking on node omega: device-mapper: reload ioctl failed:
Invalid argument
Failed to activate new LV.
-----------------------------------------------
The 3 servers have the same installation (ubuntu 8.0.4.1, cman, clm),
same configuration
BUT
on omega I use LVM on another VG which is not clustered.
-----------------------------------------------
# vgdisplay
--- Volume group ---
VG Name data
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 15.00 GB
PE Size 4.00 MB
Total PE 3839
Alloc PE / Size 256 / 1.00 GB
Free PE / Size 3583 / 14.00 GB
VG UUID ATgVwZ-U5Gh-SxMW-91DO-vt9u-TkJa-XXQNQa
--- Volume group ---
VG Name xenvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
Clustered yes
Shared no
MAX LV 0
Cur LV 4
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 1020.00 MB
PE Size 4.00 MB
Total PE 255
Alloc PE / Size 15 / 60.00 MB
Free PE / Size 240 / 960.00 MB
VG UUID NKq9S2-4biX-7nRW-35Ww-OTHh-xTwH-q4VMQi
-----------------------------------------------
I use this LVM configuration on the 3 nodes :
locking_library = "liblvm2clusterlock.so"
locking_type = 2
library_dir = "/lib/lvm2"
Is there's a know problem using this mix configuration on the same
server?
Thks.
More information about the Linux-cluster
mailing list