跳转到主内容

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

Views:
40
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
SNAPX
Last Updated:

适用场景

SnapCenter 服务器

问题描述

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

操作步骤

使用SnapCenter PowerShell工具包(在SnapCenter 5.0及更新版本上):

  1. 通过远程桌面或控制台登录到SnapCenter服务器。
  2. 打开PowerShell 命令:
    • > Open-SmConnection

    • 提供SnapCenter管理员用户和密码
  3. 创建备份:
  4. 导航到该位置并压缩最后一个时间戳文件夹 c:\<yourpatch>\SnapCenter_DR\<SnapCenterhostname.fqdn.com>_<timestamp>

使用命令行方法并使用myq_dump (在 所有SnapCenter版本上)

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

  2. 使用提升的Privileges打开命令提示符

  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" 路径和文件名是可配置的、可以指定备用位置/文件名
    • 注意: 以下命令将提示用户输入root密码
    • 仅备份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"

    • 要备份NSM和SC_Quartz数据库(SnapCenter 6及以上)、请执行以下操作:

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

(无需使用--routines --events 参数导出NSM数据库。)

  1.  此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.