3a8160b71d
Closes #32131 Signed-off-by: Pedro Ruivo <pruivo@redhat.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
87 lines
1.7 KiB
Text
87 lines
1.7 KiB
Text
. Disable the replication from {stale-site} site to the {keep-site} site by running the following command.
|
|
It prevents the clear request to reach the {keep-site} site and delete all the correct cached data.
|
|
+
|
|
.Command:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
site take-offline --all-caches --site={keep-site-name}
|
|
----
|
|
+
|
|
.Output:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
{
|
|
"authenticationSessions" : "ok",
|
|
"work" : "ok",
|
|
"loginFailures" : "ok",
|
|
"actionTokens" : "ok"
|
|
}
|
|
----
|
|
|
|
. Check the replication status is `offline`.
|
|
+
|
|
.Command:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
site status --all-caches --site={keep-site-name}
|
|
----
|
|
+
|
|
.Output:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
{
|
|
"status" : "offline"
|
|
}
|
|
----
|
|
+
|
|
If the status is not `offline`, repeat the previous step.
|
|
+
|
|
WARNING: Make sure the replication is `offline` otherwise the clear data will clear both sites.
|
|
|
|
. Clear all the cached data in {stale-site} site using the following commands:
|
|
+
|
|
.Command:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
clearcache actionTokens
|
|
clearcache authenticationSessions
|
|
clearcache loginFailures
|
|
clearcache work
|
|
----
|
|
+
|
|
These commands do not print any output.
|
|
|
|
. Re-enable the cross-site replication from {stale-site} site to the {keep-site} site.
|
|
+
|
|
.Command:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
site bring-online --all-caches --site={keep-site-name}
|
|
----
|
|
+
|
|
.Output:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
{
|
|
"authenticationSessions" : "ok",
|
|
"work" : "ok",
|
|
"loginFailures" : "ok",
|
|
"actionTokens" : "ok"
|
|
}
|
|
----
|
|
|
|
. Check the replication status is `online`.
|
|
+
|
|
.Command:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
site status --all-caches --site={keep-site-name}
|
|
----
|
|
+
|
|
.Output:
|
|
[source,bash,subs="+attributes"]
|
|
----
|
|
{
|
|
"status" : "online"
|
|
}
|
|
----
|