summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-August/003840.html
blob: a7be16090ed32958a7b2e05adfc7c51a59445bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] /etc/cron.daily/ldap-hot-db-backup
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20/etc/cron.daily/ldap-hot-db-backup&In-Reply-To=%3C201108111603.39975.bgmilne%40staff.telkomsa.net%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="003836.html">
   <LINK REL="Next"  HREF="003841.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] /etc/cron.daily/ldap-hot-db-backup</H1>
    <B>Buchan Milne</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20/etc/cron.daily/ldap-hot-db-backup&In-Reply-To=%3C201108111603.39975.bgmilne%40staff.telkomsa.net%3E"
       TITLE="[Mageia-sysadm] /etc/cron.daily/ldap-hot-db-backup">bgmilne at staff.telkomsa.net
       </A><BR>
    <I>Thu Aug 11 16:03:37 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="003836.html">[Mageia-sysadm] /etc/cron.daily/ldap-hot-db-backup
</A></li>
        <LI>Next message: <A HREF="003841.html">[Mageia-sysadm] when will markreleases be fixed?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3840">[ date ]</a>
              <a href="thread.html#3840">[ thread ]</a>
              <a href="subject.html#3840">[ subject ]</a>
              <a href="author.html#3840">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On Tuesday, 9 August 2011 16:35:33 Pascal Terjan wrote:
&gt;<i> db_stat has been running for 4 days now on valstar using 100% cpu
</I>&gt;<i> 
</I>&gt;<i>      |-crond---crond---run-parts---ldap-hot-db-bac---ldap-hot-db-bac-+-awk
</I>&gt;<i> 
</I>&gt;<i> `-ldap-hot-db-bac---db_stat
</I>&gt;<i> 
</I>&gt;<i> root      5288 99.9  0.0  10728  2244 ?        RN   Aug05 6508:41
</I>&gt;<i> /usr/bin/db_stat -d /var/lib/ldap/id2entry.bdb
</I>

Hmm, maybe I didn't push an update for 2010.1 that uses db_stat -f ...

<A HREF="http://svn.mandriva.com/cgi-">http://svn.mandriva.com/cgi-</A>
bin/viewvc.cgi/packages/cooker/openldap/current/SOURCES/ldap-
common?view=diff&amp;r1=638048&amp;r2=6163&amp;diff_format=h

For now I'm going to make this change manually on valstar.

I killed the offending process as well and the backup completed:

Aug 11 15:53:46 valstar ldap-hot-db-backup: Try 1 to run &quot;/usr/bin/db_stat 
/var/lib/ldap/id2entry.bdb&quot; failed
Aug 11 15:53:48 valstar ldap-hot-db-backup: Try 2 to run &quot;/usr/bin/db_stat 
/var/lib/ldap/id2entry.bdb&quot; succeeded
Aug 11 15:53:49 valstar ldap-hot-db-backup: No errors encountered in backup() 
for /var/lib/ldap
Aug 11 15:53:49 valstar ldap-hot-db-backup: No errors encountered in backup() 
for /var/lib/ldap/test
Aug 11 15:53:49 valstar ldap-hot-db-backup: Successfully ran backup to 
temporary directory
Aug 11 15:53:49 valstar ldap-hot-db-backup: Switched new backup to good backup 
successfully
Aug 11 15:53:49 valstar ldap-hot-db-backup: Backup run completed successfully


Log rotation didn't complete properly, we may need to clean up a log file 
tomorrow if it doesn't get handled tonight:
-rw------- 1 root root         0 2011-08-09 04:02 ldap.log
-rw------- 1 root root 485028794 2011-08-11 15:57 ldap.log.1


Regards,
Buchan
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="003836.html">[Mageia-sysadm] /etc/cron.daily/ldap-hot-db-backup
</A></li>
	<LI>Next message: <A HREF="003841.html">[Mageia-sysadm] when will markreleases be fixed?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3840">[ date ]</a>
              <a href="thread.html#3840">[ thread ]</a>
              <a href="subject.html#3840">[ subject ]</a>
              <a href="author.html#3840">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>