Anonymous_User Absent Member.
Absent Member.
639 views

What are *.nds files used for?


As the title indicates, what are the *.nds files for in the dib folder
used for? Are they supposed to be temporary? Because we have many that
have timestamps from years ago. Just wondering if there's anything I
could/should be doing to clear those out.


--
infinity9999
------------------------------------------------------------------------
infinity9999's Profile: https://forums.netiq.com/member.php?userid=1343
View this thread: https://forums.netiq.com/showthread.php?t=3042

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

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 16:04:02 +0000, infinity9999 wrote:

> As the title indicates, what are the *.nds files for in the dib folder
> used for? Are they supposed to be temporary? Because we have many that
> have timestamps from years ago. Just wondering if there's anything I
> could/should be doing to clear those out.


Those are database files used by eDirectory. Don't mess with them. 🙂

Jim



--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think Jim's being a little harsh. Since you didn't include your goal
Jim is jumping, even leaping, to the conclusion that you do not want to
corrupt your DIB. If you are trying to do that, or do not mind doing
that, or if you at least don't mind losing data, sure go ahead and
delete anything you want.

On a more serious note, sometimes it seems like old files are "bad" and
new files are "good", but the reality is that some data in your tree
will be as old as your tree (tree name, top container, admin user often
fall into this category) and the attributes on them may be stored in
separate files. Stream-type attributes (photos, login scripts, other
big things) go into some of these files so you MAY be able to see what
is in them if you have privileges to the DIB directory and if you try to
open them up with 'less' or maybe even 'strings'. I wouldn't recommend
doing this on a live system (unless you are okay with corruption... not
that reading causes corruption but messing around could cause you to
mess up and then do something bad) but, unless encrypted, stream data
can be read very easily from their respective files. Seldom is this
useful, but there you go.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQU1pzAAoJEF+XTK08PnB55KgP/1okoH92c2DfAugb3OVc70VX
5pHTYEHtT7Rz0wijlg8NJrrKwzsBEe+vsDTCIJPFPHrO9ZJJZTXP9VbHaZZ3GCgt
VngzRpddxQ2AVL3wLnshHhKZZLmaer70/8xsu4aBHxsm5PnVOfIWE630WxlsEbP+
dN0+KdEbMMPeUFRZk9xhBro0D80KIYchtUa0BLNANxCS4OQldKVQvygM/76bC0mP
XHrKFunZwppgRyRzDnx8AhOHf7ghs86dzMMCeYd8Dq+fJWdy4z8kzE+pGiyaT3rF
Z2fOqyslYjdg/SZCtYrakRCpniqbmkXEFJCbg3TawSPfAk/X+1Ems0sGX6EIRTyi
agEbA6nP71aH/RVf0ITLxjqazGdzcP2Kx+4u9RjzLvwZ1xomXLHT4PVxarfDXxQn
EOFRtG6aJXv3RRwIkXDOANbNTQs7jPn/u9GYXvbxv3FbWDkZ9/wmLZtYvphYW/ph
6WHp3xtotVISYodMO+EwWxKA9mx5fxG3O39WxSrgrxKccwGFHsIdB/oTVTIAxxyh
ckOFYZiJTPeu2pSNodmpHqTOovKNZqD1KgUic7acqDVAMyu43WvHFOm5mvUtHd/p
OaPi8r612CV243VQVX3BmXtVGi6+3euRXRdanR6LwdJMSkLlAZrK1dwN6lF6daHx
aOJRVTKvevJj1sPf68ON
=zv3o
-----END PGP SIGNATURE-----
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 16:25:23 +0000, ab wrote:

> I think Jim's being a little harsh. Since you didn't include your goal
> Jim is jumping, even leaping, to the conclusion that you do not want to
> corrupt your DIB. If you are trying to do that, or do not mind doing
> that, or if you at least don't mind losing data, sure go ahead and
> delete anything you want.


LOL

Of course, if corruption is what you're aiming for, then yeah, "clean"
the directory. (Not recommended, though, if you want a stable system)

Not to say that there aren't files that could be removed - .ndo
files, .tmp files. But other files as well (as ab knows) are stream
files - login scripts and other stuff - and deleting those would
generally not be a good idea and would leave your database inconsistent
as well.

