Dear, all
I have configured Snapmirror via Ontap API.
After that, we try to execute the Break and quiesce commands through PATCH.
The job was performed normally and succeeded, but when checked in Cluster Shell,
The state does not change to the Broken-off state.
TEST environment :
System : Lab on demand Ontap 9.7 Version
Client : Lab on deamnd Linux(rhel) 7.7 Version
<Snapmirror break>
[root@rhel1 /]# curl -siku admin:Netapp1! -X PATCH "https://192.168.0.113/api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780" '{"state":"broken_off"}' -H "accept: application/hal+json"
HTTP/1.1 202 Accepted
Date: Sun, 13 Feb 2022 13:06:45 GMT
Server: libzapid-httpd
X-Content-Type-Options: nosniff
Cache-Control: no-cache,no-store,must-revalidate
Content-Length: 189
Content-Type: application/hal+json
{
"job": {
"uuid": "cbdec1f4-8ccd-11ec-a746-005056b7e780", //job uuid create
"_links": {
"self": {
"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"
}
}
}
<Snapmirror status>
cluster2::*> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
svm1:vol1 XDP svm2:drvol1 Snapmirrored // State : Snapmirored
Idle - true -
<Job Status>
[root@rhel1 /]# curl -siku admin:Netapp1! -X GET "https://192.168.0.113/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780" -H "accept: application/hal+json"
HTTP/1.1 200 OK
Date: Sun, 13 Feb 2022 13:09:39 GMT
Server: libzapid-httpd
X-Content-Type-Options: nosniff
Cache-Control: no-cache,no-store,must-revalidate
Content-Length: 402
Content-Type: application/hal+json
{
"uuid": "cbdec1f4-8ccd-11ec-a746-005056b7e780",
"description": "PATCH /api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780",
"state": "success",
"message": "success",
"code": 0,
"start_time": "2022-02-13T13:06:45+00:00",
"end_time": "2022-02-13T13:06:45+00:00",
"_links": {
"self": {
"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"
}
}
As above, the JOB succeeds, but does not change to Broken-off state.
Are there any resources that can help?
Also, please tell me how to check Transfer.uuid
Thank you.
have a good day.