WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-35881: mkdir /var/log/blktap during boot.

To: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-35881: mkdir /var/log/blktap during boot.
From: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Date: Mon, 14 Dec 2009 12:05:11 -0800
Delivery-date: Mon, 14 Dec 2009 12:05:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hey Api.

This one seems urgent because of log overflows caused by logrotate
failing.

Thanks,
Daniel

--snip--
CA-35881: mkdir /var/log/blktap during boot.

Logrotate requires at least the search path to exist. If that fails,
Xapi tends to flood xensource.log with error messages over time.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 9b1f5588c72c -r 3424887e87d5 scripts/init.d-xenservices
--- a/scripts/init.d-xenservices        Mon Dec 14 11:29:31 2009 -0800
+++ b/scripts/init.d-xenservices        Mon Dec 14 11:33:38 2009 -0800
@@ -62,6 +62,7 @@
 
        /usr/sbin/xenconsoled
        /usr/sbin/blktapctrl
+       [ -d /var/log/blktap ] || mkdir /var/log/blktap
        
        # Delete rubbish from xapi's private tree in xenstore, once per boot 
(not once per
        # xapi invocation since the data should be persistent across xapi 
restarts)

Attachment: CA-35881-mkdir-var-log-blktap.diff
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>