Jim
--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim,

By .tmp did you mean .ndt?

Something else worth mentioning, the files with nds at the beginning OR
the end are the main DIB. ndo at the beginning or end, or ndt and the
beginning or end, are the safer ones to "clean", but very carefully.
These are copies of the DIB so if you have a lot of GBs in a DIB then
you're now using a lot of GBs unnecessarily in these backup copies, and
deleting the backups is fine, but if you mess up you'll be rebuilding
the eDir instance from scratch.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQU2GjAAoJEF+XTK08PnB5XeEQANc8E1z6pj2an9FEO2tBQ6IN
cZP34g9Q89wModhsXwgQ9TDKnFk4kd7ig8e8zi29rN5JcMeG/OCZotBeW+GrBxuu
knnPdVCBd4PE2EeWHAMdJdoPdzExHaMfaMiJX5pSX+Ny7r7jjDWg5wHMZqXvm+F+
uf7lufgo4CCkcBevb8mEXC+eHSQWTt14DF5hXIsoWxvTTazcARwmCKiNs0CbkDE7
CFyL0xlwsnad9S6IUCMG5E/jAKYBMI9WIOW40gGAtIfxdiiJ0sqzPnvvWO89QqXY
QmAVVhc2iKtjIAj5rKsqnKYnubQw+IwZKyA+fEozkHY/JQZ1XYROEiX9N1g6ZJtU
JviA0Ri40ONY8zV4jke4deGBG8SIBVsZyqQ0AgQzncqRJSUKNl/yNwTZy62XJLeD
K+h3NrcLIMjyMSNhUlX8l7egZBxPaiOvpmq3QcdiFGR7S3Sp32MBf768cXhFjnfh
UhpE7l1L+07AbX9VXi7xvLJPCH9L2q/dBhI0lDhixDVSMQh1cbGMUudSV451scKK
Oq+W6sgfDZk34AsynZa/8Qr5rW4OGh9JLtAYNo6SxKeDCrxPPnbKgFCQ+P1MYrZ6
tLUVDX8W2oU4Vf71vNblMC/OtBbwUfi68Qv512+puNooZ3eU0/PNXHzKS7Nu01wr
ZCI0CSRxCfzIQrGFCniE
=wOCB
-----END PGP SIGNATURE-----
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 16:56:03 +0000, ab wrote:

> By .tmp did you mean .ndt?


Yes, couldn't remember off the top of my head what the extension was. 🙂

> Something else worth mentioning, the files with nds at the beginning OR
> the end are the main DIB. ndo at the beginning or end, or ndt and the
> beginning or end, are the safer ones to "clean", but very carefully.
> These are copies of the DIB so if you have a lot of GBs in a DIB then
> you're now using a lot of GBs unnecessarily in these backup copies, and
> deleting the backups is fine, but if you mess up you'll be rebuilding
> the eDir instance from scratch.


Yep. Which is why I recommend not messing with it at all unless you know
what you're doing. 🙂

Jim

--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?


Well, I guess that's kind of the root of my question. If the nds.*
files are the main database, shouldn't the *.nds stream files be more
transient and only need to stick around until things are committed into
the main database? I wasn't planning to just whack them, but I was
wondering if something like a dsrepair would clean them out if it
rebuilds the database.


--
infinity9999
------------------------------------------------------------------------
infinity9999's Profile: https://forums.netiq.com/member.php?userid=1343
View this thread: https://forums.netiq.com/showthread.php?t=3042

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> If the nds.* files are the main database


That is not what was said, though. Quoting:

<quote>
the files with nds at the beginning OR the end are the main DIB
</quote>

