メインコンテンツまでスキップ

ONTAP および Windows SCSI の UNMAP およびスペース再生

Views:
1,911
Visibility:
Public
Votes:
0
Category:
flexpod-with-infrastructure-automation
Specialty:
san
Last Updated:

すべてのとおり  

環境

  • ONTAP 9
  • Windows Server 2012、2012コア、2012 Hyper-Vゲスト
  • Windows Server 2012 R2、2012 R2コア、 2012 R2 Hyper-Vゲスト
  • Windows Server 2016
  • SnapDrive for Windows(SDW)
  • SnapCenter Plug-in for Windows(SCW)

回答

SCSI UNMAPとは何ですか。
  • UNMAP Commandは、T10 SCSIコマンドセット内で標準化されたアドバイザリSCSIコマンドです。ホストOS、アプリケーション、または仮想マシンによって削除されたブロックからスペースを再生するために使用されます。T10シンプロビジョニングテクノロジは、現在のコンピュータ業界で広く採用されており、 UNMAP コマンドを使用してストレージ使用率の向上、柔軟なキャパシティプランニング、およびノンストップのストレージプロビジョニングサービスを実現しています。
    • SCSI UNMAP コマンドは、Windows Server 2012以降でインバンド処理として使用されます。
    • Windows 2008以前では、ネイティブのインバンドUNMAPはサポートされていません。ただし、Windowsでは、SnapDrive for WindowsやData ONTAP PowerShell Toolkitなどのアプリケーションを使用して、ベンダー固有のアウトオブバンドスペース再生を実行できます。SnapDrive Space Reclaimer機能では、ベンダー固有のホールパンチングコマンドを使用してスペースを削除します。
  • UNMAPはアドバイザリコマンドであるため、SCSI仕様では、指定された範囲内のすべてのブロックを再要求することなく、コマンドに成功応答で応答するオプションがターゲットに許可されています。通常、この処理はシステムへの負荷が原因でストレージアレイによって実行されます。そのため、 マッピング解除処理の際に想定されるすべてのブロックが再生されるとはかぎりません。
インバンドSCSI UNMAPで正常に動作するWindowsおよびONTAPのバージョン
  • Data ONTAPは、次のバージョンでSCSIインバンドUNMAPを使用します。
    • Data ONTAP(7-Mode 8.1.3以降)
    • clustered Data ONTAP 8.2以降
    • ONTAP 9
  • Windowsオペレーティングシステムでは、次のバージョンでインバンドUNMAPが使用されます。
    • Windows Server 2012
    • Windows Server 2012コア
    • Windows Server 2012 Hyper-Vゲスト
    • Windows Server 2012 R2
    • Windows Server 2012 R2コア
    • Windows Server 2012 R2 Hyper-Vゲスト
    • Windows Server 2016
Data ONTAPで機能を有効または無効にする方法
  • 8.1リリースファミリーのData ONTAP 7-Modeでは、SCSI UNMAPを有効にするために設定を変更する必要はありませんでした。Data ONTAP 8.2 7-Mode以降では space_alloc 、LUNでサポートをアドバタイズし、SCSI UNMAPコマンドを受け入れるために必要なオプションをLUNで有効にすることが変更されました。Data ONTAP 8.2より前のバージョンでは space_alloc 、このオプションが設定されていないかぎり、サポートされているT10シンプロビジョニング機能の一部が有効になっていなくても、SCSI UNMAPは有効になっていなくても完全に機能していました。
  • clustered Data ONTAPでは、SCSI UNMAPのサポートが8.2リリースファミリーから開始されました。LUNがSCSI UNMAPコマンドのサポートをアドバタイズして受け入れるようにするには、 space-allocation でこの機能を使用する予定のLUNでオプションを有効にします。
  • 注:  space_alloc  space-allocation  WindowsホストにLUNをプロビジョニングしたあとにまたはの設定を変更した場合は、 Windowsホストをリブートし て変更された設定を検出してください。
