Article ID: 119039, created on Dec 5, 2013, last review on Dec 8, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtual Automation

Symptoms

Migration of Virtual Machine placed on a pstorage fails with following error:

[root@pcs6 ~]# pmigrate v 5bdb430f-a75e-4038-afcf-3d40700e56c7 v pcs8.cloud1.tld
Migrate the VM virtualmachine on pcs8.cloud1.tld ()
root@pcs8.cloud1.tld's password:

Failed to migrate the VM: Failed to perform the operation. An error occurred when managing the cluster resource. Contact your system administrator for assistance.

Meanwhile on a destination server in /var/log/parallels.log you may find following error:

11-12 11:39:28.506 F /disp:4208:617585/ /usr/sbin/shaman failed : retcode : 2, stdout: [] stderr: []
11-12 11:39:28.506 F /disp:4208:617585/ cluster resource 'virtualmachine' removing error

Cause

For some reason shaman has incorrect information about Virtual Machine location, e.g. because of incomplete roll-back after a failed previous migration attempt.

In this example, the affected VM is registered and running on a node with IP 172.16.2.15, but the tool shaman reports that VM is located on a node with IP 172.16.2.11:

[root@pcs6 ~]# shaman -c cloud1 stat | grep virtualmachine
        virtualmachine  on          Active      172.16.2.11       0
[root@pcs6 ~]#

On attempt to relocate the resource shaman fails, thus causing entire migration process to fail.

Resolution

To make migration succeed you should move VM-related resource to the proper location inside of shaman directory:

  1. Find out ID of the correct node which the affected VM should belong to:

    ~# cat /etc/pstorage/host_id
    

    In this example:

    [root@pcs6 .shaman]# cat /etc/pstorage/host_id
    373e22942a174d3b
    
  2. Find the corresponding resource file that represents your VM:

    ~# find /pstorage/<storagename>/ -iname "*VMNAME*"
    

    In this example:

    [root@pcs6 .shaman]# find . -iname virtualmachine
    ./md.1bc971a4413345bb/resources/vm-virtualmachine
    
  3. Move it to proper location:

    # mv <current_location_from_step2> /pstorage/<storagename>/.shaman/md.<proper_host_id_from_step1>/resources/
    

    In this example:

    [root@pcs6 .shaman]# mv ./md.1bc971a4413345bb/resources/vm-virtualmachine ./md.373e22942a174d3b/resources/
    

Search Words

cluster resource

/usr/sbin/shaman failed

removing error

Failed to migrate the VM: Failed to perform the operation. An error occurred when managing the cluster resource. Contact your system administrator for assistance.

Can't migrate Virtual Machine. Failed to perform the operation. An error occurred when managing the cluster resource.

unable to migrate VM

c62e8726973f80975db0531f1ed5c6a2 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef 319940068c5fa20655215d590b7be29b

Email subscription for changes to this article
Save as PDF