🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Frank Kaefer Wed, 24 Jul 1991 10:28
Nnmaster database init
#1892
Author: Frank Kaefer
Date: Wed, 24 Jul 1991 10:28
28 lines
1607 bytes
Greetings!

I have a question about the database init with nn - maybe it is a FAQ.

I wanted to initialize a complete new database with "# nnmaster -I ; nnmaster".

To do this I deleted /usr/spool/nn and did a mkdir of /usr/spool/nn and
/usr/spool/nn/DATA (followed by chown).

Now nnmaster puts all his datafiles directly in /usr/spool/nn/DATA.

Before this, nnmaster had several directories to store the datafiles in:
% ls /usr/spool/nn/DATA
0       11      14      17      2       22      3       7
1       12      15      18      20      23      4       8
10      13      16      19      21      24      5       9

So my question is: why doesn't nnmaster use directories anymore ?

Was it the init script that created these directories ? How does nnmaster know
where to look for the database file ?

Cheers,
Frank
-- 
| Frank Kaefer | fkk@stasys.sta.sub.org | Starnberg, Germany |
| Compuserve: 72427,2101   | Internet: fkk@Germany.Sun.COM   |
| unido!sunde!fkaefer      |    postmaster@Germany.Sun.COM   |
Re: Nnmaster database init
#1895
Author: Brett McCoy
Date: Wed, 24 Jul 1991 22:17
34 lines
2008 bytes
In <2460@stasys.sta.sub.org> fkk@stasys.sta.sub.org (Frank Kaefer) writes:

>I wanted to initialize a complete new database with "# nnmaster -I ; nnmaster".

>To do this I deleted /usr/spool/nn and did a mkdir of /usr/spool/nn and
>/usr/spool/nn/DATA (followed by chown).

>Now nnmaster puts all his datafiles directly in /usr/spool/nn/DATA.

>Before this, nnmaster had several directories to store the datafiles in:
>% ls /usr/spool/nn/DATA
>0       11      14      17      2       22      3       7
>1       12      15      18      20      23      4       8
>10      13      16      19      21      24      5       9

>So my question is: why doesn't nnmaster use directories anymore ?

>Was it the init script that created these directories ? How does nnmaster know
>where to look for the database file ?

You need to do one more step after creating the /usr/spool/nn/DATA directory.
You need to create a /usr/spool/nn/DATA/1 directory, then run 'nnmaster -I'.
If that 1 directory is there then it assumes that it is supposed to use
multiple directories, otherwise it will use just one directory.





-- 
Brett McCoy			Computing and Telecommunications Activities
brtmac@maverick.ksu.ksu.edu	Kansas State University
"The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence." E.W.Dijkstra, 18th June 1975.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads