sudo du -ah /storage/log/ | sort -h -r | head -n 20
7.0G /storage/log/vmware
7.0G /storage/log/
1.4G /storage/log/vmware/vmafd/vmafdd.log
1.4G /storage/log/vmware/vmafd
768M /storage/log/vmware/lookupsvc
762M /storage/log/vmware/sso
757M /storage/log/vmware/eam
2021-02-04T08:41:15.517 [vmafdd][INFO] VecsSrvWriteCertOrCrlToDisk: cert/cl already exists as /etc/ssl/certs/d70df8d2.0, so will not write again.
2021-02-04T08:41:15.517 [vmafdd][INFO] VecsSrvWriteCertOrCrlToDisk: cert/cl already exists as /etc/ssl/certs/6349821d.0, so will not write again.
2021-02-04T08:41:15.517 [vmafdd][INFO] VecsSrvWriteCertOrCrlToDisk: cert/cl already exists as /etc/vmware-vpx/docRoot/certs/ d70df8d2.0, so will not write again.
2021-02-04T08:41:15.518 [vmafdd][INFO] VmAfdProcessCACerts: force flushing.
This happens because the logrotate.d configuration for the vmafd service expects the logs to be located in the following path:
Expected path | /var/log/vmware/vmafdd/vmafdd.log |
Current path | /var/log/vmware/vmafd/vmafdd.log |
# cat /etc/logrotate.d/vmware-vmafd.lr
/var/log/vmware/vmafdd/vmafdd.log <<< Here's where the log file is expected.
{
size 10M
nodateext
rotate 10
missingok
notifempty
compress
create 644 root root
postrotate
/usr/sbin/killproc -L -HUP /usr/lib/vmware-vmafd/sbin/vmafdd
endscript
}
Checking the vmafdd registry you see the incorrect path:
/opt/likewise/bin/lwregshell list_values "[HKEY_THIS_MACHINE\Services\vmafd\Parameters]"
root@vcsa1 [ ~ ]# /opt/likewise/bin/lwregshell list_values "[HKEY_THIS_MACHINE\Services\vmafd\Parameters]"
+ "CAPath" REG_SZ "/etc/ssl/certs"
+ "DCName" REG_SZ "vcsa1.domain.local"
+ "DCPort" REG_DWORD 0x000001bb (443)
+ "DomainGUID" REG_SZ "########-####-####-####-########2496"
+ "DomainName" REG_SZ "vsphere.local"
+ "DomainState" REG_DWORD 0x00000001 (1)
+ "LDU" REG_SZ "########-####-####-####-########e651"
+ "LogFile" REG_SZ "/var/log/vmware/vmafd/vmafdd.log"
Note: Please ensure to create a fresh backup or offline snapshot (in powered off state) of the vCenter Server Appliance before implementing the steps below. In case the affected vCenter Server Appliance is part of an Enhanced Linked Mode (ELM) replication group, the backup or offline snapshots must be created for all of its replication partners as well. When restoring an ELM vCenter, all members of the ELM replication need to be restored too, otherwise there will be inconstencies in the VMDirectory LDAP database.
# /opt/likewise/bin/lwregshell set_value "[HKEY_THIS_MACHINE\Services\vmafd\Parameters]" "LogFile" "/var/log/vmware/vmafdd/vmafdd.log"
# service-control --stop --all && service-control --start --all
/storage/log/vmware/vmafd/vmafdd.log
out of the /storage/log partition or delete it to reduce storage utilization in the log partition.