LINUX.ORG.RU
решено ФорумAdmin

proxmox 5.2 zfs, живая миграция ошибка.

 ,


0

1

Ситуация такая, все норм работает на ceph и на внешнем сторадже все мигрирует на живую т.е. не выключая вирт. машину, но вот если мы попробуем мигрировать вирт. машину (которая работает) из GUI и если у нее диск на zfs то получаю ошибку. Если вирт. машина off то все нормально мигрируется из GUI

2018-08-30 13:35:22 starting migration of VM 100 to node '02pve' (192.168.28.72)
2018-08-30 13:35:22 found local disk 'local-zfs:vm-100-disk-1' (in current VM config)
2018-08-30 13:35:22 can't migrate local disk 'local-zfs:vm-100-disk-1': can't live migrate attached local disks without with-local-disks option
2018-08-30 13:35:22 ERROR: Failed to sync data - can't migrate VM - check log
2018-08-30 13:35:22 aborting phase 1 - cleanup resources
2018-08-30 13:35:22 ERROR: migration aborted (duration 00:00:01): Failed to sync data - can't migrate VM - check log
TASK ERROR: migration aborted
Но если воспользоваться командой из консоли
root@01pve:/etc# qm migrate 100 02pve  --online --with-local-disks
2018-08-30 13:36:44 starting migration of VM 100 to node '02pve' (192.168.28.72)
2018-08-30 13:36:44 found local disk 'local-zfs:vm-100-disk-1' (in current VM config)
2018-08-30 13:36:44 copying disk images
2018-08-30 13:36:44 starting VM 100 on remote node '02pve'
2018-08-30 13:36:47 start remote tunnel
2018-08-30 13:36:48 ssh tunnel ver 1
2018-08-30 13:36:48 starting storage migration
2018-08-30 13:36:48 scsi0: start migration to nbd:192.168.28.72:60000:exportname=drive-scsi0
drive mirror is starting for drive-scsi0
drive-scsi0: transferred: 52428800 bytes remaining: 2095054848 bytes total: 2147483648 bytes progression: 2.44 % busy: 1 ready: 0
drive-scsi0: transferred: 257949696 bytes remaining: 1889533952 bytes total: 2147483648 bytes progression: 12.01 % busy: 1 ready: 0
drive-scsi0: transferred: 461373440 bytes remaining: 1686110208 bytes total: 2147483648 bytes progression: 21.48 % busy: 1 ready: 0
drive-scsi0: transferred: 685768704 bytes remaining: 1461714944 bytes total: 2147483648 bytes progression: 31.93 % busy: 1 ready: 0
drive-scsi0: transferred: 851443712 bytes remaining: 1296039936 bytes total: 2147483648 bytes progression: 39.65 % busy: 1 ready: 0
drive-scsi0: transferred: 1289748480 bytes remaining: 857735168 bytes total: 2147483648 bytes progression: 60.06 % busy: 1 ready: 0
drive-scsi0: transferred: 1457520640 bytes remaining: 689963008 bytes total: 2147483648 bytes progression: 67.87 % busy: 1 ready: 0
drive-scsi0: transferred: 1670381568 bytes remaining: 477102080 bytes total: 2147483648 bytes progression: 77.78 % busy: 1 ready: 0
drive-scsi0: transferred: 1960837120 bytes remaining: 186646528 bytes total: 2147483648 bytes progression: 91.31 % busy: 1 ready: 0
drive-scsi0: transferred: 2112880640 bytes remaining: 34603008 bytes total: 2147483648 bytes progression: 98.39 % busy: 1 ready: 0
drive-scsi0: transferred: 2147483648 bytes remaining: 0 bytes total: 2147483648 bytes progression: 100.00 % busy: 0 ready: 1
all mirroring jobs are ready
2018-08-30 13:37:02 starting online/live migration on unix:/run/qemu-server/100.migrate
2018-08-30 13:37:02 migrate_set_speed: 8589934592
2018-08-30 13:37:02 migrate_set_downtime: 0.1
2018-08-30 13:37:02 set migration_caps
2018-08-30 13:37:02 set cachesize: 67108864
2018-08-30 13:37:02 start migrate command to unix:/run/qemu-server/100.migrate
2018-08-30 13:37:03 migration speed: 34.13 MB/s - downtime 13 ms
2018-08-30 13:37:03 migration status: completed
drive-scsi0: transferred: 2147483648 bytes remaining: 0 bytes total: 2147483648 bytes progression: 100.00 % busy: 0 ready: 1
all mirroring jobs are ready
drive-scsi0: Completing block job...
drive-scsi0: Completed successfully.
drive-scsi0 : finished
2018-08-30 13:37:08 migration finished successfully (duration 00:00:24)
root@01pve:/etc#
Как мы видем все нормально и без ошибок. Поиски привели к следующему Патч проверил у себя все что в патче уже есть в тек. версии PVE Manager Version pve-manager/5.2-8/fdf39912. Также прочитал вот это но вопрос так и не решился.
Тестовый стенд чистый установленный proxmox 5.2 обновлен до тек состояния две ноды, одна вирт. машина
p.s. из консоли работает!!!

