This article provides information on renaming a Datastore even if virtual machine workloads are running on it; This also covers the multiwriter Cluster-in-a-box scenario.
This article does not apply to vSAN.
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
4.2) Run command to rename Datastore:
vim-cmd hostsvc/datastore/rename OldDatastoreName NewDatastoreName