How to find the disk space occupied by a subtree in ldap?

Hi

We have built a tree structure in LDAP similar to the following.

dc=orgname,dc=com-> orgname->countryname

where orgname is a domain object, orgname is an organization and countryname is a country object.

all the users are stored under the subtree countryname.

We needed to find the diskspace occupied by the users stored under the countryname subtree.

Please provide us the method to retrieve this information from the LDAP Server.

[483 byte] By [iamits] at [2007-11-26 11:19:50]
# 1

I'm not really sure you can do this.

If we are talking about JES Directory Server, the directory information is stored inside a database, so it is not really that easy to figure which bits of the database files belong to that part of the ldap structure.

Also, and I don't know if this is the case for you, there could be some chained suffixes on the specific tree you are search, so that data possilby wouldn't even be available on the particular server you are performing the searches, which would lead of with a gap on your storage space requiered for the specific subtree.

I belive most LDAP server store their information on a DB of some sort, which makes the retrieving of the kind of information you are looking for quite hard.

Rp

SysHex at 2007-7-7 3:35:08 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
I think per root suffix a directory is defined where tha data files are stored fo JES Directory server. This you can find in your config directory.Adding the file sizes gives you an indication
robert@javix at 2007-7-7 3:35:08 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
Exactly. Robert is 100% correct.But in your case, since all organizations are defined (correctly) inside one Root Suffix, adding all the files sizes for that Root Suffix will lead you to the space used by all organizations.
SysHex at 2007-7-7 3:35:08 > top of Java-index,Application & Integration Servers,Application Servers...
# 4
Thank U
iamits at 2007-7-7 3:35:08 > top of Java-index,Application & Integration Servers,Application Servers...