Hi, I am follow lustre document https://wiki.clusterfs.com/lustre/LustreLDAP to install openldap cd lustre/conf cp lustre.schema /etc/openldap/schema cp slapd-lustre.conf /etc/openldap mkdir -m 700 /var/lib/ldap/lustre chown ldap.ldap /var/lib/ldap/lustre Add the following line to /etc/openldap/slapd.conf: include /etc/openldap/slapd-lustre.conf After installing the rpms and/or editing slapd.conf, restart your LDAP server. Before any configurations can be loaded, an initial entry must be created in the database. This can be done by loading top.ldif; this assumes the LDAP server is on localhost: ldapadd -x -D "cn=Manager,fs=lustre" -f $LUSTRE/conf/top.ldif -w ''secret''Below error occurldap_bind: Can''t contact LDAP server (81)If i remove include /etc/openldap/slapd-lustre.confI can startup ldap without error Is the luster.scheama has problem?Thanks
I don''t know that I can help you as I don''t see a problem like that. Have you checked what syslog reports for the daemon? It looks like the daemon is failing to start so there may be an explanatory error message being reported if the daemon is dying. Other that that, since including the slapd-lustre.conf leads to the error, I suggest you debug that file by commenting out all the lines in it and then gradually uncommenting them one by one to see which line(s) cause the problem. Fergal. -- Fergal.McCarthy@HP.com (The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated, you should consider this message and attachments as "HP CONFIDENTIAL".) -----Original Message----- From: lustre-discuss-admin@lists.clusterfs.com [mailto:lustre-discuss-admin@lists.clusterfs.com] On Behalf Of raymondyu Sent: 09 March 2005 06:46 To: lustre-discuss@lists.clusterfs.com Subject: [Lustre-discuss] ldap error Hi, I am follow lustre document https://wiki.clusterfs.com/lustre/LustreLDAP to install openldap cd lustre/conf cp lustre.schema /etc/openldap/schema cp slapd-lustre.conf /etc/openldap mkdir -m 700 /var/lib/ldap/lustre chown ldap.ldap /var/lib/ldap/lustre Add the following line to /etc/openldap/slapd.conf: include /etc/openldap/slapd-lustre.conf After installing the rpms and/or editing slapd.conf, restart your LDAP server. Before any configurations can be loaded, an initial entry must be created in the database. This can be done by loading top.ldif; this assumes the LDAP server is on localhost: ldapadd -x -D "cn=3DManager,fs=3Dlustre" -f $LUSTRE/conf/top.ldif -w ''secret''Below error occurldap_bind: Can''t contact LDAP server (81)If i remove include /etc/openldap/slapd-lustre.confI can startup ldap without error Is the luster.scheama has problem?Thanks _______________________________________________ Lustre-discuss mailing list Lustre-discuss@lists.clusterfs.com https://lists.clusterfs.com/mailman/listinfo/lustre-discuss
Adam, I believe he is using the publicly available 1.2.4 release so LDAP should be working fine in that. As for the broken LDAP issue in 1.4.0, well you can find a fix I posted for that in the CFS Bugzilla in bug #5459. This will be fixed in the forthcoming 1.4.1 release. Fergal. -- Fergal.McCarthy@HP.com (The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated, you should consider this message and attachments as "HP CONFIDENTIAL".) -----Original Message----- From: lustre-discuss-admin@lists.clusterfs.com [mailto:lustre-discuss-admin@lists.clusterfs.com] On Behalf Of Adam Cassar Sent: 10 March 2005 04:58 To: raymondyu Cc: lustre-discuss@lists.clusterfs.com Subject: Re: [Lustre-discuss] ldap error You do not need to use LDAP to achieve failover. There are some issues with LDAP support in v1.4.0 - it will be easier if you do not use it. You can use a http url to download the config from a web server instead. On Wed, 2005-03-09 at 14:45 +0800, raymondyu wrote:> Hi, > I am follow lustre documenthttps://wiki.clusterfs.com/lustre/LustreLDAP to> install openldap >=20 > cd lustre/conf > cp lustre.schema /etc/openldap/schema > cp slapd-lustre.conf /etc/openldap > mkdir -m 700 /var/lib/ldap/lustre > chown ldap.ldap /var/lib/ldap/lustre >=20 > Add the following line to /etc/openldap/slapd.conf: >=20 > include /etc/openldap/slapd-lustre.conf > After installing the rpms and/or editing slapd.conf, restart your LDAP > server. Before any configurations can be loaded, an initial entry mustbe> created in the database. This can be done by loading top.ldif; thisassumes> the LDAP server is on localhost: ldapadd -x -D "cn=3DManager,fs=3Dlustre"-f> $LUSTRE/conf/top.ldif -w ''secret''Below error occurldap_bind: Can''tcontact> LDAP server (81)If i remove include /etc/openldap/slapd-lustre.confIcan> startup ldap without error Is the luster.scheama has problem?Thanks >=20 >=20 > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss@lists.clusterfs.com > https://lists.clusterfs.com/mailman/listinfo/lustre-discuss >=20--=20 Adam Cassar ICT Manager NetRegistry Pty Ltd ______________________________________________ http://www.netregistry.com.au Tel: 02 9699 6099 Fax: 02 9699 6088 PO Box 270 Broadway NSW 2007 Domains |Business Email|Web Hosting|E-Commerce Trusted by 10,000s of businesses since 1997 ______________________________________________ _______________________________________________ Lustre-discuss mailing list Lustre-discuss@lists.clusterfs.com https://lists.clusterfs.com/mailman/listinfo/lustre-discuss
You do not need to use LDAP to achieve failover. There are some issues with LDAP support in v1.4.0 - it will be easier if you do not use it. You can use a http url to download the config from a web server instead. On Wed, 2005-03-09 at 14:45 +0800, raymondyu wrote:> Hi, > I am follow lustre document https://wiki.clusterfs.com/lustre/LustreLDAP to > install openldap > > cd lustre/conf > cp lustre.schema /etc/openldap/schema > cp slapd-lustre.conf /etc/openldap > mkdir -m 700 /var/lib/ldap/lustre > chown ldap.ldap /var/lib/ldap/lustre > > Add the following line to /etc/openldap/slapd.conf: > > include /etc/openldap/slapd-lustre.conf > After installing the rpms and/or editing slapd.conf, restart your LDAP > server. Before any configurations can be loaded, an initial entry must be > created in the database. This can be done by loading top.ldif; this assumes > the LDAP server is on localhost: ldapadd -x -D "cn=Manager,fs=lustre" -f > $LUSTRE/conf/top.ldif -w ''secret''Below error occurldap_bind: Can''t contact > LDAP server (81)If i remove include /etc/openldap/slapd-lustre.confI can > startup ldap without error Is the luster.scheama has problem?Thanks > > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss@lists.clusterfs.com > https://lists.clusterfs.com/mailman/listinfo/lustre-discuss >-- Adam Cassar ICT Manager NetRegistry Pty Ltd ______________________________________________ http://www.netregistry.com.au Tel: 02 9699 6099 Fax: 02 9699 6088 PO Box 270 Broadway NSW 2007 Domains |Business Email|Web Hosting|E-Commerce Trusted by 10,000s of businesses since 1997 ______________________________________________
You could try downloading the sources and building them yourself by following
the project file release area
<http://sourceforge.net/project/showfiles.php?group_id=2072> link on
http://python-ldap.sourceforge.net/download.shtml page.
Fergal.
--
Fergal.McCarthy@HP.com <mailto:Fergal.McCarthy@HP.com>
(The contents of this message and any attachments to it are confidential and may
be legally privileged. If you have received this message in error you should
delete it from your system immediately and advise the sender. To any recipient
of this message within HP, unless otherwise stated, you should consider this
message and attachments as "HP CONFIDENTIAL".)
-----Original Message-----
From: lustre-discuss-admin@lists.clusterfs.com
[mailto:lustre-discuss-admin@lists.clusterfs.com] On Behalf Of dino@pspace.co.kr
Sent: 13 April 2005 06:05
To: lustre-discuss@lists.clusterfs.com
Subject: RE: [Lustre-discuss] ldap error
Well, there’s no python-ldap rpm for RHEL3.0
I failed to find the rpm for the RHEL 3.0. there’s only for Fedora, mandrake or
suse.
And I found that RHEL4.0 include the python-ldap package.
Then should I upgrade to RHEL4.0 ?
Is there anyone who knows where the package is ?
---------------------------------------------------------
공 용 준
클러스터 사업팀 대리
(주)피스페이스, PSPACE
경기도 분당수 수내동 10-1 트라팰리스 810호
Mobile: 011-9776-5025
Tel: 031-711-8450 Fax:031-711-8451
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------
-----Original Message-----
From: Mc Carthy, Fergal [mailto:fergal.mccarthy@hp.com]
Sent: Tuesday, April 12, 2005 6:25 PM
To: dino@pspace.co.kr; lustre-discuss@lists.clusterfs.com
Subject: RE: [Lustre-discuss] ldap error
You need to install the python-ldap rpm appropriate to the python version that
you are running. The lconf command by default will choose the default system
python interpreter. Depending on your system this could be python1.5, python2.2
or python2.3. The python-ldap kit recommended on the CFS Wiki will install for a
python2.2 interpreter.
Fergal.
--
Fergal.McCarthy@HP.com <mailto:Fergal.McCarthy@HP.com>
(The contents of this message and any attachments to it are confidential and may
be legally privileged. If you have received this message in error you should
delete it from your system immediately and advise the sender. To any recipient
of this message within HP, unless otherwise stated, you should consider this
message and attachments as "HP CONFIDENTIAL".)
-----Original Message-----
From: lustre-discuss-admin@lists.clusterfs.com
[mailto:lustre-discuss-admin@lists.clusterfs.com] On Behalf Of dino@pspace.co.kr
Sent: 12 April 2005 09:39
To: lustre-discuss@lists.clusterfs.com
Subject: [Lustre-discuss] ldap error
I have tried the ldap features of Lustre. (version 1.4.0)
Well,.. I followed the setup document in luster webpage.
And there’s no problem until setting up the ldap server for lustre.
But when I try to setup the nodes with ‘lconf’, I got error messages
(to brief, the ldap server name is ‘dinovm’ and I check the ldap server is
running.
and the ldap server can be accessed from other host by network)
the command line is like below and the error messages follows … please help me
out.
Thanks
[root@sec root]# lconf -v --ldapurl ldap://dinovm --config config
Traceback (most recent call last):
File "/usr/sbin/lconf", line 2879, in ?
main()
File "/usr/sbin/lconf", line 2828, in main
lustreDB = Lustre.LustreDB_LDAP('''', {}, base=dn, url =
config.ldapurl)
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 303, in
__init__
self.open()
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 306, in open
import ldap
ImportError: No module named ldap
---------------------------------------------------------
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------
I have tried the ldap features of Lustre. (version 1.4.0)
Well,.. I followed the setup document in luster webpage.
And there’s no problem until setting up the ldap server for lustre.
But when I try to setup the nodes with ‘lconf’, I got error messages
(to brief, the ldap server name is ‘dinovm’ and I check the ldap
server is running.
and the ldap server can be accessed from other host by network)
the command line is like below and the error messages follows … please
help me out.
Thanks
[root@sec root]# lconf -v --ldapurl ldap://dinovm --config config
Traceback (most recent call last):
File "/usr/sbin/lconf", line 2879, in ?
main()
File "/usr/sbin/lconf", line 2828, in main
lustreDB = Lustre.LustreDB_LDAP('''', {}, base=dn, url
config.ldapurl)
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 303, in
__init__
self.open()
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 306, in open
import ldap
ImportError: No module named ldap
---------------------------------------------------------
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------
You need to install the python-ldap rpm appropriate to the python
version that you are running. The lconf command by default will choose
the default system python interpreter. Depending on your system this
could be python1.5, python2.2 or python2.3. The python-ldap kit
recommended on the CFS Wiki will install for a python2.2 interpreter.
Fergal.
--
Fergal.McCarthy@HP.com <mailto:Fergal.McCarthy@HP.com>
(The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error you should delete it from your system immediately and advise the
sender. To any recipient of this message within HP, unless otherwise
stated, you should consider this message and attachments as "HP
CONFIDENTIAL".)
-----Original Message-----
From: lustre-discuss-admin@lists.clusterfs.com
[mailto:lustre-discuss-admin@lists.clusterfs.com] On Behalf Of
dino@pspace.co.kr
Sent: 12 April 2005 09:39
To: lustre-discuss@lists.clusterfs.com
Subject: [Lustre-discuss] ldap error
I have tried the ldap features of Lustre. (version 1.4.0)
Well,.. I followed the setup document in luster webpage.
And there''s no problem until setting up the ldap server for lustre.
But when I try to setup the nodes with ''lconf'', I got error
messages
(to brief, the ldap server name is ''dinovm'' and I check the
ldap server
is running.
and the ldap server can be accessed from other host by network)
the command line is like below and the error messages follows ... please
help me out.
Thanks
[root@sec root]# lconf -v --ldapurl ldap://dinovm --config config
Traceback (most recent call last):
File "/usr/sbin/lconf", line 2879, in ?
main()
File "/usr/sbin/lconf", line 2828, in main
lustreDB = Lustre.LustreDB_LDAP('''', {}, base=dn, url
config.ldapurl)
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 303, in
__init__
self.open()
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 306, in open
import ldap
ImportError: No module named ldap
---------------------------------------------------------
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------
Well, there’s no python-ldap rpm for RHEL3.0
I failed to find the rpm for the RHEL 3.0. there’s only for Fedora,
mandrake or suse.
And I found that RHEL4.0 include the python-ldap package.
Then should I upgrade to RHEL4.0 ?
Is there anyone who knows where the package is ?
---------------------------------------------------------
공 용 준
클러스터 사업팀 대리
(주)피스페이스, PSPACE
경기도 분당수 수내동 10-1 트라팰리스 810호
Mobile: 011-9776-5025
Tel: 031-711-8450 Fax:031-711-8451
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------
-----Original Message-----
From: Mc Carthy, Fergal [mailto:fergal.mccarthy@hp.com]
Sent: Tuesday, April 12, 2005 6:25 PM
To: dino@pspace.co.kr; lustre-discuss@lists.clusterfs.com
Subject: RE: [Lustre-discuss] ldap error
You need to install the python-ldap rpm appropriate to the python
version that you are running. The lconf command by default will choose
the default system python interpreter. Depending on your system this
could be python1.5, python2.2 or python2.3. The python-ldap kit
recommended on the CFS Wiki will install for a python2.2 interpreter.
Fergal.
--
<mailto:Fergal.McCarthy@HP.com> Fergal.McCarthy@HP.com
(The contents of this message and any attachments to it are
confidential and may be legally privileged. If you have received this
message in error you should delete it from your system immediately and
advise the sender. To any recipient of this message within HP, unless
otherwise stated, you should consider this message and attachments as
"HP CONFIDENTIAL".)
-----Original Message-----
From: lustre-discuss-admin@lists.clusterfs.com [mailto:lustre-discuss-
admin@lists.clusterfs.com] On Behalf Of dino@pspace.co.kr
Sent: 12 April 2005 09:39
To: lustre-discuss@lists.clusterfs.com
Subject: [Lustre-discuss] ldap error
I have tried the ldap features of Lustre. (version 1.4.0)
Well,.. I followed the setup document in luster webpage.
And there’s no problem until setting up the ldap server for lustre.
But when I try to setup the nodes with ‘lconf’, I got error messages
(to brief, the ldap server name is ‘dinovm’ and I check the ldap
server is running.
and the ldap server can be accessed from other host by network)
the command line is like below and the error messages follows … please
help me out.
Thanks
[root@sec root]# lconf -v --ldapurl ldap://dinovm --config config
Traceback (most recent call last):
File "/usr/sbin/lconf", line 2879, in ?
main()
File "/usr/sbin/lconf", line 2828, in main
lustreDB = Lustre.LustreDB_LDAP('''', {}, base=dn, url
config.ldapurl)
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 303, in
__init__
self.open()
File "/usr/lib/lustre/python/Lustre/lustredb.py", line 306, in open
import ldap
ImportError: No module named ldap
---------------------------------------------------------
Email:dino@pspace.co.kr Web:http://www.pspace.co.kr
---------------------------------------------------------