Skip to content

Commit

Permalink
redo_log: report redo log as broken if we cannot find the block device
Browse files Browse the repository at this point in the history
XAPI was just retrying endlessly in a loop saying "Could not find block device",
but didn't raise any alerts that XenRT could detect.

Report the redo log broken the first time we fail due to the lack of a bloc k device (which would indicate something going wrong in SM).

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Feb 16, 2024
1 parent 13258e5 commit b52c835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocaml/database/redo_log.ml
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ let startup log =
) ;
match !(log.device) with
| None ->
D.info "Could not find block device"
D.info "Could not find block device";
broken log
| Some device ->
D.info "Using block device at %s" device ;
(* Check that the block device exists *)
Expand Down

0 comments on commit b52c835

Please sign in to comment.