Windowsホストで機能を有効または無効にする方法
  • Data ONTAP DSM 4.0以降では、Data ONTAPのバージョンがチェックされ、それに応じてインバンドUNMAPが適応的に設定されます。  Windows MMCで、ストレージセクション Data ONTAP DSM管理を見つけ、右クリックして 更新を選択します
  • Server Coreエディションの場合は、 PowerShell cmdlet 'get-sandisk' コマンドを実行して実行します。
  • WindowsネイティブDSM(MSDSM)を使用する場合は、次のバージョンの対応するWindows Host Utilities(WHU)を使用します。
    • Data ONTAP 8.0.x -->WHU 6.0.1
    • clustered Data ONTAP 8.1.x --> WHU 6.0.1
    • Data ONTAP 8.1.0-8.1.2(7-Mode)--> WHU 6.0.1
    • Data ONTAP 8.1.3 (7-Mode)--> WHU 6.0.2
    • Data ONTAP 8.2.x–7-Modeおよびclustered Data ONTAP --> Wuhu 7.1
  •  お使いの構成に固有の推奨事項については、Interoperability Matrix Toolを参照してください。
  • *** WHU 6.0.1 --> turns in-band UNMAP off

    fsutil behavior query disabledeletenotify
    DisableDeleteNotify = 1

    *** WHU 6.0.2 --> turns in-band UNMAP on

    fsutil behavior query disabledeletenotify
    DisableDeleteNotify = 0

WindowsホストでSCSI UNMAPが有効か無効かを確認する方法
  • コマンドプロンプトからコマンドを実行して、設定を確認します。> fsutil behavior query disabledeletenotify
  • 戻り値DisableDeleteNotify = 1()は、ホストでインバンドUNMAPが無効であることを意味します。
  • DisableDeleteNotify = 0 ホストでインバンドUNMAPがイネーブルになっていることを意味します。
検証および統計収集の方法
  • SCSI UNMAP設定が異なる複数のData ONTAPコントローラに接続する場合は、インバンドUNMAPを無効にすることをお勧めします。
    clustered Data ONTAPがUNMAPコマンドを受信しているかどうかを確認するには、 [1] クラスタシェルCLIからstatisticsコマンドを実行し、 unmap_reqs カウンタを検索します。
  • 例:clustername::*> statistics start -object lun -instance /vol/lun1/win2012-lun -vserver svm_name
  • サンプルIDの統計収集を開始しています:sample_60
  • この時点で、WindowsホストからテストSCSI UNMAPコマンドを生成します。
    • clustername::*> statistics stop -sample-id sample_60
  • サンプルID: sample_60
    • clustername::*> statistics show -sample-id sample_60

      Object: lun

      Instance: /vol/lun1/win2012-lun

      Start-time: 3/21/2016 14:23:18

      End-time: 3/21/2016 14:23:56

      Vserver: MySVM

      Number of Constituents: 2 (complete_aggregation)

         Counter                            Value

         -------------------------------- --------------------------------

      {SNIP}

         unmap_reqs                           100

追加情報

  • この機能により、オペレーティングシステムのファイルシステムは、既知の仮想ディスクが仮想ディスクスパースファイル内のブロックを過剰に使用しないようにし、ONTAPボリューム上のスペースを解放します。
  • これは、SnapDrive for Windows Space ReclaimerまたはSnapCenter Plug-in for Windowsのスペース再生機能を介してWindowsに実装されていました。この機能は、SCSI UNMAPの互換性のため、Windows 2008R2以前では引き続き必要です。
  • さらに詳しく分析するために、 システムノードAutoSupport invoke-performance-archiveを収集して提供します。

警告:  Resilient File System(ReFS;耐障害性ファイルシステム)を検討する場合は 、シンプロビジョニング、トリム/マッピング解除、オフロードデータ転送(ODX)などの機能が必要です。NTFSを使用する必要があります。

 

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.