rbd-mirror
Manage RBD mirroring for RBD pools. To configure RBD mirroring, first start an RBD mirror service on the cluster that data should be mirrored to. Then use this API to enable mirroring on pools with the same name on both clusters. To connect the two clusters, generate a bootstrap token on one of the pools, and import the token on the same pool on the other cluster.
Get a pool's mirroring settings for all namespaces.
Parameters{
"pool": "string",
"peers": [
{
"id": "string",
"siteName": "string",
"direction": "rx_tx",
"clientName": "string"
}
],
"siteName": "string",
"namespace": "string",
"statusHealth": "string",
"statusStates": {
"additionalProp1": 0,
"additionalProp2": 0,
"additionalProp3": 0
},
"poolMirrorMode": "disabled"
}
Update a pool's mirroring settings.
Parameters{
"poolMirrorMode": "disabled"
}
{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Get mirror infos on all pools.
[
{
"pool": "string",
"peers": [
{
"id": "string",
"siteName": "string",
"direction": "rx_tx",
"clientName": "string"
}
],
"siteName": "string",
"namespace": "string",
"statusHealth": "string",
"statusStates": {
"additionalProp1": 0,
"additionalProp2": 0,
"additionalProp3": 0
},
"poolMirrorMode": "disabled"
}
]
Get mirror snapshot schedules of the image, or an empty list if snapshot mode is not enabled.
[
{
"rbd": "string",
"pool": "string",
"interval": "string",
"namespace": "string",
"startTime": "string"
}
]
Add a new schedule for rbd mirror snapshots.
Parameters{
"rbd": "string",
"pool": "string",
"interval": "string",
"namespace": "string",
"startTime": "string"
}
Delete a schedule for RBD mirror snapshots. Call this endpoint with the same request body as when adding a schedule (via POST). The task returned by this endpoint will not provide information on whether or not a schedule was removed. To check if deletion was successful, request the list of schedules and check for any changes.
Parameters{
"rbd": "string",
"pool": "string",
"interval": "string",
"namespace": "string",
"startTime": "string"
}
Add a pool peer using the bootstrap token from a remote cluster.
Parameters{
"siteName": "string",
"direction": "rx_tx",
"peerToken": "string",
"localSiteName": "string"
}
{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Get the bootstrap token to set up a peer for the pool. This token can be imported on a peer cluster to automatically set up a connection between the two clusters to mirror the pool. Note that the token contains sensitive information about your cluster! Will return null if anything fails while trying to create the token (e.g. mirroring is not enabled on the pool).
Parameters"string"
Change the site name of the pool.
Parameters{
"siteName": "string"
}
Enable/Disable journaling for all images not in snapshot mode in the pool.
Parameters{
"enableJournaling": true
}
{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Change pool peer settings. These changes only take effect after restarting the rbd-mirror daemon service.
Parameters{
"client": "string",
"monHosts": "string",
"siteName": "string",
"direction": "rx_tx"
}
{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Delete a specific peer mirroring cluster from a pool.
Parameters{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Update RBD mirroring settings for the image.
Parameters{
"primary": true,
"journaling": true,
"imageMirrorMode": "disabled"
}
{
"id": 0,
"done": true,
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string",
"result": {},
"progress": {
"total": 0,
"complete": 0
},
"question": {
"token": "string",
"message": "string",
"timeout": 0,
"priority": "Standard",
"timeLeft": 0,
"defaultResponse": "string",
"responseOptions": [
"string"
]
},
"startedAt": 0,
"startedBy": "string",
"statusCode": 0,
"interactive": true
}
Force a RBD mirroring resync on the image. Note that this only flags the image, it's up to the rbd-mirror daemon to execute the resync.
ParametersGet mirror snapshots of the image, or an empty list if snapshot mode is not enabled.
Parameters[
{
"id": 0,
"name": "string"
}
]
Create a mirror snapshot of the image
Parameters