Andreas Dilger
2006-May-19 07:36 UTC
[Lustre-discuss] client and mds, ost on different nodes: No host entry found
On Jun 26, 2005 21:54 +0800, IanJiang wrote:> Everything goes well when using "sh local.sh" and "lconf local.xml" on > each machine. Now I want to configure a MDS > and a OST on dell-161, and a client on "dell-162". > > ------------------------------------------------------------------ > [root@dell-162 tests]# vi config.sh > [root@dell-162 tests]# lconf config.xml > No host entry found. > > ------------------------------------------------------------------ > config.sh > ----------- > #!/bin/bash > config=${1:-config.xml} > LMC=../utils/lmc > # create nodes > ${LMC} -o $config --add net --node client --nettype tcp --nid ''*''|exit 10 > ${LMC} -m $config --add net --node dell-161 --nid dell-161 --nettype > tcp||exit 11 > # configure mds server > ${LMC} -m $config --add mds --node dell-161 --mds mds161 --dev /tmp/mds161 > --size 50000 || exit 20 > # configure ost > ${LMC} -m $config --add lov --lov lov161 --mds mds161 --stripe_sz 4096 > --stripe_cnt 0 --stripe_pattern 0 || exit 30 > ${LMC} -m $config --add ost --node dell-161 --lov lov161 --dev /tmp/ost1 > --size 100000 || exit 31 > ${LMC} -m $config --add ost --node dell-161 --lov lov161 --dev /tmp/ost2 > --size 100000 || exit 32 > # create client config > ${LMC} -m $config --add mtpt --node client --path /mnt/lustre --mds mds161 > --lov lov161 || exit 40When starting the client, you need to use "lconf --node client config.xml", or zconf mount "mount -t lustre dell-161:/mds161/client /mnt/lustre". Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
IanJiang
2006-May-19 07:36 UTC
[Lustre-discuss] client and mds, ost on different nodes: No host entry found
I installed the Lustre-1.2.4 on two machines "dell-161" and
"dell-162"
(both with redhat as 3.0, kernel 2.4.21).
Everything goes well when using "sh local.sh" and "lconf
local.xml" on
each machine. Now I want to configure a MDS
and a OST on dell-161, and a client on "dell-161".
I am using the same configuration "config.sh" on the tow nodes.
Any suggestion is appreciated.
Thanks!
--------------------------------------------------------------------------------------------
[root@dell-161 tests]# sh config.sh
[root@dell-161 tests]# lconf config.xml
loading module: portals srcdir None devdir libcfs
loading module: ksocknal srcdir None devdir knals/socknal
loading module: lvfs srcdir None devdir lvfs
loading module: obdclass srcdir None devdir obdclass
loading module: ptlrpc srcdir None devdir ptlrpc
loading module: ost srcdir None devdir ost
loading module: fsfilt_ext3 srcdir None devdir lvfs
loading module: obdfilter srcdir None devdir obdfilter
loading module: mdc srcdir None devdir mdc
loading module: osc srcdir None devdir osc
loading module: lov srcdir None devdir lov
loading module: mds srcdir None devdir mds
NETWORK: NET_dell-161_tcp NET_dell-161_tcp_UUID tcp dell-161 988
OSD: OST_dell-161 OST_dell-161_UUID obdfilter /tmp/ost1 100000 ext3 no 0 0
removing stale pidfile: /var/run/acceptor-988.pid
OSD: OST_dell-161_2 OST_dell-161_2_UUID obdfilter /tmp/ost2 100000 ext3 no
0 0
MDSDEV: mds161 mds161_UUID /tmp/mds161 ext3 50000 no
------------------------------------------------------------------------------------------
[root@dell-162 tests]# vi config.sh
[root@dell-162 tests]# lconf config.xml
No host entry found.
---------------------------------------------------------------------------------------------
config.sh
-----------
#!/bin/bash
config=${1:-config.xml}
LMC=../utils/lmc
# create nodes
${LMC} -o $config --add net --node client --nettype tcp --nid
''*''|exit 10
${LMC} -m $config --add net --node dell-161 --nid dell-161 --nettype
tcp||exit 11
# configure mds server
${LMC} -m $config --add mds --node dell-161 --mds mds161 --dev /tmp/mds161
--size 50000 || exit 20
# configure ost
${LMC} -m $config --add lov --lov lov161 --mds mds161 --stripe_sz 4096
--stripe_cnt 0 --stripe_pattern 0 || exit 30
${LMC} -m $config --add ost --node dell-161 --lov lov161 --dev /tmp/ost1
--size 100000 || exit 31
${LMC} -m $config --add ost --node dell-161 --lov lov161 --dev /tmp/ost2
--size 100000 || exit 32
# create client config
${LMC} -m $config --add mtpt --node client --path /mnt/lustre --mds mds161
--lov lov161 || exit 40
--
IanJiang