Managing Block Storage Scheduling

Administrators have control over which volume back end your volumes reside on. You can specify affinity or anti-affinity between two volumes. Affinity between volumes means that they are stored on the same back end, whereas anti-affinity means that they are stored on different back ends.

You can create the following volumes:

  • Create a new volume on the same back end as Volume_A:

      $ openstack volume create --hint same_host=<VOLUME_A_ID> <SIZE> <NEW_VOLUME_NAME>
    
  • Create a new volume on a different back end than Volume_A:

      $ openstack volume create --hint different_host=<VOLUME_A_ID> <SIZE> <NEW_VOLUME_NAME>
    
  • Create a new volume on the same back end as Volume_A and Volume_B:

      $ openstack volume create --hint same_host=<VOLUME_A_ID> <SIZE> <NEW_VOLUME_NAME> --hint same_host=<VOLUME_B_ID> <SIZE> <NEW_VOLUME_NAME>
    
  • Create a new volume on a different back end than both Volume_A and Volume_B:

      $ openstack volume create --hint different_host=<VOLUME_A_ID> <SIZE> <NEW_VOLUME_NAME> --hint different_host=<VOLUME_B_ID> <SIZE> <NEW_VOLUME_NAME>