dbTalk Databases Forums  

problem trying db_recover

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss problem trying db_recover in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pavlos.parissis (AT) gmail (DOT) com
 
Posts: n/a

Default problem trying db_recover - 05-15-2006 , 01:57 AM






Hello all,

I am pretty new on Berkeley DB but I read the manuals for the
db_recover tool and I am having a problem using it.

When I run db_verify I get
db_verify caTotalRequestedUrls\:1
db_verify: mmap: Resource temporarily unavailable
db_verify: Page 8: non-invalid page 9 on free list
db_verify: DB->verify: caTotalRequestedUrls:1: DB_VERIFY_BAD: Database
verification failed

When I run db_recover I always get

db_recover
db_recover: mmap: Resource temporarily unavailable

in the directory which I run db_recover I have few DB files which only
one has the problem and I
do not have any log file. The log.0000000001 is created after I run the
db_recover.

My question is, does the message indicate that I am missing log files?
Do I need to have the log file(s) in order to run the db_recover tool?
Reading the manual of db_recover and the C api (DB_ENV->open) it is
mandatory to create log files if you want to
recover the db. So, I do need to have the log files ,am I right?

Checking the code(Perl using BerkeleyDB module) of the application,
which creates the DB, I do not see any DB_LOG_DIR statements.

I believe the code must be changed in order to create log files.

what do you think?

Cheers,
Pavlos

If I do not have the log files


Reply With Quote
  #2  
Old   
Ron
 
Posts: n/a

Default Re: problem trying db_recover - 05-15-2006 , 01:22 PM






Is your underlying filesystem a remotely mounted filesystem (for
example, NFS). I would check to make absolutely sure that you're
running on a local filesystem, and not an NFS-mounted one.

You will only get log files if you have configured your environment for
transactions. See:
http://www.sleepycat.com/docs/api_c/env_list.html looking for the
DB_INIT_TXN flag.



Ron


Reply With Quote
  #3  
Old   
pavlos.parissis (AT) gmail (DOT) com
 
Posts: n/a

Default Re: problem trying db_recover - 05-15-2006 , 02:02 PM



Hi,
So let me see if I get it right.
In order to have logs and be able to recover a DB you need to enable
DB_INIT_LOG
DB_INIT_TXN

and configure the log path as well.

am I right?

Cheers,
Pavlos


Reply With Quote
  #4  
Old   
Joseph Bruni
 
Posts: n/a

Default Re: problem trying db_recover - 05-16-2006 , 09:43 PM




"pavlos.parissis (AT) gmail (DOT) com" <pavlos.parissis (AT) gmail (DOT) com> wrote:
Quote:

Hello all,

I am pretty new on Berkeley DB but I read the manuals for the
db_recover tool and I am having a problem using it.

When I run db_verify I get
db_verify caTotalRequestedUrls\:1
db_verify: mmap: Resource temporarily unavailable
db_verify: Page 8: non-invalid page 9 on free list
db_verify: DB->verify: caTotalRequestedUrls:1: DB_VERIFY_BAD: Database
verification failed

When I run db_recover I always get

db_recover
db_recover: mmap: Resource temporarily unavailable

in the directory which I run db_recover I have few DB files which only
one has the problem and I
do not have any log file. The log.0000000001 is created after I run the
db_recover.

My question is, does the message indicate that I am missing log files?
Do I need to have the log file(s) in order to run the db_recover tool?
Reading the manual of db_recover and the C api (DB_ENV->open) it is
mandatory to create log files if you want to
recover the db. So, I do need to have the log files ,am I right?

Checking the code(Perl using BerkeleyDB module) of the application,
which creates the DB, I do not see any DB_LOG_DIR statements.

I believe the code must be changed in order to create log files.

what do you think?

Cheers,
Pavlos

If I do not have the log files


Are you running your test on HP/UX? HP/UX has a problem with mmap-ping
the same region into memory more than once.


--




Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.