[Date Prev][Date Next]
Re: Knowing free mdb space
El 07/01/16 a las 17:22, Graham Allan escribió:
Right. du --apparent-size seems to report the size of the file without
On 01/07/2016 04:57 AM, Angel L. Mateo wrote:
I have recently migrated my openldap server from hdb to mdb. In
this kind of database you configure the maximal database size with
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  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.
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)