[Fedora-directory-devel] DB Corruption
by Nate Huddleson
How do you run the database recovery? And is there any way to determine
what caused the problem?
thanks!
[07/Aug/2007:11:12:52 -0500] - Fedora-Directory/1.0.3 B2006.320.1956starting up
[07/Aug/2007:11:12:52 -0500] - libdb: PANIC: fatal region error detected;
run recovery
[07/Aug/2007:11:12:52 -0500] - Opening database environment
(/opt/fedora-ds/slapd-grid-identity/db) failed. err=-30978: DB_RUNRECOVERY:
Fatal error, run database recovery
[07/Aug/2007:11:12:52 -0500] - start: Failed to init database, err=-30978
DB_RUNRECOVERY: Fatal error, run database recovery
[07/Aug/2007:11:12:52 -0500] - Failed to start database plugin ldbm database
16 years, 7 months
[Fedora-directory-devel] Please review: [Bug 251090] ds_remove cannot remove/rename directories
by Noriko Hosoi
Summary: ds_remove cannot remove/rename directories
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=251090
Description of problem:
ds_remove is supposed to remove all the specified slapd-ID directories except
etc/brand-ds/slapd-ID. The config dir name is renamed to slapd-ID.removed and
keep the cert/key DBs.
But if installing the server as root and set (nobody, nobody) to the server's
unix uid and gid, the instance dir and the config dir are left as is.
Attaching the email discussion with Rich.
------- Additional Comments From nhosoi(a)redhat.com 2007-08-06 21:21 EST -------
Created an attachment (id=160789)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160789&action=view)
email discussion with Rich
------- Additional Comments From nhosoi(a)redhat.com 2007-08-07 14:15 EST -------
Created an attachment (id=160834)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160834&action=view)
cvs diff DSCreate.pm.in
Files: ldapserver/ldap/admin/src/scripts/DSCreate.pm.in
Changes: when creating inst_dir and config_dir, make sure the parent dirs
(lib/<brand>-ds and etc/<brand>-ds) have the specified gid.
------- Additional Comments From nhosoi(a)redhat.com 2007-08-07 14:20 EST -------
Created an attachment (id=160835)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160835&action=view)
cvs diff (adminserver)
Files:
adminserver/admserv/cgi-src40/ds_remove.in
newinst/src/AdminUtil.pm.in
newinst/src/register-ds-admin.pl.in
Description:
ds_remove.in: fixing a syntax error
AdminUtil.pm.in: return an error when connection fails
register-ds-admin.pl: fixing the error checking
------- Additional Comments From nhosoi(a)redhat.com 2007-08-07 14:22 EST -------
How bo verify the bug:
A. creating server instances
# become root and run the setup scripts as follows
# choose nobody, nobody for the UNIX user and group
1. sbin/setup-ds-admin.pl # create a config server
2. sbin/setup-ds-admin.pl # create a sub server sub1
3. startconsole # create a sub server sub2
4. sbin/setup-ds.pl; sbin/register-ds-admin.pl # create a sub server sub3
B. removing server instances
Console: remove a sub server (sub3)
Expected result:
# du -a | egrep sub3
20 ./etc/fedora-ds/slapd-sub3.removed/key3.db
20 ./etc/fedora-ds/slapd-sub3.removed/secmod.db
72 ./etc/fedora-ds/slapd-sub3.removed/cert8.db
120 ./etc/fedora-ds/slapd-sub3.removed
Command line:
sbin/ds_removal -s sub2 -w <admin_password>
Expected result:
# du -a | egrep sub2
20 ./etc/fedora-ds/slapd-sub2.removed/key3.db
20 ./etc/fedora-ds/slapd-sub2.removed/secmod.db
72 ./etc/fedora-ds/slapd-sub2.removed/cert8.db
120 ./etc/fedora-ds/slapd-sub2.removed
16 years, 7 months
[Fedora-directory-devel] Please review: [Bug 214276] "rpm -e fedora-ds" uninstall doesn't remove server from configuration directory
by Noriko Hosoi
Summary: "rpm -e fedora-ds" uninstall doesn't remove server from configuration directory
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=214276
Actually, this is a review request for the administration tool ds_unregister, which removes the server info from the Configuration Directory Server.
Regarding the original bug, I think what we can do is making sure the servers are shutdown in "rpm -e"... Can we have your comments on that, too?
Thanks,
--noriko
------- Additional Comments From nhosoi(a)redhat.com 2007-08-03 17:09 EST -------
Per discussion on the Fedora-directory-users mailing list, we decided "rpm -e"
removes files and directories which are installed by "rpm -i | -U". Generated
files won't be removed. I.e., after running "rpm -e", binaries including
ns-slapd shoud have been removed, while the server information in the
Configuration DS db are.
It sounds the original problem is "rpm -e" does not shutdown the servers? Once
they are shutdown, since ns-slapd is removed, there is no way to bring it up and
see the instances?
That's said, ds_unregsiter may not be needed in this scenario, but it'd be a
useful tool for the administrators.
------- Additional Comments From nhosoi(a)redhat.com 2007-08-03 16:55 EST -------
Created an attachment (id=160660)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160660&action=view)
New file: admserv/cgi-src40/ds_unregister.in
Unregister CGI script, that removes the server info from the Configuration DS.
The server is specified by InstanceName=slapd-ID in QUERY_STRING.
------- Additional Comments From nhosoi(a)redhat.com 2007-08-03 16:57 EST -------
Created an attachment (id=160661)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160661&action=view)
New file: admserv/cfgstuff/ds_unregister.in
Shell script which calls the CGI script ds_unregister.
Usage: sbin/ds_unregister -s server_id -w admin_password
server_id: Directory server identifier; slapd-<server_id>
admin_password: Administration user password
------- Additional Comments From nhosoi(a)redhat.com 2007-08-03 17:00 EST -------
Created an attachment (id=160662)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160662&action=view)
cvs diff Makefile.am
File: Makefile.am
Change: adding admserv/cgi-src40/ds_unregister and
admserv/cfgstuff/ds_unregister to the makefile.
16 years, 8 months