Anonymous_User Absent Member.
Absent Member.
293 views

Duplicate lines in nds.conf Help!!


Binary Version: 20701.48
Root Most Entry Depth: 0
Product Version: eDirectory for Linux x86_64 v8.8 SP7 [DS]
OS : Red Hat Linux Enterprise


We have only one eDirectory instance running in our production, but when
i run ndsmanage in the server running eDirectory, it shows me many
instances and all are inactive.

when i see the contents of the file nds.conf on the server, it has many
duplicate lines in it!!!!!!!.

i'm wondering is it something we should worry ????, and why this is
happening and how to solve this issue?

We have two servers running with the same OS/eDIR versions, both are
have the same issues.



Regards,
M.


--
belaie
------------------------------------------------------------------------
belaie's Profile: https://forums.netiq.com/member.php?userid=308
View this thread: https://forums.netiq.com/showthread.php?t=50205

Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Duplicate lines in nds.conf Help!!

Sounds like Bug# 729238. It's still an open bug as it is hard to
reproduce, and seems to happen randomly for customers. To get the right
ndsmanage/etc. output clean up duplicate lines. Use the 'sort -u' command
if nothing else to sort and find unique lines, then spot-check for
anything that still looks off. Replace the current nds.conf file with the
one with unique lines and then see if the tools behave better. Probably a
really good idea to do this on a test box before trying production.

If you can, open an SR and let them know what you're seeing. Send them
the original nds.conf file. They'll want you to patch to a current
versions, of course, but this issue has been around for quite a while and
is unresolved, so at least knowing you're seeing it on 8.8 SP7 could be
useful to verify the issue still exists and is affecting customers.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Duplicate lines in nds.conf Help!!


Hello

Thank you for your reply. But is it something that can effect our
edirectory system performances & health or is it just that we can not
use ndsmanage or other management tools due to this issue?


I will try to open SR, hope it solves.

Where can i read about the Bug# 729238 ??

Regards,

M.




ab;241742 Wrote:
> Sounds like Bug# 729238. It's still an open bug as it is hard to
> reproduce, and seems to happen randomly for customers. To get the
> right
> ndsmanage/etc. output clean up duplicate lines. Use the 'sort -u'
> command
> if nothing else to sort and find unique lines, then spot-check for
> anything that still looks off. Replace the current nds.conf file with
> the
> one with unique lines and then see if the tools behave better. Probably
> a
> really good idea to do this on a test box before trying production.
>
> If you can, open an SR and let them know what you're seeing. Send them
> the original nds.conf file. They'll want you to patch to a current
> versions, of course, but this issue has been around for quite a while
> and
> is unresolved, so at least knowing you're seeing it on 8.8 SP7 could be
> useful to verify the issue still exists and is affecting customers.
>
> --
> Good luck.
>
> If you find this post helpful and are logged into the web interface,
> show your appreciation and click on the star below...



--
maqsood
------------------------------------------------------------------------
maqsood's Profile: https://forums.netiq.com/member.php?userid=2617
View this thread: https://forums.netiq.com/showthread.php?t=50205

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Duplicate lines in nds.conf Help!!

The bug is only accessible to internal folks, and I do not see a TID
published on this currently, so I cannot help you there. Since I reported
the bug I know what I remember, and for the most part it does not hurt
anything other than tools (like you're seeing) and upgrades (when you
upgrade things may fail due to the problem with tools). If you count
losing a few hundred bytes of disk space as a problem, you also have that,
though if that's a real problem you have a bigger problem (lack of disk
space). 🙂

Cleaning up is generally the current workaround as described before. You
won't end up with corruption, or usually other big failures, because of
this... it's just that the tools are not written to handle duplicate lines
and as a result you'll see some pain when you work with the system should
duplicate lines exist.

I created a script once to detect this situation which I still have around
in some form should you like to use it:

Code:
--------------------
#!/bin/bash
#Fill in the nds.conf file to be checked here.
NDSCONFFILE='/etc/opt/novell/eDirectory/conf/nds.conf'

#space-delimited list of recipients to be notified
MAILRCPTLIST='you@yourdomain.com'

if [[ ` /usr/bin/sort ${NDSCONFFILE} | /usr/bin/md5sum` != ` /usr/bin/sort -u
${NDSCONFFILE} | /usr/bin/md5sum` ]]; then
echo "${NDSCONFFILE} file has duplicates and that is bad... fix it;
also, think about what may have happened recently to cause it if this just
started" | /usr/bin/mail -s 'nds.conf duplicate line problem bug#729238'
-a ${NDSCONFFILE}
${MAILRCPTLIST};
else
/bin/echo 'same... nothing to see here' >/dev/null;
fi
--------------------

You can set that to run in a cron job, for example, and then you'll get
e-mails as soon as there is a problem.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.