Man page - ovdb_init(8)
Packages contains this manual
- inn-radius.conf(5)
- localgroups(5)
- innreport(8)
- getlist(1)
- convdate(1)
- ident(8)
- innwatch(8)
- expire(8)
- nntpsend(8)
- wildmat(3)
- motd.innd(5)
- innd(8)
- perl-nocem(8)
- tdx-util(8)
- batcher(8)
- ckpasswd(8)
- nnrpd(8)
- innfeed(8)
- innwatch.ctl(5)
- delayer(8)
- cnfsstat(8)
- shrinkfile(1)
- innreport.conf(5)
- send-ihave(8)
- prunehistory(8)
- ovdb_monitor(8)
- active(5)
- procbatch(8)
- actsync(8)
- incoming.conf(5)
- actsyncd(8)
- imapfeed(8)
- controlchan(8)
- innfeed.conf(5)
- grephistory(1)
- nnrpd.track(5)
- docheckgroups(8)
- send-nntp(8)
- ovsqlite-util(8)
- pgpverify(1)
- tinyleaf(8)
- auth_krb5(8)
- news.daily(8)
- innxmit(8)
- expireover(8)
- domain(8)
- motd.nnrpd(5)
- makedbz(8)
- innupgrade(8)
- readers.conf(5)
- gencancel(1)
- fastrm(1)
- ovdb_server(8)
- motd.news(5)
- scanlogs(8)
- shlock(8)
- ctlinnd(8)
- libinn_uwildmat(3)
- archive(8)
- innxbatch(8)
- rc.news(8)
- send-uucp(8)
- sendinpaths(8)
- news2mail(8)
- buffindexed.conf(5)
- inn-secrets.conf(5)
- newsgroups(5)
- inncheck(8)
- ovdb_stat(8)
- ovsqlite(5)
- history(5)
- cvtbatch(8)
- ovdb_init(8)
- inpaths(8)
- ovdb(5)
- tally.control(8)
- storage.conf(5)
- makehistory(8)
- buffchan(8)
- innmail(1)
- distributions(5)
- innstat(8)
- radius(8)
- mailpost(8)
- subscriptions(5)
- scanspool(8)
- nocem.ctl(5)
- nntpsend.ctl(5)
- inndf(8)
- sendxbatches(8)
- expirerm(8)
- nntpget(1)
- active.times(5)
- cnfsheadconf(8)
- writelog(8)
- control.ctl(5)
- ovsqlite-server(8)
- cycbuff.conf(5)
- expire.ctl(5)
- newsfeeds(5)
- overchan(8)
- innconfval(1)
- sm(8)
- mod-active(8)
- pullnews(1)
- newslog(5)
- ninpaths(8)
- innbind(8)
apt-get install inn2
Manual
OVDB_INIT
NAMESYNOPSIS
DESCRIPTION
OPTIONS
UPGRADING
HISTORY
SEE ALSO
NAME
ovdb_init - Prepare ovdb database for use
SYNOPSIS
ovdb_init [ -r | -u ]
DESCRIPTION
This command must be run before any other process can access the overview database. ovdb_init is normally invoked automatically by rc.news when starting the news system.
ovdb_init performs the following steps:
|
1. |
Creates the database environment, if necessary. |
||
|
2. |
If the database is idle (and if the -u option is not specified), it performs a normal recovery. The recovery will remove stale locks, recreate the memory pool cache, and repair any damage caused by a system crash or improper shutdown. |
||
|
3. |
If the -u option is specified, it performs any necessary upgrades to the database. See the "UPGRADING" section below. |
||
|
4. |
Starts the database housekeeping processes ( ovdb_monitor ) if they are not already running. (Unless the -r option is specified.) |
||
|
5. |
Starts the ovdb readserver processes ( ovdb_server ) if readserver in ovdb.conf is true, and if they are not already running. (Unless the -r option is specified.) |
Returns exit status of "0" if all steps were completed successfully. In the event of an error, messages are written to syslog and/or stderr.
If a recovery was attempted but failed, the database may be damaged beyond repair, requiring a rebuild with makehistory .
This command can be run multiple times.
OPTIONS
|
-r |
Perform recovery only. ovdb_monitor is not started. |
||
|
-u |
Perform any needed upgrades. Recovery is not attempted. ovdb_monitor is started if the upgrade succeeded. |
This option can be used even if no upgrades are needed.
UPGRADING
There are two situations in which the database will need to be upgraded:
|
⢠|
You upgrade the Berkeley DB library to a newer version, for example from 2.7.7 to 3.1.17. In this case, the Berkeley DB "db->upgrade()" method is used. |
||
|
⢠|
You upgrade ovdb to a newer major version; i.e., ovdb-1.0 (shipped with INNÂ 2.3.0 up to INNÂ 2.3.5) to ovdb-2.0 (since INNÂ 2.4.0). |
In both of these cases, the database is upgraded in-place; and the upgrade cannot be undone. Do not interrupt the upgrade process once it has started, because there is a risk of irreparable corruption. The upgrade may take several minutes to complete. If an upgrade does get interrupted, try running the upgrade again.
Hereâs an example procedure to upgrade a database created with Berkeley DB 2.7.7 to use Berkeley DB 3.1.17:
|
1. |
Build and install the Berkeley DB 3.1.17 version; |
||
|
2. |
Run configure in the INN source tree and make sure it picks up the right Berkeley DB directory (e.g., /usr/local/BerkeleyDB.3.1 ); |
||
|
3. |
Do a "make"; |
||
|
4. |
Shut down INN (e.g., with "rc.news stop") and be sure to kill all instances of nnrpd as well; |
||
|
5. |
Do a "make update" to install the new binaries; |
||
|
6. |
Run "ovdb_init -u" as the news user; |
||
|
7. |
Start INN with the "rc.news" command. |
HISTORY
Written by Heath Kehoe <hakehoe@avalon.net> for InterNetNews.
SEE ALSO
ovdb(5), makehistory(8), rc.news(8).