Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create the first volume. This example creates a 2GB volume called "vol_01": 

    Code Block
    $ cinder --os-volume-api-version 23 create --display-name vol_01 2


  2. Note the UUID of the new "vol_01".

  3. Create the second volume. This uses a scheduling "hint" that will place the volume on any storage server other than "vol_01": 

    Code Block
    $ cinder --os-volume-api-version 23 create --hint different_host=51824076-ff7e-469e-b373-b4b199fe32e9 --display-name vol_02 2


  4. Note the UUID of the new "vol_02".

  5. Create a third volume that will be placed on any storage server other than where "vol_01" and "vol_02" reside: 

    Code Block
    $ cinder --os-volume-api-version 23 create --hint different_host=51824076-ff7e-469e-b373-b4b199fe32e9 --hint different_host=b4a96d9d-b2c1-476f-a0cb-0c2f83cdb887 --display-name vol_03 2


  6. You may continue repeating these steps, but be aware that Volume Affinity is limited to only two "different_host" options.

...