★★

Последнее исправление: pvvking (всего исправлений: 2)

две ноды, одна вирт. машина

Вроде на живую мигрировать в последнем proxmox можно только с тремя нодами.

anonymous
()
Ответ на: комментарий от anonymous

Добавление нод 3 и 4 результата не дало.

pvvking ★★
() автор топика

По ссылкам не ходил, но помню что живая миграция если есть больше чем 1 виртуальный диск пока не работает.

DALDON ★★★★★
()
Ответ на: комментарий от DALDON
root@02pve:~# qm migrate 100 03pve  --online --with-local-disks
2018-08-30 15:14:20 starting migration of VM 100 to node '03pve' (192.168.28.73)
2018-08-30 15:14:20 found local disk 'local-zfs:vm-100-disk-1' (in current VM config)
2018-08-30 15:14:20 found local disk 'local-zfs:vm-100-disk-2' (in current VM config)
2018-08-30 15:14:20 copying disk images
2018-08-30 15:14:20 starting VM 100 on remote node '03pve'
2018-08-30 15:14:23 start remote tunnel
2018-08-30 15:14:24 ssh tunnel ver 1
2018-08-30 15:14:24 starting storage migration
2018-08-30 15:14:24 scsi1: start migration to nbd:192.168.28.73:60000:exportname=drive-scsi1
drive mirror is starting for drive-scsi1
drive-scsi1: transferred: 0 bytes remaining: 1073741824 bytes total: 1073741824 bytes progression: 0.00 % busy: 1 ready: 0
drive-scsi1: transferred: 991952896 bytes remaining: 81788928 bytes total: 1073741824 bytes progression: 92.38 % busy: 1 ready: 0
drive-scsi1: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
all mirroring jobs are ready
2018-08-30 15:14:26 scsi0: start migration to nbd:192.168.28.73:60000:exportname=drive-scsi0
drive mirror is starting for drive-scsi0
drive-scsi1: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
drive-scsi0: transferred: 0 bytes remaining: 1073741824 bytes total: 1073741824 bytes progression: 0.00 % busy: 1 ready: 0
drive-scsi1: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
drive-scsi0: transferred: 925892608 bytes remaining: 147849216 bytes total: 1073741824 bytes progression: 86.23 % busy: 1 ready: 0
drive-scsi1: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
drive-scsi0: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
all mirroring jobs are ready
2018-08-30 15:14:28 starting online/live migration on unix:/run/qemu-server/100.migrate
2018-08-30 15:14:28 migrate_set_speed: 8589934592
2018-08-30 15:14:28 migrate_set_downtime: 0.1
2018-08-30 15:14:28 set migration_caps
2018-08-30 15:14:28 set cachesize: 67108864
2018-08-30 15:14:28 start migrate command to unix:/run/qemu-server/100.migrate
2018-08-30 15:14:29 migration speed: 102.40 MB/s - downtime 10 ms
2018-08-30 15:14:29 migration status: completed
drive-scsi1: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
drive-scsi0: transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: 0 ready: 1
all mirroring jobs are ready
drive-scsi1: Completing block job...
drive-scsi1: Completed successfully.
drive-scsi0: Completing block job...
drive-scsi0: Completed successfully.
drive-scsi1 : finished
drive-scsi0 : finished
2018-08-30 15:14:34 migration finished successfully (duration 00:00:14)
root@02pve:~#

