[Linux-cluster] Re: clusvcadm -M <service> -m <service> fails with "Invalid operation for resource"

Henry Robertson henry.robertson at hjrconsulting.com
Mon Jun 22 03:57:34 UTC 2009


Today's Topics:
>
>   1. clusvcadm -M <service> -m <service> fails with "Invalid
>      operation for resource" (Thomas Sjolshagen)
>   2. Re: Will redhat release the srpms of cluster suite        for
>      rhel-4.8 to the public??? (Fabio M. Di Nitto)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 20 Jun 2009 16:06:11 -0400
> From: Thomas Sjolshagen <thomas at sjolshagen.net>
> Subject: [Linux-cluster] clusvcadm -M <service> -m <service> fails
>        with "Invalid operation for resource"
> To: linux-cluster at redhat.com
> Message-ID: <20090620160611.20273n7qqnh4jd4j at www.sjolshagen.net>
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
>        format="flowed"
>
> Hi,
>
> I'm trying to do a migration to another member of the cluster but it
> fails with:
>
> # clusvcadm -M samba -m host2
> Trying to migrate service:samba to
> virt0-backup.sjolshagen.net...Invalid operation for resource
>
> I'm running Fedora 11 with rgmanager-3.0.0-15.rc1.fc11.x86_64
> installed as well as a downloaded copy of the 5/21 version of vm.sh
> from the git.fedorahosted.org repository. I've configured the resource
> as follows:
>
> <rm>
> <resources>
>   <vm name="kvm06-hvm" domain="cluster" autostart="1"
> recovery="relocate" snapshot="/cluster/kvm-guests/snapshots"
> use_virsh="1" exclusive="1" hypervisor="qemu"
> migration_mapping="host1:host2,host2:host1"
> hypervisor_uri="qemu+ssh:///system" />
> </resources>
> <service autostart="1" domain="cluster" name="samba">
>   <vm ref="kvn06-hvm"/>
> </service>
> </rm>
>
> And the guest container files are hosted on a (previously mounted)
> gfs2 file system.
>
> Is this a rgmanager shortcoming (rgmanager needs to be coded to
> support virsh & live migration) or - more likely - user error?
>
> Thanks in advance
> // Thomas
>
> ----------------------------------------------------------------


Are you sure you don't mean to relocate the service to host2 instead
of Migrate? -R will stop/start a service like samba onto another node.
clusvcadm -r <service> -m <host>

I wasn't aware that migration worked for anything other than moving VM's around.

Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090621/550b7658/attachment.htm>


More information about the Linux-cluster mailing list