For whatever reason the datastore was designed to separate out these
data, perhaps because they can be any old size and since they do get
very large at times it's more efficient to store them separately (just
speculating). Stream files are the only types of data which can be
replicated when very large (64-ish KB) which is probably related more to
how they are transmitted than stored, unless those two aspects of stream
attributes are related.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQU4L0AAoJEF+XTK08PnB58fAQAMRiPnU+wDYytD2pWPOvCIwK
jqRceB+xMv2qrPpYqpdY+freZdlo3jzUV0c9i16tvjFR2GkK56PyJuSDepYiGXKD
MUhyarpqnMdgQlNHp8Ka2bMevllSa/V+uYEEJFWvYBjSqo4ufBAdy8lFkuhTnfcR
mMDAqdmQYULmQhqQG8cBjbScpwJ7SgssaEG9Q+t28XgGDE64rlJ1tKClynoh6W/3
kzYwa8z2l4CqR2TIqtcy5plq8anyinWSAIbJ04SC6Hi37IRkhuvnBR0hX4A5LQlX
1dOGQdxNBdOAgOaZFv16SQYolmUNhSGxjM21GD3T8ud6ETXoiCIDoxpJvB4ORIOv
TLCQAejZZvwiZ1OuVYTLphb48DU1rkd22gfOL7Z50vtPFlqu8dfot+HVElgzh88R
mqj//alQVmepq127jRb7Pqd+5KTqr1634tIgi6GVgcE7L4cu8+SW8+fuQSMKHJHI
BlJ2D95aHxjjM9h4pr7CSHOcdcrJR3RMvEA8jV3mHwljOWk/X2l53Fuy3s2wagcY
7UROMnxDZ+pjSrCzDB1Y0I49d86pqQFEeNWQImpxsc7qNhdYdx7nxM65XHcgc59j
iP/icUvePU/T3+VmTRFxCKwJD04NpacoH4kPK2Lb+0EADK5Qh21bc7o+qchBcd5D
MlzMwhQUU5qdx4LmfgW+
=AqCO
-----END PGP SIGNATURE-----
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 19:18:13 +0000, ab wrote:

> For whatever reason the datastore was designed to separate out these
> data, perhaps because they can be any old size and since they do get
> very large at times it's more efficient to store them separately (just
> speculating).


I'm not speculating - that is the reason it's set up that way. IIRC,
stream files can be larger than 64 KB (at least by FLAIM design
standards; the SYN_STREAM data type may impose that limitation on it,
though).

Jim

--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?


Stream files can be as large as the underlying OS file system allows -
that I can determine - for instance, ZEN App objects are stream files if
I recall and they can be MB in size. At least I know the Photo stream
files can be MB in size ...


--
peterkuo
------------------------------------------------------------------------
peterkuo's Profile: https://forums.netiq.com/member.php?userid=170
View this thread: https://forums.netiq.com/showthread.php?t=3042

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 19:04:01 +0000, infinity9999 wrote:

> If the nds.*
> files are the main database, shouldn't the *.nds stream files be more
> transient and only need to stick around until things are committed into
> the main database?


No - stream files are stored "in the database" as a pointer to the file
in the filesystem. That way the database doesn't have to allocate/
reclaim large amounts of space when stream files are added or deleted. 🙂

Jim



--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?


OK, I think I get it now. Thanks to both of you for clearing that up
for me!


--
infinity9999
------------------------------------------------------------------------
infinity9999's Profile: https://forums.netiq.com/member.php?userid=1343
View this thread: https://forums.netiq.com/showthread.php?t=3042

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 20:34:02 +0000, infinity9999 wrote:

> OK, I think I get it now. Thanks to both of you for clearing that up
> for me!


No problem, glad to help out. 🙂

Jim



--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?


Stream files, as the give implied, are separate files and do not get
"integrated" into the main database file(s). They are always kept
separately (that I have ever seen anyway).


--
peterkuo
------------------------------------------------------------------------
peterkuo's Profile: https://forums.netiq.com/member.php?userid=170
View this thread: https://forums.netiq.com/showthread.php?t=3042

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: What are *.nds files used for?

On Fri, 14 Sep 2012 19:04:01 +0000, infinity9999 wrote:

> Well, I guess that's kind of the root of my question. If the nds.*
> files are the main database, shouldn't the *.nds stream files be more
> transient and only need to stick around until things are committed into
> the main database?


No. Stream "files" are where "stream" type attributes are stored. Think
of them in database terms as "blob files".


> I wasn't planning to just whack them, but I was
> wondering if something like a dsrepair would clean them out if it
> rebuilds the database.


No. The way to remove them is to remove the attribute (like a login
script, for example) from the object.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.netiq.com

Please post questions in the forums. No support provided via email.

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.