OpenVZ Forum


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

From: 89.113.76*
Здравствуйте!

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

Re: vzmigrate --online не работает. [message #32819 is a reply to message #32806] Mon, 01 September 2008 11:26 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

From: 81.5.109*
Модули соответствующие (vzcpt, vzrst) на обеих машинах подгружены?

По поводу квоты — вероятно, там не выключена квота, надо её выключить (vzquota off), предварительно убедившись, что никто там не стоит.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzmigrate --online не работает. [message #32820 is a reply to message #32819] Mon, 01 September 2008 11:31 Go to previous messageGo to next message
HCode is currently offline  HCode
Messages: 6
Registered: August 2008
Location: Russia
Junior Member

From: 84.204.79*
Да, модули проверял, загружены и на первой и на второй.

[root@HN-1]# lsmod | grep vz
vzethdev 10152 0
vznetdev 16384 1
vzrst 118964 0
ip_nat 17712 2 iptable_nat,vzrst
vzcpt 95620 0
ip_conntrack 56224 5 xt_state,iptable_nat,vzrst,ip_nat,vzcpt
vzdquota 36724 0 [permanent]
vzmon 40328 4 vzethdev,vznetdev,vzrst,vzcpt
vzdev 3588 4 vzethdev,vznetdev,vzdquota,vzmon
ipv6 235712 25 vzrst,vzcpt,vzmon


[root@HN-2]# lsmod | grep vz
vzethdev 11816 0
vznetdev 17508 6
vzrst 129332 0
vzcpt 104196 0
vzmon 42024 7 vzethdev,vznetdev,vzrst,vzcpt
vzdquota 38196 3 [permanent]
vzdev 3588 4 vzethdev,vznetdev,vzmon,vzdquota
ip_nat 17840 2 vzrst,iptable_nat
ip_conntrack 56224 5 vzrst,vzcpt,xt_state,iptable_nat,ip_nat
ipv6 235392 43 vzrst,vzcpt,vzmon

[Updated on: Mon, 01 September 2008 11:32]

Report message to a moderator

Re: vzmigrate --online не работает. [message #32822 is a reply to message #32820] Mon, 01 September 2008 11:43 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

From: 81.5.109*
А vzctl одинаковый?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzmigrate --online не работает. [message #32823 is a reply to message #32806] Mon, 01 September 2008 11:45 Go to previous messageGo to next message
HCode is currently offline  HCode
Messages: 6
Registered: August 2008
Location: Russia
Junior Member

From: 84.204.79*
Да.

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

[root@HN-2]# vzctl --version
vzctl version 3.0.22-1dso1
Re: vzmigrate --online не работает. [message #32841 is a reply to message #32820] Tue, 02 September 2008 10:46 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
From: *sw.ru
Здравствуйте,

Quote:


По поводу квоты — вероятно, там не выключена квота, надо её выключить (vzquota off), предварительно убедившись, что никто там не стоит.


А это проверили?

Еще можно попробовать loglevel повысить, скажем, до 10 (/etc/vz/vz.conf).
Re: vzmigrate --online не работает. [message #32842 is a reply to message #32841] Tue, 02 September 2008 11:02 Go to previous messageGo to next message
HCode is currently offline  HCode
Messages: 6
Registered: August 2008
Location: Russia
Junior Member

From: 84.204.79*
Log_Level=10 уже стоит

[Updated on: Tue, 02 September 2008 11:02]

Report message to a moderator

Re: vzmigrate --online не работает. [message #32844 is a reply to message #32841] Tue, 02 September 2008 15:51 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
From: *sw.ru
Все-таки, проверили ли вы причину сообщения?
Quote:


vzquota : (warning) Quota is running for id 103 already



исправив ее, по-прежнему миграция не работает?
Re: vzmigrate --online не работает. [message #32850 is a reply to message #32844] Tue, 02 September 2008 18:52 Go to previous messageGo to next message
HCode is currently offline  HCode
Messages: 6
Registered: August 2008
Location: Russia
Junior Member

From: 89.113.76*
Квота:

Если в /etc/vz/vz.conf DISK_QUOTA=no, то:

Setting up checkpoint...
join context..
dump...
Checkpointing completed succesfully
Copying dumpfile
dump.103 100% 760KB 760.1KB/s 00:00
Syncing private (2nd pass)
VZ disk quota disabled -- skipping quota migration
Undumping VE
Restoring VE ...
Starting VE ...
Initializing quota ...
VE is mounted
undump...
VE start failed
Error: undump failed: Invalid argument
Restoring failed:
VE is unmounted
Error: Failed to undump VE
Resuming...

По-прежнему ничего...

Если в /etc/vz/vz.conf DISK_QUOTA=yes :

При попытке выполнить "vzquota off 103" получаю:

[root@HN-1]# vzquota off 103
vzquota : (error) Quota on syscall for 103: Device or resource busy


При
[root@HN-1]# vzmigrate --online -v 192.168.1.51 103
...
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

Re: vzmigrate --online не работает. [message #32867 is a reply to message #32850] Fri, 05 September 2008 13:06 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
From: *snto-msu.net
Здравствуйте,

Quote:


vzquota : (warning) Quota is running for id 103 already



значит, какой-нибудь файл из private area используется в данный момент. Какой именно? Попробуйте, например, использовать lsof для определения.
Previous Topic: не работает NFS в VE
Next Topic: disk quota inside ve
Goto Forum:
  


Current Time: Sat Aug 17 12:36:47 GMT 2019