You can quickly evacuate all volumes from a specified datastore, automatically migrating them to other datastores in the same datastore cluster.

Prerequisites

  • Verify that the specified datastore is part of a datastore cluster.
  • On the datastore cluster, enable Storage DRS and set it to No Automation (Manual Mode).
  • Detach all snapshots from all volumes on the datastore.

Procedure

  1. Log in to the Integrated OpenStack Manager as the root user.
    ssh root@mgmt-server-ip
  2. Prepare the volumes in the datastore for migration.
    viocli prepare datastore dc-name ds-name
    Option Description
    dc-name

    Enter the name of the data center that contains the desired datastore.

    ds-name

    Enter the name of the datastore.

  3. Place the datastore in maintenance mode.

    See Place a Datastore in Maintenance Mode in the vSphere Resource Management document.

Results

When you place the datastore in maintenance mode, the datastore is evacuated and the volumes automatically migrate to other datastores in the same datastore cluster.