]> xenbits.xensource.com Git - xcp/xen-api.git/commit
CP-1981: Hook in the reset-vdis script to HA
authorJon Ludlam <jonathan.ludlam@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
committerJon Ludlam <jonathan.ludlam@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
commitecad87542101d137e23ffe44158b2f52a471e1a0
tree1db1753ce18abff3207c3f27c5b0dbbdaee7d14d
parent934cfa278750ecaa03612e91d3d231e9264c583d
CP-1981: Hook in the reset-vdis script to HA

The 'locks' for the VDIs, which are maintained by the SM backends now, are stored in xapi's database. In the event of a master failover, the pool database may rev
ert to a previous backup, which is then resynced with reality. Unfortunately there's no logic to resync the SM backends' data, nor any hook point to do this. Idea
lly, the SM backends would store their critical data internally somehow, but until this happens xapi will have to contain the important logic to resynchronise the
se locks.

This patch adds a host-post-declare-dead script that causes the reset of the locks of VDIs that were present on a host that has been declared dead.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
scripts/10resetvdis [new file with mode: 0644]
scripts/OMakefile
xapi.spec