文档中心MogDBMogDB StackUqbar
v1.1

文档:v1.1

支持的版本:

ptk checkos

检查集群服务器系统依赖是否满足安装数据库需求

说明

Check cluster servers os dependencies. To check all items, enter "-i A". To check multiple status, enter the items in the following format: "-i A1,A2,A3". Item number description: 'A1':[ OS version status ] 'A2':[ Kernel version status ] 'A3':[ Unicode status ] 'A4':[ Time zone status ] 'A5':[ Swap memory status ] 'A6':[ System control parameters ] 'A7':[ File system configuration status ] 'A8':[ Disk configuration status ] 'A9':[ Pre-read block size status ] 'A10':[ IO scheduler status ] 'A11':[ Network card status ] 'A12':[ Time consistency status ] 'A13':[ Firewall service status ] 'A14':[ THP service status ] 'A15':[ System dependency packages ] 'A16':[ CPU Instruction Set ] 'A17':[ Port status ] 'A18':[ Selinux status ] 'A19':[ User ulimit config ]

语法

ptk checkos [flags]

示例

# Check local host
ptk checkos

# Check fixed items in detail mode
ptk checkos -i A1,A2,A3 --detail

# Check cluster with config.yaml, and just show abnormal detail
ptk checkos -f config.yaml --only-abnormal-detail

# Check cluster with config.yaml and generate warning-level fix commands
ptk checkos -f config.yaml --gen-warning-fix

选项

--detail

  • 说明: 打印每个检查项的详细信息
  • 数据类型: bool
  • 默认值: false

-f, --file string

  • 说明: 指定集群配置文件
  • 数据类型: string
  • 默认值: ""

--gen-warning-fix

  • 说明: 输出 abnormal 和 warning 项目的修复语句,默认仅输出 abnormal 的项目修复语句
  • 数据类型: bool
  • 默认值: false

-i, --item string

  • 说明: 指定检查项编号, 多个编号间使用英文逗号分隔
  • 数据类型: string
  • 默认值: "A"

--only-abnormal-detail

  • 说明: 仅显示 Abnormal 级别的信息
  • 数据类型: bool
  • 默认值: false

-o, --output string

  • 说明: 指定输出文件名
  • 数据类型: string
  • 默认值: ""

从父命令继承的选项

--disable-color

  • 说明: 禁用彩色日志
  • 数据类型: bool
  • 默认值: false

--disable-debug-log

  • 说明: 不生成调试日志文件
  • 数据类型: bool
  • 默认值: false

--disable-progressbar

  • 说明: 全局不显示进度条
  • 数据类型: bool
  • 默认值: false

-h, --help

  • 说明: 打印帮助信息
  • 数据类型: bool
  • 默认值: false

--log-file string

  • 说明: 指定运行日志文件路径
  • 数据类型: string
  • 默认值: ""

--log-format string

  • 说明: 指定运行日志的输出格式, 可选项: [text, json]
  • 数据类型: string
  • 默认值: "text"

--log-level string

  • 说明: 指定运行日志级别, 可选项: [debug, info, warning, error, panic]
  • 数据类型: string
  • 默认值: "info"

--silence

  • 说明: 不打印日志到标准输出
  • 数据类型: bool
  • 默认值: false

--skip-fix-ssh

  • 说明: 无需通过交互修复 ssh 连接
  • 数据类型: bool
  • 默认值: false

开始支持的版本

v0.1

另请参阅

  • ptk - Provisioning Toolkit for MogDB
Copyright © 2011-2024 www.enmotech.com All rights reserved.