esxcli vsan debug object list コマンドは、実際のオブジェクト数がそれ以上であっても、最大 100 個のオブジェクトしか表示しません。
[root@<ESXi hostname>:/] esxcli vsan debug object health summary getHealth Status Number Of Objects--------------------------------------------------------- -----------------remoteAccessible 0inaccessible 0reduced-availability-with-no-rebuild 0reduced-availability-with-no-rebuild-delay-timer 0reducedavailabilitywithpolicypending 0reducedavailabilitywithpolicypendingfailed 0reduced-availability-with-active-rebuild 0reducedavailabilitywithpausedrebuild 0data-move 0nonavailability-related-reconfig 0nonavailabilityrelatedincompliancewithpolicypending 0nonavailabilityrelatedincompliancewithpolicypendingfailed 0nonavailability-related-incompliance 0nonavailabilityrelatedincompliancewithpausedrebuild 0healthy 894[root@<ESXi hostname>:/] [root@<ESXi hostname>:/] esxcli vsan debug object list | grep 'Object UUID' | wc -l100[root@<ESXi hostname>:/]
VMware vSphere ESXi
VMware vSAN
これは想定された動作(製品仕様)です。 オンラインヘルプに記載されている通り、表示されるオブジェクトの数は制限されています。
[root@<ESXi hostname>:/] esxcli vsan debug object list --helpUsage: esxcli vsan debug object list [cmd options]
Description: list Print detailed information about vSAN objects in the cluster. This command would only show 100 objects at most by default.
注: このデフォルト値は ESXi のバージョンによって異なる場合があります。オンラインヘルプで最大値を確認してください。
--max-number=#### オプションを追加してください。
[root@<ESXi hostname>:/] esxcli vsan debug object list --max-number=1000 | grep 'Object UUID' | wc -l894[root@<ESXi hostname>:/]
--all オプションも利用可能ですが、大規模な環境ではすべてのオブジェクトを表示しきれない場合があります。その場合は、--max-number オプションの使用を試みてください。
オンラインヘルプからの抜粋: --all If given, query all the objects in the cluster. Please make sure the host has enough resources to run. --max-number=<long> Specify the maximum number of objects to query. Note: querying large number of objects can be very resource consuming.