Recently, I follow the steps in
https://projects.clusterfs.com/lustre/LustreLDAP to test MDS failover.
System is RedHat 9.
step by step follow the instructions
(1) set up the ldap server
(2) this is my xml config steps
# The node
lmc -o config.xml --add net --node cust-a --nid cust-a --nettype tcp
lmc -m config.xml --add net --node cust-b --nid cust-b --nettype tcp
lmc -m config.xml --add net --node cust-c --nid cust-c --nettype tcp
# MDS servers: cust-a is major MDS server and cust-b is the backup one
(we will
fail-over from cust-a to cust-c)
lmc -m config.xml --add mds --node cust-a --mds mds_service --dev
/mnt/sda3/mds1 --size 10000 --group LMDS
lmc -m config.xml --add mds --node cust-b --mds mds_service --dev
/mnt/sda3/mds1 --size 10000 --group LMDS
lmc -m config.xml --add lov --lov lov1 --mds mds_service --stripe_sz
65536 --stripe_cnt 0
# Configure ost on cust-c
lmc -m config.xml --add ost --format --node cust-c --lov lov1 --dev
/tmp/ost1 --size 10000 --group cust-c
# the clients (mounts) on cust-c
lmc -m config.xml --add mtpt --node cust-c --path /mnt/lustre --mds
mds_service --lov lov1
(3)load_ldap.sh config.xml
(4) cust-a > lconf -v --reformat --ldapurl ldap://cust-a --config config
but always fail in this step ( ldap server is cust-a)
the error msg is below :
! /usr/sbin/lctl (110): error: setup: Connection timed out
and kernel emits
LustreError: 1160:(socknal_cb.c:2320:ksocknal_connect_peer()) Error -111
connecting to 0xc0a800cb
LustreError: 1160:(socknal_cb.c:2408:ksocknal_autoconnect()) Deleting
packet type 1 len 168 (0xc0a800c9->0xc0a800cb)
LustreError: 1483:(client.c:812:ptlrpc_expire_one_request()) @@@ timeout
req@c9fe2000 x1/t0 o8->OST_cust-c_UUID@NID_cust-c_UUID:6 lens 168/64 ref
1 fl RPC:/0/0
rc 0
LustreError: 1483:(lov_obd.c:148:lov_connect()) Target OST_cust-c_UUID
connect error -110
LustreError: 1483:(mds_lov.c:216:mds_lov_connect()) MDS cannot connect
to LOV lov_mds_service (-110)
LustreError: 1637:(obd_config.c:285:class_cleanup()) Device 1 not setup
any ideas ?
thanks for your help.
Ted Chang