跳转到主内容

如何收集 SnapCenter 数据库转储(NSM 和 SC_Quartz MySQL 数据库转储)

Views:
128
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
snapx
Last Updated:

适用于

  • SnapCenter 服务器 (SC)
  • NetApp SnapCenter 元数据 (NSM)

说明

如何收集 SnapCenter 数据库转储(NSM 和 SC_Quartz MySQL 数据库转储)以供 NetApp 进行进一步故障排除

操作步骤

对于 SnapCenter 5.0 和更高版本 - 使用 SnapCenter PowerShell Toolkit:

  1. 通过远程桌面或控制台登录到 SnapCenter 服务器。
  2. 创建一个将保存文件的文件夹
    • 示例:  C:\SC_Backup
  3. 打开 Powershell 命令:
    • > Open-SmConnection

    • 提供 SnapCenter 管理员用户和密码
  4. 运行以下命令来创建 SnapCenter NSM 和 Quartz 存储库以及配置文件的备份:
  5. 导航到备份位置并压缩 具有最新时间戳的文件夹:
    •  <Folder_created_in_Step_2>\SnapCenter_DR\<SnapCenterhostname.fqdn.com>_<timestamp>
  6.  使用关联的技术支持案例编号将 zip 文件上传到 NetApp 

 

对于所有 SnapCenter 版本 - 使用 MySQLDump:

  1. 通过远程桌面或控制台登录到 SnapCenter 服务器。

  2. 使用提升的权限打开 Windows 命令提示符

  3. 更改为安装 MySQL 的文件夹。默认路径为:

    • 对于 SnapCenter 5.0 之前的版本:  "C:\Program Files\MySQL\MySQL Server 5.7\bin

    • 对于 SnapCenter 5.0 和更高版本:  "C:\Program Files\MySQL\MySQL Server 8.0\bin"

  4. 运行 MySQLDump 命令:

    •  请注意,指定的路径和文件名 "C:\nsm.sql" 是可配置的,可以指定备用位置/文件名
    • 注意: MySQLDump 命令将提示输入 MySQL 根密码。  如果不知道密码,可以按照以下链接中的步骤重置密码:
    • 仅备份 NSM 数据库(所有 SnapCenter 版本):

      • > mysqldump.exe --user=root --host=localhost --password --protocol=tcp --port=3306 --default-character-set=utf8 --max_allowed_packet=1G --single-transaction=TRUE "nsm" --result-file "C:\nsm.sql"

    • 仅备份 SC_Quartz 数据库(SnapCenter 6.0 及更高版本):

      • > mysqldump.exe --user=root --host=localhost --password --protocol=tcp --port=3306 --default-character-set=utf8 --max_allowed_packet=1G --single-transaction=TRUE "SC_quartz" --result-file "C:\SC_quartz.sql"

        • (创建仅用于分析的转储时,无需导出带有 --routines --events 参数的 NSM 数据库;如果您打算同时进行转储备份,请使用带有此参数的 mysqldump.exe,以便在备份中包含存储过程,以防您将从此备份还原 MySQL NSM)
  5. 压缩并 使用关联的技术支持案例编号将 zip 文件上传到 NetApp

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.