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

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


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: David Markey <admin@xxxxxxxxxxx>
  • Date: Fri, 3 Sep 2010 16:54:56 +0100
  • Delivery-date: Fri, 03 Sep 2010 08:56:10 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.