You are not logged in.

#1 2009-01-22 14:43:45

djg1971
Member
Registered: 2008-09-11
Posts: 185

db_upgrade

Noticed the following output from pacman -Su this morning:

(1/4) upgrading db                                  [#####################] 100%
ATTENTION DB PACKAGE:
Please consider to run db_upgrade on Berkeley DB databases with a major db version number update.

I've never dealt with this before and there's no man page for db_upgrade.  It seems to require several arguments though.

Does anyone know how to do this properly on an arch system, or how to tell if I should even do it?

Please explain the command and arguments you would recommend in case others have more to add.

Offline

#2 2009-01-22 15:11:00

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: db_upgrade

maybe this helps: http://www.manpagez.com/man/1/db_upgrade/

also, google helps a lot wink

Offline

#3 2009-01-22 15:20:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: db_upgrade

Note that you update probably was not a major db upgrade (e.g 4.6.x to 4.7.x) so then you can ignore that message.

Also, I do not think I have ever done anything with that message...  But don't take that as good advise.  big_smile

Offline

#4 2009-01-22 15:30:54

djg1971
Member
Registered: 2008-09-11
Posts: 185

Re: db_upgrade

Thanks for the replies so far.  In the interim I did manage to find some information (including the man page) via google.

As is often the case though, the information I found is only useful if you already know, or sort of know, what you are doing.

I also found an earlier posting in the arch forums from 2006.  Following the recommended diagnostic steps, I see that I have about 20 Berkeley db files which might be candidates for an upgrade (whatever that means).  Specifically, I have "Btree version 9" database files, "Hash version 2" database files, and "Hash version 9" database files.

All of this makes little sense, so for the moment I think ignoring the message altogther is the safest option.

If anyone knows more, please do post your suggestions...

Offline

#5 2009-01-22 20:18:35

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: db_upgrade

I'm also not sure what to do. Can someone help? Just got this message today as well after running some updates. Thanks! smile

Offline

#6 2009-01-26 04:11:20

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: db_upgrade

djg1971 wrote:

I also found an earlier posting in the arch forums from 2006.  Following the recommended diagnostic steps,

you, sir, madam, or esteemed object, apparently have stronger search-fu than i.  would you be so kind as to post the link to the old forum thread for all the world's enlightenment?

many thanks in advance of the event.


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#7 2009-01-26 11:14:25

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: db_upgrade

It was not so hard, my first try was to look for "Please consider to run db_upgrade" and it worked :
http://bbs.archlinux.org/viewtopic.php?id=23217

The proposed method to look for berkeley db is unnecessary complicated, it can all be done in one step :
slocate \*.db | xargs file | grep -i berkeley
or
find -name \*.db | xargs file | grep -i berkeley


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2009-01-26 18:57:00

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: db_upgrade

ah.  thank you very much.  i can't believe i didn't figure that out myself.  in fact, i did, but without realizing that .db files are berkeley databases; some page i googled referred to .bdb files, of which i have none, so i got confused.

thanks much!


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

Board footer

Powered by FluxBB