免責事項: これは英文の記事「SDDC Manager service restart fails with "Access denied"」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
sddcmanager_restart_services.sh スクリプトを使用して SDDC Manager サービスを再起動すると「Access denied」で操作が失敗します。
スクリプトを実行すると、次のような出力が表示されます:
vcf@##### [ ~ ]$ /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
You are about to restart all SDDC Manager services. Are you sure you would like to continue [y/n]? y
Restarting all SDDC Manager services. This would take a while.--------------------------------------------------------------Restarting common services...Failed to restart commonsvcs.service: Access deniedSee system logs and 'systemctl status commonsvcs.service' for details.
Restarting domain manager...Failed to restart domainmanager.service: Access deniedSee system logs and 'systemctl status domainmanager.service' for details.Restarting lcm...Failed to restart lcm.service: Access deniedSee system logs and 'systemctl status lcm.service' for details.Restarting operations manager...Failed to restart operationsmanager.service: Access deniedSee system logs and 'systemctl status operationsmanager.service' for details.Restarting sddc-manager-ui-app...Failed to restart sddc-manager-ui-app.service: Access deniedSee system logs and 'systemctl status sddc-manager-ui-app.service' for details.Finished initiating restart for all SDDC Manager services.
SDDC Manager 5.2
特権のない vcf ユーザーアカウントでスクリプトが実行されたためです。CLI 経由で systemd サービスを再起動するには root 権限が必要です。
スクリプトを実行する前に root ユーザーに切り替えてください。
su -
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh