To workaround issues that come from likewise registry corruptions on vCenter / Platform Services Controller
Symptoms:
Setting values in the likewise registry fails with similar error :
HKEY_THIS_MACHINE\services\vmafd\parameters> set_value LogFile /var/log/vmware/vmafdd/vmafdd.log
lwregshell (error = 4294967295 - -1)
Unknown error
VMware vCenter Server 6.0
VMware vCenter Server 7.0
VMware vCenter Server 8.0
Recreate the likewise registry and re-import the registry data.to workaround the registry corruption.
Important : Take a backup/offline snapshot of the vCenter / PSC (and all the other nodes in the SSO domain if in linked mode)
1.List the Likewise registry data :
/opt/likewise/bin/lwregshell list_values '[HKEY_THIS_MACHINE\Services\vmafd\Parameters]'
2. Export the likewise registry data (make sure lwregd is up and running before trying this):
/opt/likewise/bin/lwregshell export /var/core/lwregDataSourceVC.reg
2. Stop all the services:
service-control --stop --all
3. Remove the below files :
rm /var/lib/likewise/db/active.db
rm /var/lib/likewise/db/registry.db
4. Start Likewise using:
/opt/likewise/sbin/lwsmd --syslog --start-as-daemon
5. Verify /var/lib/likewise/db/active.db and /var/lib/likewise/db/registry.db are regenerated post startup of Likewise
6. Import the data back to the Likewise registry:
/opt/likewise/bin/lwregshell import /var/core/lwregDataSourceVC.reg
7. Verify all the data were imported to Likewise registry using:
/opt/likewise/bin/lwregshell list_values '[HKEY_THIS_MACHINE\Services\vmafd\Parameters]'
8. Stop likewise using: /opt/likewise/bin/lwsm shutdown
9. Restart all the services using: service-control --start --all