...
Info |
---|
When file locking is activated, write I/O to the duplicate file set is blocked. Therefore, all related applications and services must be terminated so that I/O to the file no longer occurs, and then the lock is performed. If this is not done, writes may be blocked while I/O is occurring, leading to I/O errors, or failing to flush the cache area of the application, resulting in loss of writing important data. When switching over, you must ensure that the file is locked after the application is completely closed. |
...
Inquiry
상태 조회
...
Status
The status of the FSR can be queried using the fsradm status command.
Code Block |
---|
λ fsradm status all r0 role:primary file:up_to_date pending:0 locked:false node2 state:repl_source peer-state:repl_target role:secondary file:up_to_date last-synced:2019-10-24T15:30:12+09:00 node3 state:connecting peer-state:unknown role:secondary file:unknown last-synced:none r1 role:secondary file:inconsistent pending:0 locked:false node2 state:connecting peer-state:unknown role:secondary file:unknown last-synced:none |
상세 출력 옵션을 사용하면 더 많은 상태 정보를 조회할 수 있습니다More status information can be retrieved by using the verbose output option.
Code Block |
---|
λ fsradm status -v r0:node1 role:primary file:up_to_date pending:0 locked:false last-promoted:2020-06-10T09:40:32+09:00 node2 state:repl_source peer-state:repl_target role:secondary file:up_to_date repl-started:2020-06-10T09:40:32+09:00 last-synced:2020-06-10T09:40:33+09:00 node3 state:connecting peer-state:unknown role:secondary file:unknown repl-started:2020-04-09T09:50:38+09:00 last-synced:2020-04-09T09:50:53+09:00 |
상태 조회를 지속하고 싶다면 If you want to keep the status lookup, you can use the --watch(-w) 와 and --interval(-i) 옵션을 사용하여 상태를 모니터링할 수 있습니다options to monitor the status.
Code Block |
---|
λ fsradm status all -w -i 1 r0 role:secondary file:inconsistent locked:false node2 state:established peer-state:established role:secondary file:inconsistent last-synced:none node3 state:connecting peer-state:unknown role:secondary file:unknown last-synced:none r1 role:secondary file:inconsistent locked:false node2 state:connecting peer-state:unknown role:secondary file:unknown last-synced:none update every 1.0s. current executions: 84 press 'q' or 'ctrl+c' to quit... |
...
File Status
복제 대상 파일의 복제 상태를 나타냅니다.
unknown 알 수 없는 상태. 연결되지 않은 상대 노드의 알 수 없는 파일 상태를 표현합니다.
...