sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sks-devel] Cleaning up KDB directory?


From: Jeffrey Johnson
Subject: Re: [Sks-devel] Cleaning up KDB directory?
Date: Thu, 19 Feb 2015 14:12:04 -0500


On Feb 19, 2015, at 1:48 PM, Matt Wagner wrote:

Signed PGP part
Hi all,

I just noticed on one of my servers that the KDB directory has grown
to 26GB in size, including almost 1,200 10MB log.000000NNNN files. My
other server has "only" 600 of the log files.

I'm curious if there's a recommended practice for housekeeping here.
Disk space isn't yet a problem, but I'd rather not wait until it
becomes one.

(Incidentally: I was looking at this while wondering if it's practical
to bring up a keyserver using a snapshot of the DB, versus the .gpg
exports. I was tinkering with setting up skskeyserver on a Raspberry
Pi with an SD card, and each batch of 15,000 keys takes 15 to 60
minutes to import. I probably should have done fastbuild... Has anyone
ever tried stopping the DB and copying the files over, versus
exporting and then importing dumps?)

-- Matt



There are two approaches:

1) (automated) Add this line to DB_CONFIG (which you are using, correct?)
set_flags DB_LOG_AUTOREMOVE

2) (manual) Run these commands on idle databases (with KDB/PTree as cwd)
dbXY_recover -ev
dbXY_checkpoint -1
dbXY_archive -dv
(XY == version of Berkeley DB in use, e.g. XY=53 for db-5.3.x)

hth

73 de Jeff
_______________________________________________
Sks-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/sks-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]