Работает из консоли.

pvvking ★★
() автор топика
Ответ на: комментарий от pvvking

С пустыми дисками - да. А если большие, то писали что работать не будет. Там оно через задницу запускает копирование остальных дисков и если первый диск будет копироваться больше секунд 40, то остальные диски не скопируются, какие-то тоннели по тайм-ауту отвалятся... - Обещали пофиксить. Но не уверен что пофиксили. Это баги qemu-kvm, кажется.

DALDON ★★★★★
()
Ответ на: комментарий от DALDON

Да про это (отвал по таймауту) читал тоже. Но тут с пустыми дисками и то только из консоли.

pvvking ★★
() автор топика
Ответ на: комментарий от pvvking

как я понял политику прокса, в GUI доступны только «Production Ready Futures».

остальное через консоль «на свой страх и риск»

Minona ★★☆
()
Ответ на: комментарий от Minona

Будем ждать когда дожмут до продакшена

anonymous
()
Ответ на: комментарий от DALDON

Ну проверил на реале из консоли. Все нормально. 1-40гигов 2-60гигов. Заполнение данных дисков более 75%. Время 00:17:23. Можно сказать что можно.

2018-08-30 21:08:57 starting migration of VM 9993 to node 'pve-03' (10.10.10.203)
2018-08-30 21:08:58 found local disk 'zfsvm:vm-9993-disk-1' (in current VM config)
2018-08-30 21:08:58 found local disk 'zfsvm:vm-9993-disk-2' (in current VM config)
2018-08-30 21:08:58 copying disk images
2018-08-30 21:08:58 starting VM 9993 on remote node 'pve-03'
2018-08-30 21:09:01 start remote tunnel
2018-08-30 21:09:01 ssh tunnel ver 1
2018-08-30 21:09:01 starting storage migration
2018-08-30 21:09:01 virtio0: start migration to nbd:10.10.10.203:60000:exportname=drive-virtio0
drive mirror is starting for drive-virtio0
drive-virtio0: transferred: 0 bytes remaining: 42949672960 bytes total: 42949672960 bytes progression: 0.00 % busy: 1 ready: 0 
drive-virtio0: transferred: 108003328 bytes remaining: 42841669632 bytes total: 42949672960 bytes progression: 0.25 % busy: 1 ready: 0 
drive-virtio0: transferred: 229638144 bytes remaining: 42720034816 bytes total: 42949672960 bytes progression: 0.53 % busy: 1 ready: 0 
............
drive-virtio0: transferred: 42849009664 bytes remaining: 131923968 bytes total: 42980933632 bytes progression: 99.69 % busy: 1 ready: 0 
drive-virtio0: transferred: 42952622080 bytes remaining: 28311552 bytes total: 42980933632 bytes progression: 99.93 % busy: 1 ready: 0 
drive-virtio0: transferred: 42975952896 bytes remaining: 4980736 bytes total: 42980933632 bytes progression: 99.99 % busy: 1 ready: 0 
drive-virtio0: transferred: 42980933632 bytes remaining: 0 bytes total: 42980933632 bytes progression: 100.00 % busy: 0 ready: 1 
all mirroring jobs are ready 
2018-08-30 21:15:39 virtio1: start migration to nbd:10.10.10.203:60000:exportname=drive-virtio1
drive mirror is starting for drive-virtio1
drive-virtio1: transferred: 0 bytes remaining: 64424509440 bytes total: 64424509440 bytes progression: 0.00 % busy: 1 ready: 0 
drive-virtio0: transferred: 42980933632 bytes remaining: 0 bytes total: 42980933632 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio1: transferred: 115343360 bytes remaining: 64309166080 bytes total: 64424509440 bytes progression: 0.18 % busy: 1 ready: 0 
drive-virtio0: transferred: 42980933632 bytes remaining: 0 bytes total: 42980933632 bytes progression: 100.00 % busy: 0 ready: 1 
.........
drive-virtio1: transferred: 64444956672 bytes remaining: 44367872 bytes total: 64489324544 bytes progression: 99.93 % busy: 1 ready: 0 
drive-virtio0: transferred: 43153817600 bytes remaining: 0 bytes total: 43153817600 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio1: transferred: 64463896576 bytes remaining: 25427968 bytes total: 64489324544 bytes progression: 99.96 % busy: 1 ready: 0 
drive-virtio0: transferred: 43153817600 bytes remaining: 0 bytes total: 43153817600 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio1: transferred: 64489324544 bytes remaining: 0 bytes total: 64489324544 bytes progression: 100.00 % busy: 1 ready: 0 
drive-virtio0: transferred: 43154014208 bytes remaining: 0 bytes total: 43154014208 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio1: transferred: 64489324544 bytes remaining: 0 bytes total: 64489324544 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio0: transferred: 43154014208 bytes remaining: 0 bytes total: 43154014208 bytes progression: 100.00 % busy: 0 ready: 1 
all mirroring jobs are ready 
2018-08-30 21:25:57 starting online/live migration on unix:/run/qemu-server/9993.migrate
2018-08-30 21:25:57 migrate_set_speed: 8589934592
2018-08-30 21:25:57 migrate_set_downtime: 0.1
2018-08-30 21:25:57 set migration_caps
2018-08-30 21:25:57 set cachesize: 536870912
2018-08-30 21:25:57 start migrate command to unix:/run/qemu-server/9993.migrate
2018-08-30 21:25:58 migration status: active (transferred 117928032, remaining 4187705344), total 4312604672)
2018-08-30 21:25:58 migration xbzrle cachesize: 536870912 transferred 0 pages 0 cachemiss 0 overflow 0
2018-08-30 21:25:59 migration status: active (transferred 235971922, remaining 4062265344), total 4312604672)
2018-08-30 21:25:59 migration xbzrle cachesize: 536870912 transferred 0 pages 0 cachemiss 0 overflow 0
.........
2018-08-30 21:26:13 migration status: active (transferred 1796841716, remaining 17731584), total 4312604672)
2018-08-30 21:26:13 migration xbzrle cachesize: 536870912 transferred 0 pages 0 cachemiss 21272 overflow 0
2018-08-30 21:26:13 migration status: active (transferred 1808837868, remaining 33460224), total 4312604672)
2018-08-30 21:26:13 migration xbzrle cachesize: 536870912 transferred 0 pages 0 cachemiss 24195 overflow 0
2018-08-30 21:26:13 migration speed: 3.97 MB/s - downtime 32 ms
2018-08-30 21:26:13 migration status: completed
drive-virtio1: transferred: 64489324544 bytes remaining: 0 bytes total: 64489324544 bytes progression: 100.00 % busy: 0 ready: 1 
drive-virtio0: transferred: 43156307968 bytes remaining: 0 bytes total: 43156307968 bytes progression: 100.00 % busy: 0 ready: 1 
all mirroring jobs are ready 
drive-virtio1: Completing block job...
drive-virtio1: Completed successfully.
drive-virtio0: Completing block job...
drive-virtio0: Completed successfully.
drive-virtio1 : finished
drive-virtio0 : finished
2018-08-30 21:26:20 migration finished successfully (duration 00:17:23)
TASK OK

pvvking ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.