On 1/29/07, Lars Marowsky-Bree <[EMAIL PROTECTED]> wrote:
On 2007-01-29T10:10:44, Andrew Beekhof <[EMAIL PROTECTED]> wrote:

> >Attached is an update version. It supports on and off commands now.
> >User still have to configure hostlist in a form "node:xen0_host
> >node:xen0_host ...".
> thats going to be a pain when the VMs are also resources (and therefor
> moving around).
>
> or aren't we dealing with this case here?  i loose track sometimes :-)

That's not being dealt with, AFAIK. In that case, the command wouldn't
be a xm shutdown/start, but a "crm_resource ..." invocation; potentially
one trying to stop a specific clone. I'm not sure _you_ want to deal
with that yet. ;-)

just checking :-)


However, I think it could be simplified.

First, in many cases, all the virtual guests are going to be on a single
physical node. (ie, test "clusters".) Then only supplying one node to
ssh to should be sufficient.

Second, by providing a simple list of all physical nodes, the system
should be able to automatically figure out which node it needs to ssh to
to shot the guest. It could try to autopopulate the hostlist from
/etc/xen/vm/* or some other directory, as well.

Then having to actually configure something should be quite rare.

(Note that dealing with dead physical nodes is slightly tricky.)

> as an aside (for lars/alan), would it be worthwhile having these
> plugins use the OCF RA standard instead?

They already mostly are.

i see a bunch of getinfo-* commands both in this and the ssh version
its based on:

getinfo-devid)
        echo "ssh STONITH device"
        exit 0
        ;;
getinfo-devname)
        echo "ssh STONITH external device"
        exit 0
        ;;
getinfo-devdescr)
        echo "ssh-based Linux host reset"
        echo "Fine for testing, but not suitable for production!"
        exit 0
        ;;
getinfo-devurl)
        echo "http://openssh.org";
        exit 0
        ;;
getinfo-xml)
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to