Today I tried to rename the local datastore on some esx 3.0.2 systems. Because I need a script to do this on many servers, I'm looking for a command on the cli (bash). I've some commands:
vimsh -n -e "/hostsvc/datastore/rename oldname newname"
ln -sf /vmfs/volumes/target /vmfs/volumes/newname && rm /vmfs/volumes/oldname
mv /vmfs/volumes/oldname /vmfs/volumes/newname
vimsh produces no error, but nothing really happens. The same for ln. Calling mv to rename the link, I've got a message saying "... Function not implemented".
Any suggestions?
Annotation:I tried everything as root, no virtual machines were running and the server was in maintenance mode. To rename the datastore with vi-client was possible.