Re: vzmigrate error upon failback - /dev/stdout: No such device or address [message #8222 is a reply to message #8218] |
Fri, 10 November 2006 16:24   |
|
I tested two VMs, one was created on OTHOSIE and cannot migrate to HARPALYKE (VM:121) and the other came from HARPALYKE to OTHOSIE correctly but cannot return (VM:103).
Migrating 121 (A new VM created on OTHOSIE):
[root@othosie ~]# bash -x vzmigrate -r no -v harpalyke 121
+ ACT_SCRIPTS_SFX='start stop mount umount'
+ SSH_OPTIONS=
+ SSH='ssh '
+ SCP='scp '
+ online=0
+ verbose=0
+ remove_area=1
+ keep_dst=0
+ debug=0
+ out=/dev/null
+ confdir=/etc/vz/conf
+ vzconf=/etc/vz/vz.conf
+ tmpdir=/var/tmp
+ act_scripts=
+ MIG_ERR_USAGE=1
+ MIG_ERR_VPS_IS_STOPPED=2
+ MIG_ERR_CANT_CONNECT=4
+ MIG_ERR_COPY=6
+ MIG_ERR_START_VPS=7
+ MIG_ERR_STOP_SOURCE=8
+ MIG_ERR_EXISTS=9
+ MIG_ERR_NOEXIST=10
+ MIG_ERR_IP_IN_USE=12
+ MIG_ERR_QUOTA=13
+ MIG_ERR_CHECKPOINT=8
+ MIG_ERR_MOUNT_VPS=7
+ MIG_ERR_RESTORE_VPS=7
+ MIG_ERR_OVZ_NOT_RUNNING=14
+ MIG_ERR_APPLY_CONFIG=15
+ '[' 5 -lt 2 ']'
+ '[' '!' -z -r ']'
+ echo OPT:-r
OPT:-r
+ case "$1" in
+ shift
+ '[' no = yes ']'
+ '[' no = no ']'
+ remove_area=0
+ shift
+ '[' '!' -z -v ']'
+ echo OPT:-v
OPT:-v
+ case "$1" in
+ verbose=1
+ out=/dev/stdout
+ shift
+ '[' '!' -z harpalyke ']'
+ echo OPT:harpalyke
OPT:harpalyke
+ case "$1" in
+ break
+ host=harpalyke
+ shift
+ VEID=121
+ shift
+ '[' -z harpalyke -o -z 121 -o 0 -ne 0 ']'
+ vpsconf=/etc/vz/conf/121.conf
+ '[' '!' -r /etc/vz/vz.conf -o '!' -r /etc/vz/conf/121.conf ']'
++ vzctl status 121
+ get_status VEID 121 exist unmounted down
+ exist=exist
+ mounted=unmounted
+ state=down
+ '[' exist = deleted ']'
+ '[' 0 -eq 1 ']'
+ log 1 'Starting migration of VE 121 on harpalyke'
+ '[' 1 -eq 1 ']'
+ shift
+ echo -e Starting migration of VE 121 on harpalyke
Starting migration of VE 121 on harpalyke
+ ssh '-o BatchMode=yes' root@harpalyke /bin/true
+ ssh '-o BatchMode=yes' root@harpalyke '/etc/init.d/vz status &> /dev/stdout'
bash: /dev/stdout: No such device or address
+ echo 'OpenVZ is not running on the target machine'
OpenVZ is not running on the target machine
+ echo 'Can'\''t continue migration'
Can't continue migration
+ exit 14
Migrating a VM that was migrated from HARPALYKE to OTHOSIE and trying to migrate it back:
[root@othosie ~]# bash -x vzmigrate -r no -v harpalyke 103
+ ACT_SCRIPTS_SFX='start stop mount umount'
+ SSH_OPTIONS=
+ SSH='ssh '
+ SCP='scp '
+ online=0
+ verbose=0
+ remove_area=1
+ keep_dst=0
+ debug=0
+ out=/dev/null
+ confdir=/etc/vz/conf
+ vzconf=/etc/vz/vz.conf
+ tmpdir=/var/tmp
+ act_scripts=
+ MIG_ERR_USAGE=1
+ MIG_ERR_VPS_IS_STOPPED=2
+ MIG_ERR_CANT_CONNECT=4
+ MIG_ERR_COPY=6
+ MIG_ERR_START_VPS=7
+ MIG_ERR_STOP_SOURCE=8
+ MIG_ERR_EXISTS=9
+ MIG_ERR_NOEXIST=10
+ MIG_ERR_IP_IN_USE=12
+ MIG_ERR_QUOTA=13
+ MIG_ERR_CHECKPOINT=8
+ MIG_ERR_MOUNT_VPS=7
+ MIG_ERR_RESTORE_VPS=7
+ MIG_ERR_OVZ_NOT_RUNNING=14
+ MIG_ERR_APPLY_CONFIG=15
+ '[' 5 -lt 2 ']'
+ '[' '!' -z -r ']'
+ echo OPT:-r
OPT:-r
+ case "$1" in
+ shift
+ '[' no = yes ']'
+ '[' no = no ']'
+ remove_area=0
+ shift
+ '[' '!' -z -v ']'
+ echo OPT:-v
OPT:-v
+ case "$1" in
+ verbose=1
+ out=/dev/stdout
+ shift
+ '[' '!' -z harpalyke ']'
+ echo OPT:harpalyke
OPT:harpalyke
+ case "$1" in
+ break
+ host=harpalyke
+ shift
+ VEID=103
+ shift
+ '[' -z harpalyke -o -z 103 -o 0 -ne 0 ']'
+ vpsconf=/etc/vz/conf/103.conf
+ '[' '!' -r /etc/vz/vz.conf -o '!' -r /etc/vz/conf/103.conf ']'
++ vzctl status 103
+ get_status VEID 103 exist mounted running
+ exist=exist
+ mounted=mounted
+ state=running
+ '[' exist = deleted ']'
+ '[' 0 -eq 1 ']'
+ log 1 'Starting migration of VE 103 on harpalyke'
+ '[' 1 -eq 1 ']'
+ shift
+ echo -e Starting migration of VE 103 on harpalyke
Starting migration of VE 103 on harpalyke
+ ssh '-o BatchMode=yes' root@harpalyke /bin/true
+ ssh '-o BatchMode=yes' root@harpalyke '/etc/init.d/vz status &> /dev/stdout'
bash: /dev/stdout: No such device or address
+ echo 'OpenVZ is not running on the target machine'
OpenVZ is not running on the target machine
+ echo 'Can'\''t continue migration'
Can't continue migration
+ exit 14
|
|
|