This tutorial aims to enable you to make use of the local ssd ephemeral storage provided as an alternative to the default distributed ephemeral storage in SysEleven Stack.
There are two ways to achieve this goal and we show both, beginning with the quickest one.
You will be working with the heat examples repository on Github. Your first step is to clone it:
git clone https://github.com/syseleven/heat-examples cd heat-examples/single-server-on-local-storage
Now you can create the example stack for local ssd storage:
openstack stack create -t example.yaml local-storage-example-stack -e example-env.yaml --parameter key_name=<ssh key name> --wait
In this command,
key_name references an SSH-Key that you created in the SSH Tutorial.
You have now created a very basic server with its ephemeral storage on local ssd.
You can use any other tutorial or heat-example and modify it to use local ssd storage instead of distributed storage.
That does not always make sense, since not all workloads profit from local ssd storage, but it is in principle possible.
Just follow the instructions to the point right before
openstack stack create gets executed.
Edit the stack file(s) and substitute the
m1.* flavor with the correspondig
If you then continue to create the stack, the server(s) will be created using local ssd storage as ephemeral storage.
This does not apply to attached volumes, that will continue to use distributed storage.
See our Background article about Local SSD Storage for more information about the implications of using local ssd storage.
You now have created a basic server with local ssd storage and learned, how to modify other tutorials to make use of local ssd storage.
You should now be able to do anything you were able to do with distributed storage, with local storage as well.