Here is an example of provisioning an OpenStack volume and mounting it to a VM.
Table of Contents |
---|
Create Volume
From an OpenStack UI, go to the Volumes tab and click the +Create Volume button to bring up the Create Volume page as shown below. Fill in the fields so that they match the screenshot below (choose your own Volume Name ):
...
# | Purpose | Command and Example | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Find the volume id | ls /dev/disk/by-id
| ||||||||||
2 | Convert to mkfs format | sudo mkfs.ext4 /dev/disk/by-id/<volumeId>
| ||||||||||
3 | Mount the volume as the /dockerdata-nfs directory | sudo mkdir -p /dockerdata-nfs sudo mount /dev/disk/by-id/virtio-274e55f0-314f-4197-a /dockerdata-nfs | ||||||||||
4 | Validate the mount |
|