免責事項:これは英文の記事「Enabling/Disabling VAAI functions from the command line」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
コマンドラインからのVAAI機能の有効化/無効化の方法に関する情報を提供します。
VMware vSphere ESXi 7.0
VMware vSphere ESXi 8.0
1.VAAI操作のサポートステータスを取得/設定するためのESXCLIコマンド
1. esxcli storage core device vaai status
Usage:esxcli storage core device vaai status {cmd} [cmd options]
Available Commands:
get List VAAI properties for devices currently registered with the PSA.
set Enable/Disable VAAI operations on local SCSI disks.(NOTE: A request to enable an operation will take effect only if the underlying device supports the VAAI operation.)
2. esxcli storage core device vaai status set --help
Usage:esxcli storage core device vaai status set [cmd options]
Description:
set Enable/Disable VAAI operations on local SCSI disks.(NOTE: A request to enable an operation will take effect only if the underlying device supports the VAAI operation.)
Cmd options:
-A|--ats=<bool> Enable or Disable ATS operation (1/0)
-C|--clone=<bool> Enable or Disable CLONE operation (1/0)
-D|--delete=<bool> Enable or Disable DELETE operation (1/0)
-d|--device=<str> The device upon which to operate (NAA ID). (required)
-Z|--zero=<bool> Enable or Disable ZERO operation (1/0)
3. esxcli storage core device vaai status get --help
Usage:esxcli storage core device vaai status get [cmd options]
Description:
get - List VAAI properties for devices currently registered with the PSA.
Cmd options:
-d|--device= <str> Filter the output of this command to only show a single device.
2.サポートされているVAAI操作に関する情報を取得するためのESXCLIコマンド
esxcli storage core device vaai status get -d <device>
例 -
[root@localhost:~] esxcli storage core device vaai status get -d naa.##############
naa.##############
VAAI Plugin Name:
ATS Status: unsupported
Clone Status: unsupported
Zero Status: unsupported
Delete Status: unsupported
Ex Clone Status: unsupported
3. VAAIサポートを設定/変更するためのESXCLIコマンド
上記で示したgetリクエストを使用して、設定を検証できます。
esxcli storage core device vaai status set --<vaai operation> 0/1 -d <device>
例 -
# esxcli storage core device vaai status set --zero 1 -d naa.##############
# esxcli storage core device vaai status set --zero 0 -d naa.##############
# esxcli storage core device vaai status set --ats 1 --clone 1 --delete 1 -d naa.##############