Hello,
I have recently migrated my openldap server from hdb to mdb. In this kind of database you configure the maximal database size with maxsize option.
Although I have configure this option with 8GB, more than the double of my actual database size, I would like to know if there is any way to calculate the remaining size.
According to [1] you can get the actual size with a du. But my problem is that I'm using zfs with a compressed file system, so du reports the compressed size, not the real one.
Is there any way to get this value? Or my real maximum size is 8GB after compression?
[1] https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0
Le 07/01/2016 11:57, Angel L. Mateo a écrit :
Hello,
I have recently migrated my openldap server from hdb to mdb. In
this kind of database you configure the maximal database size with maxsize option.
Although I have configure this option with 8GB, more than the
double of my actual database size, I would like to know if there is any way to calculate the remaining size.
According to [1] you can get the actual size with a du. But my
problem is that I'm using zfs with a compressed file system, so du reports the compressed size, not the real one.
Is there any way to get this value? Or my real maximum size is 8GB
after compression?
[1] https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0
Hi,
I wrote a monitoring plugin that uses mdb_stat to do this : * http://ltb-project.org/wiki/documentation/nagios-plugins/check_lmdb_usage * http://tools.ltb-project.org/projects/ltb/repository/entry/nagios-plugins/tr...
Clément OUDOT wrote:
Le 07/01/2016 11:57, Angel L. Mateo a écrit :
Hello,
I have recently migrated my openldap server from hdb to mdb. In this
kind of database you configure the maximal database size with maxsize option.
Although I have configure this option with 8GB, more than the double of
my actual database size, I would like to know if there is any way to calculate the remaining size.
According to [1] you can get the actual size with a du. But my problem
is that I'm using zfs with a compressed file system, so du reports the compressed size, not the real one.
Is there any way to get this value? Or my real maximum size is 8GB after
compression?
[1] https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0
Hi,
I wrote a monitoring plugin that uses mdb_stat to do this :
http://tools.ltb-project.org/projects/ltb/repository/entry/nagios-plugins/tr...
We had plans to put the mdb_stats into cn=monitor. I guess that'll be a 2.5 feature.
El 07/01/16 a las 13:15, Clément OUDOT escribió:
Hi,
I wrote a monitoring plugin that uses mdb_stat to do this :
http://tools.ltb-project.org/projects/ltb/repository/entry/nagios-plugins/tr...
Thank you. I'll try it
On 01/07/2016 04:57 AM, Angel L. Mateo wrote:
Hello,
I have recently migrated my openldap server from hdb to mdb. In
this kind of database you configure the maximal database size with maxsize option.
Although I have configure this option with 8GB, more than the
double of my actual database size, I would like to know if there is any way to calculate the remaining size.
According to [1] you can get the actual size with a du. But my
problem is that I'm using zfs with a compressed file system, so du reports the compressed size, not the real one.
Addressing this from the filesystem side, rather than openldap, "du -A" reports the apparent size rather than the used size - this gives you the file sizes without compression. That's for FreeBSD, I have not used zfs on linux, but it looks like "du --apparent-size" should do the same thing.
G.
El 07/01/16 a las 17:22, Graham Allan escribió:
On 01/07/2016 04:57 AM, Angel L. Mateo wrote:
Hello,
I have recently migrated my openldap server from hdb to mdb. In
this kind of database you configure the maximal database size with maxsize option.
Although I have configure this option with 8GB, more than the
double of my actual database size, I would like to know if there is any way to calculate the remaining size.
According to [1] you can get the actual size with a du. But my
problem is that I'm using zfs with a compressed file system, so du reports the compressed size, not the real one.
Addressing this from the filesystem side, rather than openldap, "du -A" reports the apparent size rather than the used size - this gives you the file sizes without compression. That's for FreeBSD, I have not used zfs on linux, but it looks like "du --apparent-size" should do the same thing.
Right. du --apparent-size seems to report the size of the file without compression.
Thank you.
openldap-technical@openldap.org