# lkpolicy --get-policies LocalRecovery
[±âº»¼³Á¤]
For temporal policies this should also include the threshold values
like: recoverylimit=5 period=5, that is, five failures in five minutes
[¼³Á¤½Ã]
# lkpolicy --set-policy TemporalRecovery --on recoverylimit=5 period=15
# lkpolicy --set-policy TemporalRecovery --on --force recoverylimit=5 period=10
EXAMPLES
listing policies
lkpolicy --list-policy-types
showing current policies
lkpolicy --get-policies
lkpolicy --get-policies tag=\*
lkpolicy --get-policies tag=mysql\* # all resources starting with mysql
lkpolicy --get-policies --verbose tag=mytagonly
setting policies
lkpolicy --set-policy Failover --off
lkpolicy --set-policy Failover --on tag=myresource
lkpolicy --set-policy Failover --on tag=\*
lkpolicy --set-policy LocalRecovery --off tag=myresource
lkpolicy --set-policy NotificationOnly --on
lkpolicy --set-policy TemporalRecovery --on recoverylimit=5 period=15
lkpolicy --set-policy TemporalRecovery --on --force recoverylimit=5 period=10
removing policies
lkpolicy --remove-policy Failover tag=steve