Support: 1-800-961-4454
1-800-961-2888

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:

{
   "volumeAttachment":{
      "device":null,
      "volumeId":"4ab50df6-7480-45df-8604-b1ee39fe857c"
   }
}

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.

About the Author

This is a post written and contributed by Hart Hoover.

Hart Hoover is a Cloud Strategist at Rackspace Hosting. Hoover started his career as a Racker in 2007 as a Linux Systems Administrator, providing technical support for dedicated servers. He moved to the cloud in 2009 to help design the Managed Cloud Servers support model. He has presented at various technical conferences, maintains and contributes to the Rackspace DevOps Blog, and advises Rackspace customers on best practices for cloud computing.


More
Racker Powered
©2014 Rackspace, US Inc.