跳转到主内容

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

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

适用场景

SnapCenter 服务器

问题描述

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

操作步骤

对于SnapCenter 5.0及更新版本 - 使用SnapCenter PowerShell工具包:

  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版本 - 使用 myq_dump:

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

  2. 使用提升的Privileges打开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. 运行myq_dump 命令:

    •  请注意、指定的"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.