この記事では、vCenter Server Appliance のディスク使用量が多いという問題のトラブルシューティングについての情報を提供します。
問題のあるパーティションを特定する。
df -h
問題のあるパーティションのみを表示するコマンドです。
df -h |awk '0+$5 >= 78 {print}'
注: 多くの場合、パーティションが78〜79%の場合、警告をトリガーするために必要な80%を超えている可能性があり、78% 以上の消費しているパーティションを探しています。同様に、93%の場合、vmware-vpxdサービスをシャットダウンしてから低いパーセンテージに回復するために必要な95%を超えている可能性があります。
Filesystem | Mounted on | Resolution |
---|---|---|
/dev/sda3 | "/" | |
/dev/mapper/log_vg-log | /storage/log | Troubleshooting vCenter Appliance /storage/log directory is 80% or more full |
/dev/mapper/core_vg-core | /storage/core | /storage/core partition full due to core.netlogond.xxxxx files in vCenter Server Appliance |
/dev/mapper/db_vg-db | /storage/db | VCSA database storage "/storage/db" is full or nearly full |
/dev/mapper/seat_vg-seat | /storage/seat | /storage/seat disk 100% full on vCenter Server Appliance 6.x/7.x |
/dev/mapper/archive_vg-archive | /storage/archive | Note: This partition being full is normal and expected in vCenter versions 6.7 and above File system /storage/archive is low on storage space" warning in vCenter Server Appliance 6.7/7.x |
トラブルシューティング:
vCenter Server Appliance の高いディスク容量使用量は、影響を受けているパーティションを特定することから始まります。
ディスク容量の少ないパーティションが特定されたら、以下の手順に従って、各パーティションで作成されたサイズの大きなファイルを特定します。ただし、データベース ファイルを格納するパーティションを除きます。
vCenter Server Appliance のパーティションとマウントについては下記を参照してください:
List of VMDKs for a vCenter Server Appliance 6.0 - Size Mount point and Purpose
List of VMDKs for a vCenter Server Appliance 6.5 - Size Mount point and Purpose
List of VMDKs/Partitions for a vCenter Server Appliance 6.7 - Size Mount point and Purpose
List of VMDKs/Partitions for a vCenter Server Appliance 7.0 - Size Mount point and Purpose
影響を受けるパーティション内で次のコマンドを使用して、ディスク使用量の多い上位 20 のファイルを特定します。
du -a <Path> | sort -n -r | head -n 20
実行例:
du -a /storage/log/ | sort -n -r | head -n 20
ここにリストされている問題の可能性があるサイズのディレクトリに変更し、次のコマンドを使用して大きなファイルを探してください。
ls -lha
空き容量を増やすためにファイルを削除することを決定する前に、vCenterの信頼できるバックアップがあることを確認してください。
Note: tgz ファイルはログバンドルに関連するファイルである可能性があるため削除できます。
これまでの全ての対応で十分な空を確保できない場合は、vCenterの通常のアクティビティが既存のディスクサイズがサポートするよりも大きくなっている可能性があります。この場合、仮想ディスクのサイズを変更することができます。
VAMI では、拡大する予定の仮想ディスクが [モニター] > [ディスク] に表示されていることを確認してください。
それ以外の場合は、上記のリンク先の「VMDK /パーティションのリスト」の記事を参照してください。
スナップショットがある場合、vCenter仮想マシンのディスクサイズを変更できないことに注意してください
仮想ディスクのサイズを変更する前に、vCenterの適切なバックアップがあることを確認してください。
Increasing the disk space for the vCenter Server Appliance in vSphere 6.5, 6.7, 7.0 and 8.0