Hello,
When I started adding some entries to openldap server (2.3.36), suddenly my system powered off,
When I started my sytem after rebooting, my slapd with BDB as backend , is unable to recover , I am getting an error as below, Please say , what am I doing wrong
Thanks,
Arunachalam.
config_build_entry: "olcDatabase={1}bdb"
backend_startup_one: starting "dc=huawei,dc=com"
bdb_db_open: dc=huawei,dc=com
bdb_db_open: dbenv_open(/home/Arunachalam/Res/openldapdb_36)
bdb(dc=huawei,dc=com): file id2entry.bdb (meta pgno = 0) has LSN [32][3600584].
bdb(dc=huawei,dc=com): end of log is [31][937891]
bdb(dc=huawei,dc=com): /home/Arunachalam/Res/openldapdb_36/id2entry.bdb: unexpected file type or format
bdb_db_open: db_open(/home/Arunachalam/Res/openldapdb_36/id2entry.bdb) failed: Invalid argument (22)
====> bdb_cache_release_all
bdb(dc=huawei,dc=com): Unknown locker ID: 0
backend_startup_one: bi_db_open failed! (22)
slapd shutdown: initiated
====> bdb_cache_release_all
bdb_db_close: alock_close failed
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
**************************************************************************** **************************** This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
Hello,
When I started adding some entries to openldap server (2.3.36), suddenly my system powered off,
When I started my sytem after rebooting, my slapd with BDB as backend , is unable to recover , I am getting an error as below, Please say , what am I doing wrong
I am not sure if this is your problem but have you tried running the bdb utilities to recover from a corrupted database. I believe the command is db_recover. We have had to do this a few times in the past.
John
John Drescher wrote:
Hello,
When I started adding some entries to openldap server (2.3.36), suddenly my system powered off,
When I started my sytem after rebooting, my slapd with BDB as backend , is unable to recover , I am getting an error as below, Please say , what am I doing wrong
I am not sure if this is your problem but have you tried running the bdb utilities to recover from a corrupted database. I believe the command is db_recover. We have had to do this a few times in the past.
It's clear from his error log that such actions will be useless. His transaction log is clearly missing a large amount of data. The BDB transaction support can't help you if your hardware fails to preserve the transaction log data.
Hello ,
I did db_recover in the bdb database directory and I am able to start slapd, but may be the data as you said, would have been last. I will check that.. Thanks
Arunachalam.
**************************************************************************** ****************************
This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
-----Original Message----- From: Howard Chu [mailto:hyc@symas.com] Sent: Wednesday, June 20, 2007 11:09 PM To: John Drescher Cc: arunachalamp@huawei.com; openldap-software@openldap.org Subject: Re: Recovery after system shutdown
John Drescher wrote:
Hello,
When I started adding some entries to openldap server (2.3.36), suddenly
my
system powered off,
When I started my sytem after rebooting, my slapd with BDB as backend ,
is
unable to recover , I am getting an error as below, Please say , what am
I
doing wrong
I am not sure if this is your problem but have you tried running the
bdb utilities to recover from a corrupted database. I believe the
command is db_recover. We have had to do this a few times in the past.
It's clear from his error log that such actions will be useless. His
transaction log is clearly missing a large amount of data. The BDB transaction
support can't help you if your hardware fails to preserve the transaction log data.
If we are sure that transaction logs are persisted by making the bdb flags DB_TXN_SYNC, then there will not be problem if hardware fails and restarts right?
**************************************************************************** ****************************
This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
-----Original Message----- From: Howard Chu [mailto:hyc@symas.com] Sent: Wednesday, June 20, 2007 11:09 PM To: John Drescher Cc: arunachalamp@huawei.com; openldap-software@openldap.org Subject: Re: Recovery after system shutdown
John Drescher wrote:
Hello,
When I started adding some entries to openldap server (2.3.36), suddenly
my
system powered off,
When I started my sytem after rebooting, my slapd with BDB as backend ,
is
unable to recover , I am getting an error as below, Please say , what am
I
doing wrong
I am not sure if this is your problem but have you tried running the
bdb utilities to recover from a corrupted database. I believe the
command is db_recover. We have had to do this a few times in the past.
It's clear from his error log that such actions will be useless. His
transaction log is clearly missing a large amount of data. The BDB transaction
support can't help you if your hardware fails to preserve the transaction log data.
openldap-software@openldap.org