This article provides information on renaming a Datastore even if VMs are running on it.
This article does not apply to vSAN.
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
4.2) Runn command to rename Datastore:
vim-cmd hostsvc/datastore/rename OldDatastoreName NewDatastoreName