Rackspace Cloudvent Calendar Day 12: Need More Space? Add Cloud Block Storage

In the spirit of the holiday season, I’m sharing some tips and features of our cloud that you may not know about. In this countdown I’ll have 24 posts for you, each covering a single topic or feature about Rackspace Cloud products. We’ll post one per day so keep checking back!

Even though the largest Cloud Server we offer tops out at 1.2TB of disk, for some workloads you don’t need the extra RAM and CPU (or cost) that come along with such a large box.  You can take a smaller server and add storage to it using Cloud Block Storage.  Up to 10 TB of storage or 50 volumes can be used per region, and each server can have up to 14 volumes. You can create and manage Cloud Block Storage volumes through the Control Panel or the API. To create a volume via the API, save some JSON and send it in a POST. In this example, we’re creating a 100GB SATA volume:

    "volume": {
        "display_name": "vol-001",
        "display_description": "Another volume.",
        "size": 100,
        "volume_type": "SATA",

curl –s –X POST –d block.json –H “Content-type: application/json” –H “X-Auth-Token: $TOKEN” https://ord.blockstorage.api.rackspacecloud.com/v1/1234/volumes

Next, attach it to your Cloud Server. You will need the UUID of the server and the volume. Again, save some JSON for your request:


curl –s –X POST –d attach.json –H “Content-type: application/json” –H “X-Auth-Token: $TOKEN” https://ord.servers.api.rackspacecloud.com/v2/1234/servers/SERVER_ID/os-volume_attachments

Setting the device to “null” will auto-assign the disk presented to your operating system. More information on creating and managing volumes is available in our Knowledge Center.


Please enter your comment!
Please enter your name here