Skip to content

crm sbd status to print and WARN the sbd configuration mtime while sbd.service is active #1837

@zzhou1

Description

@zzhou1

As the title. Ideally, the suggestion could be something like the following mock-up

adm@tw-1:~> sudo crm sbd status
# Type of SBD:
Disk-based SBD: its sysconfig file is modified at  Wed 2025-06-25 07:14:48 CEST

# Status of sbd.service:
Node   |Active  |Enabled |Since
tw-1  |YES     |YES     |active since: Wed 2025-06-25 07:13:48 CEST
tw-2  |YES     |YES     |active since: Wed 2025-06-25 04:03:32 CEST
tw-3  |NO      |YES     |disactive since: Wed 2025-06-25 08:16:59 CEST

WARN:  /etc/sysconfig/sbd was modified while sbd.service is active. Restarting sbd is highly suggested.


REF:

adm@tw-1:~> stat -c %y /etc/sysconfig/sbd | xargs -I {} date -d {} "+%a %Y-%m-%d %H:%M:%S %Z"
Tue 2025-06-24 04:25:31 CEST

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions