You can use the viocli update command to rename a datastore.The datastore specification varies depending on the service type.

To modify OpenStack parameters, you use the viocli update command. For more information, see viocli update Command.

Procedure

  1. Log in to the Integrated OpenStack Manager as the root user.
    ssh root@mgmt-server-ip
  2. List the resources for each service type.
    • For cinder, type: viocli get cinder.
    • For glance, type: viocli get glance.
    • For nova-compute, type: viocli get novacompute.
  3. Specify the resource to update. If a service type has multiple resources, include the name of the resource to update as in the nova-compute example.
    • For cinder, type: viocli update cinder.
    • For glance, type: viocli update glance.
    • For nova-compute, type: viocli update novacompute <name_of_resource>.
    The specified service configuration opens in a text editor.
  4. Change the name or regular expression to a value that matches the name of the datastore.
    • For cinder, change the value of the vmware_datastore_regex parameter.
    • For glance, change the value of the vmware_datastores parameter.
    • For nova-compute, change the values of the datastore_regex and the shared_datastore_regex parameters.
  5. Save the file, and quit the text editor.

Results

You have renamed a datastore in your OpenStack deployment.