aboutsummaryrefslogtreecommitdiff
path: root/docs/block-replication.txt
diff options
context:
space:
mode:
authorRao, Lei <lei.rao@intel.com>2021-11-22 15:49:47 +0800
committerThomas Huth <thuth@redhat.com>2021-11-22 15:02:38 +0100
commiteff708a876b40fe71bedb792d084972d7a52166a (patch)
treee71a739e0cc0cff3ebc6b5aab8d3cae6bd232ac4 /docs/block-replication.txt
parent8f75cae2dda8a55eb3a6c712bd22b18a90c0a5ac (diff)
downloadqemu-eff708a876b40fe71bedb792d084972d7a52166a.zip
qemu-eff708a876b40fe71bedb792d084972d7a52166a.tar.gz
qemu-eff708a876b40fe71bedb792d084972d7a52166a.tar.bz2
docs: Use double quotes instead of single quotes for COLO
Signed-off-by: Lei Rao <lei.rao@intel.com> Message-Id: <1637567387-28250-2-git-send-email-lei.rao@intel.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'docs/block-replication.txt')
-rw-r--r--docs/block-replication.txt52
1 files changed, 26 insertions, 26 deletions
diff --git a/docs/block-replication.txt b/docs/block-replication.txt
index 59eb2b3..b0f2376 100644
--- a/docs/block-replication.txt
+++ b/docs/block-replication.txt
@@ -156,15 +156,15 @@ Primary:
children.0.driver=raw
Run qmp command in primary qemu:
- { 'execute': 'human-monitor-command',
- 'arguments': {
- 'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=xxxx,file.port=xxxx,file.export=colo1,node-name=nbd_client1'
+ { "execute": "human-monitor-command",
+ "arguments": {
+ "command-line": "drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=xxxx,file.port=xxxx,file.export=colo1,node-name=nbd_client1"
}
}
- { 'execute': 'x-blockdev-change',
- 'arguments': {
- 'parent': 'colo1',
- 'node': 'nbd_client1'
+ { "execute": "x-blockdev-change",
+ "arguments": {
+ "parent": "colo1",
+ "node": "nbd_client1"
}
}
Note:
@@ -189,21 +189,21 @@ Secondary:
vote-threshold=1,children.0=childs1
Then run qmp command in secondary qemu:
- { 'execute': 'nbd-server-start',
- 'arguments': {
- 'addr': {
- 'type': 'inet',
- 'data': {
- 'host': 'xxx',
- 'port': 'xxx'
+ { "execute": "nbd-server-start",
+ "arguments": {
+ "addr": {
+ "type": "inet",
+ "data": {
+ "host": "xxx",
+ "port": "xxx"
}
}
}
}
- { 'execute': 'nbd-server-add',
- 'arguments': {
- 'device': 'colo1',
- 'writable': true
+ { "execute": "nbd-server-add",
+ "arguments": {
+ "device": "colo1",
+ "writable": true
}
}
@@ -223,22 +223,22 @@ After Failover:
Primary:
The secondary host is down, so we should run the following qmp command
to remove the nbd child from the quorum:
- { 'execute': 'x-blockdev-change',
- 'arguments': {
- 'parent': 'colo1',
- 'child': 'children.1'
+ { "execute": "x-blockdev-change",
+ "arguments": {
+ "parent": "colo1",
+ "child": "children.1"
}
}
- { 'execute': 'human-monitor-command',
- 'arguments': {
- 'command-line': 'drive_del xxxx'
+ { "execute": "human-monitor-command",
+ "arguments": {
+ "command-line": "drive_del xxxx"
}
}
Note: there is no qmp command to remove the blockdev now
Secondary:
The primary host is down, so we should do the following thing:
- { 'execute': 'nbd-server-stop' }
+ { "execute": "nbd-server-stop" }
Promote Secondary to Primary:
see COLO-FT.txt