Public Cloud Services enables you to create an external storage device, known as a hard disk, and attach it to an instance. These devices are block-level storage and in this tutorial, we will cover how to purchase one for a public cloud project.
- Adding a Hard Disk
Adding a Hard Disk
Let's begin by logging into the OVH US Manager. From here, select the Cloud tab in the top-left corner of the page. Next, select your public cloud project in the left-hand column. In our example, it's labeled "OVH Example - Public Cloud". Now select the Additional drives tab from the top menu. Lastly, click the Add button.
The pop-up window allows us to select the type of disk we want (classic HDD or high-performance SSD). An SSD (solid-state drive) will yield much better performance (i.e., read/write speed) than a classic HDD (hard disk drive), but it cost significantly more. Other changes we can make include; the amount of storage we want for the drive, the data center where the drive will be located, and if we can boot an operating system from the device.
In our example, we chose the 100 GiB HDD option. Choose your specifications and click the Add button. After confirming your selections, you will have a detached hard disk.
The next step is to attach it to our desired instance (i.e., a virtual server). Click the drop-down next to your hard disk and select the Attach it to a server option. Next, select the instance you desire the hard disk to be attached to.
We have now successfully added a hard drive to an instance. In order to use the storage, the device needs to be formatted. For information on how to do that, please check out our How to Format a Hard Disk article with instructions for Linux and Windows.
Adding an external hard drive gives you the flexibility to detach and end instances while still retaining important data. Having the ability to save important files or just create a bit of extra storage is a great asset. Having read this article, you should be able to confidently purchase a hard drive.