[Linux-cluster] Re: Linux-cluster Digest, Vol 62, Issue 21

Henry Robertson henry.robertson at hjrconsulting.com
Mon Jun 22 22:12:07 UTC 2009


On Mon, Jun 22, 2009 at 12:00 PM, <linux-cluster-request at redhat.com> wrote:

> Send Linux-cluster mailing list submissions to
>        linux-cluster at redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://www.redhat.com/mailman/listinfo/linux-cluster
> or, via email, send a message with subject or body 'help' to
>        linux-cluster-request at redhat.com
>
> You can reach the person managing the list at
>        linux-cluster-owner at redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Linux-cluster digest..."
>
>
> Today's Topics:
>
>   1. Re: clusvcadm -M <service> -m <service> fails with        "Invalid
>      operation for resource" (Henry Robertson)
>   2. Re: Re: clusvcadm -M <service> -m <service> fails with
>      "Invalid operation for resource" (Thomas Sjolshagen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 21 Jun 2009 23:57:34 -0400
> From: Henry Robertson <henry.robertson at hjrconsulting.com>
> Subject: [Linux-cluster] Re: clusvcadm -M <service> -m <service> fails
>        with    "Invalid operation for resource"
> To: linux-cluster at redhat.com
> Message-ID:
>        <c0b9f0730906212057y7cac2c81q252ce4adcfdcb09 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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:
> https://www.redhat.com/archives/linux-cluster/attachments/20090621/550b7658/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Jun 2009 09:43:43 -0400
> From: Thomas Sjolshagen <thomas at sjolshagen.net>
> Subject: Re: [Linux-cluster] Re: clusvcadm -M <service> -m <service>
>        fails   with "Invalid operation for resource"
> To: linux-cluster at redhat.com
> Message-ID: <20090622094343.10362qjp3x4g1jtb at www.sjolshagen.net>
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
>        format="flowed"
>
>
> Quoting Henry Robertson <henry.robertson at hjrconsulting.com>:
>
> > Today's Topics:
> >>
> >>   1. clusvcadm -M <service> -m <service> fails with "Invalid
> >>      operation for resource" (Thomas Sjolshagen)
>
> ..
>
> >
> >
> > 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
> >
>
> If you look at the resource definition, you'll see that I'm trying to
> migrate a VM (the KVM guest is called samba since it hosts a Samba
> instance).
>
> // Thomas
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>


Ah. Does manual migration through virsh work rather than clusvcadm?
If it does -- I'd put rgmanager into some extra logging by editing
/etc/init.d/rgmanager with RGMGR_OPTS="-dddd" under the RGMGRD part.
Then restart rgmanager and check logs for more info after trying clusvcadm
-M again. (add debug to host / target servers and see if you catch anything
new)

Good luck
Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090622/58fea150/attachment.htm>


More information about the Linux-cluster mailing list