2020-07-28 00:58:44 +03:00
|
|
|
Start NBD server
|
2019-10-09 11:41:58 +03:00
|
|
|
{"execute": "blockdev-add", "arguments": {"driver": "raw", "file": {"driver": "nbd", "reconnect-delay": 10, "server": {"path": "TEST_DIR/PID-nbd-sock", "type": "unix"}}, "node-name": "backup0"}}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute": "blockdev-backup", "arguments": {"device": "drive0", "speed": 1048576, "sync": "full", "target": "backup0"}}
|
|
|
|
{"return": {}}
|
|
|
|
Backup job is started
|
|
|
|
Kill NBD server
|
|
|
|
Backup job is still in progress
|
|
|
|
{"execute": "block-job-set-speed", "arguments": {"device": "drive0", "speed": 0}}
|
|
|
|
{"return": {}}
|
|
|
|
Start NBD server
|
|
|
|
Backup completed: 5242880
|
|
|
|
{"execute": "blockdev-del", "arguments": {"node-name": "backup0"}}
|
|
|
|
{"return": {}}
|
2020-07-28 00:58:44 +03:00
|
|
|
Kill NBD server
|