メインコンテンツへスキップ

SnapCenterデータベースダンプの収集方法(NSMおよびSC_Quartz MySQLデータベースダンプ)

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

環境

  • SnapCenter Server(SC)
  • NetApp SnapCenter Metadata(NSM)

概要

NetAppによるさらなるトラブルシューティングのために、SnapCenterデータベースダンプ(NSMおよびSC_Quartz MySQLデータベースダンプ)を収集する方法

手順

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の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"

    • 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.