A family of Microsoft on-premises document management and storage systems.
Based on my research, the behavior where the AppFabric Caching service is no longer visible is expected by design.
Reference: Manage the Distributed Cache service in SharePoint Server - SharePoint Server | Microsoft Learn
With that in mind, I would not recommend manually editing the ClusterConfig.xml file, as this may lead to further inconsistencies.
Additionally, may I clarify one point: did you run the Rename-SPServer command as part of the renaming process?
If not, you may consider the following steps to help narrow down and verify the current state:
1/ Verify what the farm recognizes as the server name
Get-SPServer | Select Name, Role
Also check the cache host status:
Get-SPCacheHost
2/ Run the Rename-SPServer command
Rename-SPServer -Identity "OLDSERVERNAME" -Name "NEWSERVERNAME"
After running this, execute Get-SPServer again to confirm that the new name is updated correctly.
3/ Force remove any stale cache service instance
# Find and delete the orphaned/stale instance
$instanceName = "SPDistributedCacheService Name=SPCache"
$serviceInstance = Get-SPServiceInstance | Where-Object {
($_.service.tostring()) -eq $instanceName -and
($_.server.name) -eq $env:computername
}
# Inspect it first
$serviceInstance | Select Server, Status, Id
# Then delete it
$serviceInstance.Unprovision()
$serviceInstance.Delete()
4/ Re-add the cache service
Add-SPDistributedCacheServiceInstance
Then verify again:
Get-SPCacheHost
Get-SPServiceInstance | Where-Object { $_.TypeName -eq "Distributed Cache" }
I hope this provides additional direction.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.