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

Re: [Xen-API] XCP disk full recovery init script. Ideas/suggestions.

To: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] XCP disk full recovery init script. Ideas/suggestions.
From: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Date: Fri, 3 Sep 2010 23:27:06 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 03 Sep 2010 15:27:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81A73678E76EA642801C8F2E4823AD219330C4280E@xxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <AANLkTikxDuNX=aHCVDfVnGvXtpyRPGf2RZdccfu4HvBM@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD219330C4280E@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActLtyJQtgssgQ7nRma+LLdSW6ux7A==
Thread-topic: [Xen-API] XCP disk full recovery init script. Ideas/suggestions.
Hi David, Dave,

I agree, sounds really good.

As far as creating the message goes, just hand-crafting the xml should work - but you'll probably have to symlink it to the various places that it gets symlinked (all within the /var/xapi/blobs/messages subdir). See http://xenbits.xen.org/xapi/xen-api.hg?file/tip/ocaml/xapi/xapi_message.ml for details of where the symlinks go.

I always wanted to use the messages as a placeholder to tell someone to do something - take a bugtool or pop up an alert. It certainly seems as though it could be a conduit for more information than it's currently being used for. I wonder if we could think a bit about this at some point?

Jon



On 3 Sep 2010, at 17:05, Dave Scott wrote:

Hi David,
 
This sounds really useful.
 
Re: generating an alert before xapi is up: I think sticking a message directly in the filesystem is probably ok. The only thing you’ll not get is an email message sent. Jon (cc:d) knows more about alerts than me – do you think that’ll work, Jon?
 
Cheers,
Dave
 
From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of David Markey
Sent: 03 September 2010 15:55
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] XCP disk full recovery init script. Ideas/suggestions.
 
Hi all,
 
As you all probably know. if the root filesystem is full on boot, XCP rarely boots properly(and most times you don't even reach a login prompt).
In most cases, admins dont know what to do in the situation.
 
To combat this, I've started to develop an early init script, which intelligently tries to free enough space to boot properly(I estimate around 50MB is safe), before any of the xen related tools and XAPI starts. I believe it will make the product more resilient.
 
 
I'm thinking up strategies on how to free up space. I've come up with the following
 
1) Clean out /tmp
2) gzip /var/log/{xensource.log.*,SMlog.log.*,messages.*}, using /dev/shm as temporary space.
3) Check the viability of moving files from the main partition, to the backup partition, move log files from one to the other.
4) Just deleting log files if all else fails or maybe drop to a login prompt?
 
 
Also, is there a way I can tell XAPI to alert the user that this has happened, taking into account that this will be before XAPI is started? Perhaps generating an alert and placing it in /var/xapi/blobs/messages?
 
Thanks,
 
David
 
 
 

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