7 Star 1 Fork 17

src-openEuler/pcs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-add-overwrite-to-pcs-cluster-report-documentation.patch 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
From af6413bcf626d37028788e18366386fc6c873982 Mon Sep 17 00:00:00 2001
From: Tomas Jelinek <[email protected]>
Date: Thu, 26 Sep 2024 16:14:13 +0200
Subject: [PATCH 049/100] add overwrite to pcs cluster report documentation
---
pcs/pcs.8.in | 4 ++--
pcs/usage.py | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/pcs/pcs.8.in b/pcs/pcs.8.in
index 91974e9b..ab00f5bd 100644
--- a/pcs/pcs.8.in
+++ b/pcs/pcs.8.in
@@ -695,8 +695,8 @@ Permanently destroy the cluster on the current node, killing all cluster process
verify [\fB\-\-full\fR] [\fB\-f\fR <filename>]
Checks the pacemaker configuration (CIB) for syntax and common conceptual errors. If no filename is specified the check is performed on the currently running cluster. If \fB\-\-full\fR is used more verbose output will be printed.
.TP
-report [\fB\-\-from\fR "YYYY\-M\-D H:M:S" [\fB\-\-to\fR "YYYY\-M\-D H:M:S"]] <dest>
-Create a tarball containing everything needed when reporting cluster problems. If \fB\-\-from\fR and \fB\-\-to\fR are not used, the report will include the past 24 hours.
+report [\fB\-\-from\fR "YYYY\-M\-D H:M:S" [\fB\-\-to\fR "YYYY\-M\-D H:M:S"]] <dest> [\fB\-\-overwrite]\fR
+Create a tarball containing everything needed when reporting cluster problems. If \fB\-\-from\fR and \fB\-\-to\fR are not used, the report will include the past 24 hours. No existing files will be overwritten, unless \fB\-\-overwrite\fR is specified.
.SS "stonith"
.TP
[status [<resource id | tag id>] [node=<node>] [\fB\-\-hide\-inactive\fR]]
diff --git a/pcs/usage.py b/pcs/usage.py
index d0b14d11..20677eca 100644
--- a/pcs/usage.py
+++ b/pcs/usage.py
@@ -1870,9 +1870,11 @@ Commands:
will be printed.
report [--from "YYYY-M-D H:M:S" [--to "YYYY-M-D H:M:S"]] <dest>
+ [--overwrite]
Create a tarball containing everything needed when reporting cluster
- problems. If --from and --to are not used, the report will include
- the past 24 hours.
+ problems. If --from and --to are not used, the report will include
+ the past 24 hours. No existing files will be overwritten, unless
+ --overwrite is specified.
""".format(
config_show_syntax=_format_syntax(_CLUSTER_CONFIG_SHOW_SYNTAX),
config_show_desc=_format_desc(_CLUSTER_CONFIG_SHOW_DESC),
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/pcs.git
[email protected]:src-openeuler/pcs.git
src-openeuler
pcs
pcs
master

搜索帮助