{"id":170746,"date":"2021-02-04T17:00:21","date_gmt":"2021-02-04T14:00:21","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/"},"modified":"2021-02-04T17:00:21","modified_gmt":"2021-02-04T14:00:21","slug":"how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/","title":{"rendered":"#How to Attach Extra Storage to Your DigitalOcean Droplets \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2f5bcf9be95\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2f5bcf9be95\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Attaching_a_Block_Storage_Volume\" >Attaching a Block Storage Volume<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Formatting_and_Mounting_Volumes\" >Formatting and Mounting Volumes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Using_Your_Volume\" >Using Your Volume<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Managing_Your_Volumes\" >Managing Your Volumes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Volume_Backups\" >Volume Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-attach-extra-storage-to-your-digitalocean-droplets-cloudsavvy-it\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Attach Extra Storage to Your DigitalOcean Droplets \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5322 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/88746de0fac00d6fcbee4f2a1c813c9e\/p\/uploads\/2020\/01\/4d4b63f7.png\" alt=\"Digital Ocean logo\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>DigitalOcean droplets come with a limited amount of SSD storage. Here\u2019s how you can add more disk capacity without breaking the bank, using DigitalOcean\u2019s dedicated storage solution.<\/p>\n<p>Before we continue, you should check whether resizing your droplet might be an alternative option. Switching to a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/pricing\/\">larger droplet type<\/a> can get you more storage space as well as a bump in CPU and RAM. This can be ideal if you\u2019re in need of all three now but don\u2019t expect your storage requirements to grow much further in the near future.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9175\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/7107e742468aa054301b49b8bbe7e6ad\/p\/uploads\/2021\/01\/e1cc5a18.jpg\" alt=\"\" width=\"1027\" height=\"537\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can resize droplets in the DigitalOcean control panel by selecting your droplet and then clicking \u201cResize\u201d. Choose \u201cDisk, CPU and RAM\u201d and then select the plan to upgrade to. You will need to shut your droplet down while the change is <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>lied. Resizes involving disk capacity cannot be reversed.<\/p>\n<h2 id=\"attaching-a-block-storage-volume\"><span class=\"ez-toc-section\" id=\"Attaching_a_Block_Storage_Volume\"><\/span>Attaching a Block Storage Volume<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Droplet resizes aside, DigitalOcean\u2019s Block Storage Volumes are the simplest way to add extra storage to your servers. Volumes are SSD-driven storage units. When you add a volume to a droplet, it\u2019s akin to connecting a physical removable drive.<\/p>\n<p>The droplet will now have two storage systems available \u2013 its regular SSD and the newly created volume. You define the capacity of each volume, allowing you to tailor your storage solution. Pricing is a fixed $0.10 per GB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9176\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/df1521c2ad9ef90dbbe394b0a6f29f72\/p\/uploads\/2021\/01\/5bb4e838.jpg\" alt=\"\" width=\"1268\" height=\"658\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can create a volume by logging into the DigitalOcean control panel and clicking the \u201cVolumes\u201d link in the left sidebar. Click the blue \u201cCreate Volume\u201d button at the top-right of the screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9177\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/602953733380537c8cb4f92b73598ac5\/p\/uploads\/2021\/01\/5ba68e77.jpg\" alt=\"\" width=\"761\" height=\"738\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Begin by specifying the volume size to create. Use one of the prefilled defaults or click \u201cEnter size in GB\u201d to customise. Next, name your volume and select the droplet you\u2019d like to attach it to.<\/p>\n<h2 id=\"formatting-and-mounting-volumes\"><span class=\"ez-toc-section\" id=\"Formatting_and_Mounting_Volumes\"><\/span>Formatting and Mounting Volumes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You\u2019ll now need to choose how to mount your volume. Most of the time, \u201cAutomatically Format &amp; Mount\u201d will get you setup with sane defaults. When this option is selected, DigitalOcean will create a formatted volume, attach it to your droplet and then mount it into the filesystem. You\u2019re able to choose the mount point after you click \u201cCreate Volume\u201d. DigitalOcean supports the Ext4 and XFS filesystems. Ext4 is usually the best choice, although XFS is preferred for Red Hat systems.<\/p>\n<p>Choose the \u201cManually Format &amp; Mount\u201d option if you need a different filesystem. This will also give you more control over the mounting configuration as you\u2019ll need to set it up yourself, within your droplet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9178\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/b5e7179f4b9d3a540c943cb0931e4333\/p\/uploads\/2021\/01\/54d52432.jpg\" alt=\"\" width=\"756\" height=\"254\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can use the following command to mount a volume to <code>\/mnt\/example-mount<\/code>:<\/p>\n<pre>mount -o defaults,nofail,discard,noatime \/dev\/sda \/mnt\/example-mount<\/pre>\n<p>We\u2019re assuming our volume is assigned the <code>sda<\/code> device identifier. This will usually be true of the first volume you attach to a DigitalOcean droplet. The mounting options we supply are taken from DigitalOcean\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/volumes\/how-to\/mount\/\">recommended approach<\/a> to mounting volumes.<\/p>\n<h2 id=\"using-your-volume\"><span class=\"ez-toc-section\" id=\"Using_Your_Volume\"><\/span>Using Your Volume<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once attached, formatted and mounted, volumes become just another filesystem location on your droplet. You can copy files onto your volume with commands such as <code>cp example-file.txt \/mnt\/example-volume\/example-file.txt<\/code> \u2013 substitute in the path you mounted your volume to.<\/p>\n<p>This is no different to using any other form of mountable storage device. Anything saved within the mount location will get stored to the volume. The remainder of your droplet\u2019s filesystem remains on its dedicated SSD as usual.<\/p>\n<p>To check the disk space remaining on your droplet and volume, use the <code>df -h<\/code> command. The line with a mount point of <code>\/<\/code> represents your droplet\u2019s SSD. Your volume\u2019s mount point will be listed too, allowing you to see how much capacity you\u2019ve got remaining.<\/p>\n<h2 id=\"managing-your-volumes\"><span class=\"ez-toc-section\" id=\"Managing_Your_Volumes\"><\/span>Managing Your Volumes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Volumes can only be attached to one droplet at a time. It is possible to reconnect to a different droplet at any point. This is useful if you\u2019ve moving resources between droplets or decommissioning one in favour of another.<\/p>\n<p>Use the Volumes page in the Control Panel to find your volume. Hover over the name of the droplet it\u2019s connected to and click \u201cEdit\u201d. You can now choose a new droplet to mount the volume to.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9179\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/00d974d83b2a2816e1bb83e4e99f0788\/p\/uploads\/2021\/01\/bd6b40da.jpg\" alt=\"\" width=\"1029\" height=\"450\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Volumes are resized by clicking the \u201cMore\u201d button to the right of the table. Choose \u201cIncrease size\u201d and select the new capacity to use. Volumes can only ever be resized upwards so the change will not be reversible.<\/p>\n<h2 id=\"volume-backups\"><span class=\"ez-toc-section\" id=\"Volume_Backups\"><\/span>Volume Backups<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Volumes support DigitalOcean\u2019s Snapshots system for backups. This mechanism lets you save a complete disk image into your DigitalOcean account.<\/p>\n<p>Click the \u201cMore\u201d button next to any volume and click \u201cTake snapshot\u201d. Use the dialog to name your snapshot and then press \u201cTake Snapshot\u201d to confirm. The process may take several minutes to complete. Larger droplets will require much more time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9180\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/7652d6227306899bc3abf783f166e130\/p\/uploads\/2021\/01\/befadf3d.jpg\" alt=\"\" width=\"1030\" height=\"392\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can use snapshots to recover your data at any future time. Click the \u201cImages\u201d link in the sidebar and find the snapshot you want to use. You can restore the snapshot to the volume it originated from or create a new volume with the snapshot as its base.<\/p>\n<p>Snapshots you create are stored in perpetutity in your account. They\u2019re billed at $0.05\/GB\/mo. You only pay for the data within each snapshot, not the size of the volume it originated from.<\/p>\n<h2 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>DigitalOcean\u2019s Volumes allow you to easily add more storage to an existing droplet. The automated formatting and mounting process makes setup an extremely straightforward process.<\/p>\n<p>Volumes aren\u2019t the only approach to gaining more disk capacity. Depending on your requirements, DigitalOcean Spaces might be a viable alternative. It\u2019s a remote object storage system akin to Amazon S3. Spaces is much more affordable when storing large volumes of data \u2013 $5\/mo for 250GB \u2013 but does not directly connect to your droplet\u2019s filesystem. It has to be accessed over HTTP so it\u2019s best used for static assets and long-term archives.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/9173\/how-to-attach-extra-storage-to-your-digitalocean-droplets\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Attach Extra Storage to Your DigitalOcean Droplets \u2013 CloudSavvy IT&#8221; DigitalOcean droplets come with a limited amount of SSD storage. Here\u2019s how you can add more disk capacity without breaking the bank, using DigitalOcean\u2019s dedicated storage solution. Before we continue, you should check whether resizing your droplet might be an alternative option. Switching&#8230;<\/p>\n","protected":false},"author":1,"featured_media":170747,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/01\/4d4b63f7.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-170746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/170746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=170746"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/170746\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/170747"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=170746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=170746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=170746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}