LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2008, 09:46 AM   #1
eluis
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
Question LDAP - Huge files for a small database


Hi,

I have open-ldap server configured just to give e-mail addresses to Outlook users.
It's a small database with about 30 entries
In opend-ldap data folder (/var/openldap-data) I have some files, listed below:

-rw------- 1 root root 24K 2008-05-30 13:36 __db.001
-rw------- 1 root root 35M 2008-05-30 13:36 __db.002
-rw------- 1 root root 321M 2008-05-30 13:36 __db.003
-rw------- 1 root root 2.3M 2008-05-30 13:36 __db.004
-rw------- 1 root root 352K 2008-05-30 13:36 __db.005
-rw------- 1 root root 24K 2008-05-30 13:36 __db.006

__db.003 has 321Mb space.

What are these files? Can I delete that file or gzip it??
 
Old 06-06-2008, 03:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Chances are they're sparse files. What does "ls -ls" say in the first column?

[edit]
And you DON'T want to move, delete or zip those :}
[/edit]


Cheers,
Tink

Last edited by Tinkster; 06-06-2008 at 03:54 PM.
 
Old 06-06-2008, 04:11 PM   #3
eluis
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
"ls -ls" OUTPUT:

-rw------- 1 root root 793 2007-02-14 16:56 DB_CONFIG
-rw------- 1 root root 793 2006-06-12 07:25 DB_CONFIG.example
-rw------- 1 root root 24576 2008-05-30 13:36 __db.001
-rw------- 1 root root 35872768 2008-05-30 13:36 __db.002
-rw------- 1 root root 335552512 2008-05-30 13:36 __db.003
-rw------- 1 root root 2359296 2008-05-30 13:36 __db.004
-rw------- 1 root root 360448 2008-05-30 13:36 __db.005
-rw------- 1 root root 24576 2008-05-30 13:36 __db.006
-rw-r--r-- 1 root root 4096 2008-06-06 04:02 alock
-rw------- 1 root root 24576 2008-05-21 12:27 dn2id.bdb
-rw------- 1 root root 81920 2008-05-21 12:27 id2entry.bdb
-rw------- 1 root root 42707 2007-02-14 16:52 log.0000000001
-rw------- 1 root root 10485760 2008-05-21 12:27 log.0000000002
-rw------- 1 root root 8192 2008-05-21 12:27 objectClass.bdb
 
Old 06-06-2008, 08:36 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... that doesn't look quite like the output I'd expect.
What OS, and which version of ls are you using?

Compare to this:
Code:
ls -l /var/lib/ldap/*_db.*
-rw------- 1 openldap openldap    8192 2008-05-13 13:43 /var/lib/ldap/__db.001
-rw------- 1 openldap openldap 2629632 2008-05-13 13:43 /var/lib/ldap/__db.002
-rw------- 1 openldap openldap   98304 2008-05-13 13:43 /var/lib/ldap/__db.003
-rw------- 1 openldap openldap  565248 2008-05-13 13:43 /var/lib/ldap/__db.004
-rw------- 1 openldap openldap   24576 2008-05-13 13:43 /var/lib/ldap/__db.005

ls -ls /var/lib/ldap/*_db.*
  8 -rw------- 1 openldap openldap    8192 2008-05-13 13:43 /var/lib/ldap/__db.001
 55 -rw------- 1 openldap openldap 2629632 2008-05-13 13:43 /var/lib/ldap/__db.002
 16 -rw------- 1 openldap openldap   98304 2008-05-13 13:43 /var/lib/ldap/__db.003
381 -rw------- 1 openldap openldap  565248 2008-05-13 13:43 /var/lib/ldap/__db.004
 12 -rw------- 1 openldap openldap   24576 2008-05-13 13:43 /var/lib/ldap/__db.005
which, btw, is proof of the fact that they are indeed sparse files.
2629632 in fact only occupies 55 blocks (of 1024 bytes each) rather
than 2568 you'd expect.


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying a huge amount of small files, on a live system xxxx Linux - General 12 04-15-2008 02:53 AM
LXer: This new small Linux distro could be huge LXer Syndicated Linux News 0 04-03-2008 06:50 AM
MySQL help with huge database izghitu Linux - Software 1 11-26-2007 07:46 PM
PHP: huge functions file vs multiple small files carlosruiz Programming 2 06-14-2005 03:06 AM
Eclipse fonts small in gnome & huge in kde juby Linux - Software 1 05-04-2004 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration