OpenVZ Forum


Home » International » Russian » vzmigrate --online не работает.  () 1 Vote
vzmigrate --online не работает. [message #32806] Sun, 31 August 2008 10:55 Go to previous message
HCode is currently offline  HCode
Messages: 6
Registered: August 2008
Location: Russia
Junior Member

Здравствуйте!

2 машинки, debian etch, 2 одинаково собранных ядра,
со второй на первую он-лайн миграция работает, с первой на вторую нет.

[root@HN-1]# cat /proc/version
Linux version 2.6.18-openvz-bld.by.hc (2.02) (root@HN-1) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21))

[root@HN-2]# cat /proc/version
Linux version 2.6.18-openvz-bld.by.hc (2.02) (root@HN-2) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

[root@HN-1]# vzctl --version
vzctl version 3.0.22-1dso1

[root@HN-2]# vzctl --version
vzctl version 3.0.22-1dso1

----Миграция с DISK_QUOTA=yes:----

[root@HN-1:~]# vzmigrate --online -v 192.168.1.51 103
OPT:--online
OPT:-v
OPT:192.168.1.51
Starting online migration of VE 103 on 192.168.1.51
OpenVZ is running...
Loading /etc/vz/vz.conf and /etc/vz/conf/103.conf files
Check IPs on destination node: 192.168.1.103
Preparing remote node
Copying config file
103.conf 100% 1746 1.7KB/s 00:00
Saved parameters for VE 103
Creating remote VE root dir
Creating remote VE private dir
Initializing remote quota
Quota init
Turning remote quota on
Syncing private
Live migrating VE
Suspending VE
Setting up checkpoint...
suspend...
get context...
Checkpointing completed succesfully
Dumping VE
Setting up checkpoint...
join context..
dump...
Checkpointing completed succesfully
Copying dumpfile
dump.103 100% 756KB 756.1KB/s 00:00
Syncing private (2nd pass)
Syncing 2nd level quota
Dumping 2nd level quota
Copying 2nd level quota
quotadump.103 100% 21 0.0KB/s 00:00
Load 2nd level quota
Undumping VE
Restoring VE ...
Starting VE ...
VE is mounted
undump...
vzquota : (warning) Quota is running for id 103 already
Error: undump failed: Invalid argument
Restoring failed:
VE start failed
VE is unmounted
Error: Failed to undump VE
Resuming...
vzquota : (error) Quota is not running for id 103


[root@HN-1]# cat /var/log/vzctl.log
2008-08-31T14:42:42+0400 vzctl : VE 103 : Setting up checkpoint...
2008-08-31T14:42:42+0400 vzctl : VE 103 : suspend...
2008-08-31T10:42:42+0000 vzctl : VE 103 : get context...
2008-08-31T14:42:42+0400 vzctl : VE 103 : Checkpointing completed succesfully
2008-08-31T14:42:42+0400 vzctl : VE 103 : Setting up checkpoint...
2008-08-31T14:42:42+0400 vzctl : VE 103 : join context..
2008-08-31T14:42:42+0400 vzctl : VE 103 : dump...
2008-08-31T14:42:43+0400 vzctl : VE 103 : Running: /usr/lib/vzctl/scripts/vps-net_del
2008-08-31T14:42:43+0400 vzctl : VE 103 : Checkpointing completed succesfully
2008-08-31T14:42:46+0400 vzctl : VE 103 : Resuming...
2008-08-31T14:42:46+0400 vzctl : VE 103 : Running: /usr/lib/vzctl/scripts/vps-net_add
2008-08-31T14:42:47+0400 vzctl : VE 103 : put context



[root@HN-2]# cat /var/log/vzctl.log
2008-08-31T14:36:05+0400 vzctl : VE 103 : Saved parameters for VE 103
2008-08-31T14:36:06+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota init 103 -b 1048576 -B 1153024 -i 200000 -I 220000 -p /var/lib/vz/private/103 -e 0 -n 0 -s 0
2008-08-31T14:36:06+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota show 103
2008-08-31T14:36:06+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota on 103 -r 0 -b 1048576 -B 1153024 -i 200000 -I 220000 -e 0 -n 0 -s 0
2008-08-31T14:36:29+0400 vzctl : VE 103 : Restoring VE ...
2008-08-31T14:36:29+0400 vzctl : VE 103 : Starting VE ...
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota show 103
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota on 103 -r 0 -b 1048676 -B 1153124 -i 200100 -I 220100 -e 0 -n 0 -s 0
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: vzquota setlimit 103 -p /var/lib/vz/private/103 -b 1048676 -B 1153124 -i 200100 -I 220100 -e 0 -n 0
2008-08-31T14:36:29+0400 vzctl : VE 103 : Mounting root: /var/lib/vz/root/103 /var/lib/vz/private/103
2008-08-31T14:36:29+0400 vzctl : VE 103 : VE is mounted
2008-08-31T14:36:29+0400 vzctl : VE 103 : VE start failed
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota stat 103 -f
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: vzquota setlimit 103 -b 1048576 -B 1153024 -i 200000 -I 220000 -e 0 -n 0
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota stat 103 -f
2008-08-31T14:36:29+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota off 103
2008-08-31T14:36:29+0400 vzctl : VE 103 : VE is unmounted

dmesg ничего не пишет.


----Миграция с DISK_QUOTA=no:----

[root@HN-1:~]# vzmigrate --online -v 192.168.1.51 103
OPT:--online
OPT:-v
OPT:192.168.1.51
Starting online migration of VE 103 on 192.168.1.51
OpenVZ is running...
Loading /etc/vz/vz.conf and /etc/vz/conf/103.conf files
Check IPs on destination node: 192.168.1.103
Preparing remote node
Copying config file
103.conf 100% 1746 1.7KB/s 00:00
Saved parameters for VE 103
Creating remote VE root dir
Creating remote VE private dir
VZ disk quota disabled -- skipping quota migration
Syncing private
Live migrating VE
Suspending VE
Setting up checkpoint...
suspend...
get context...
Checkpointing completed succesfully
Dumping VE
Setting up checkpoint...
join context..
dump...
Checkpointing completed succesfully
Copying dumpfile
dump.103 100% 752KB 752.1KB/s 00:00
Syncing private (2nd pass)
VZ disk quota disabled -- skipping quota migration
Undumping VE
Restoring VE ...
Starting VE ...
VE is mounted
undump...
VE is unmounted
VE start failed
Error: undump failed: Invalid argument
Restoring failed:
Error: Failed to undump VE
Resuming...

[root@HN-1]# cat /var/log/vzctl.log
2008-08-31T14:49:43+0400 vzctl : VE 103 : Setting up checkpoint...
2008-08-31T14:49:43+0400 vzctl : VE 103 : suspend...
2008-08-31T10:49:43+0000 vzctl : VE 103 : get context...
2008-08-31T14:49:43+0400 vzctl : VE 103 : Checkpointing completed succesfully
2008-08-31T14:49:43+0400 vzctl : VE 103 : Setting up checkpoint...
2008-08-31T14:49:43+0400 vzctl : VE 103 : join context..
2008-08-31T14:49:43+0400 vzctl : VE 103 : dump...
2008-08-31T14:49:43+0400 vzctl : VE 103 : Running: /usr/lib/vzctl/scripts/vps-net_del
2008-08-31T14:49:43+0400 vzctl : VE 103 : Checkpointing completed succesfully
2008-08-31T14:49:46+0400 vzctl : VE 103 : Resuming...
2008-08-31T14:49:46+0400 vzctl : VE 103 : Running: /usr/lib/vzctl/scripts/vps-net_add
2008-08-31T14:49:47+0400 vzctl : VE 103 : put context


[root@HN-2]# cat /var/log/vzctl.log
2008-08-31T14:50:12+0400 vzctl : VE 103 : Saved parameters for VE 103
2008-08-31T14:50:36+0400 vzctl : VE 103 : Restoring VE ...
2008-08-31T14:50:36+0400 vzctl : VE 103 : Starting VE ...
2008-08-31T14:50:36+0400 vzctl : VE 103 : Mounting root: /var/lib/vz/root/103 /var/lib/vz/private/103
2008-08-31T14:50:36+0400 vzctl : VE 103 : VE is mounted
2008-08-31T14:50:36+0400 vzctl : VE 103 : VE start failed
2008-08-31T14:50:36+0400 vzctl : VE 103 : Running: /usr/sbin/vzquota stat 103 -f
2008-08-31T14:50:36+0400 vzctl : VE 103 : VE is unmounted

Миграция же с HN-2 на HN-1 происходит абсолютно нормально. Все, кроме онлайн-миграции работают тоже нормально.

На всякий случай, приаттачил конфиг ядра, хотя, повторюсь, оба ядра собраны одинаково.




[Updated on: Sun, 31 August 2008 11:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: не работает NFS в VE
Next Topic: disk quota inside ve
Goto Forum:
  


Current Time: Tue Apr 16 19:21:03 GMT 2024

Total time taken to generate the page: 0.01366 seconds