Block Storage

Block Storage subscription active
You will receive email notifications for new publications on Block Storage.
191 Results
  • Question

    What's the difference between Disk and Block Storage

    So I'm setting up a cluster on DOKS and I see that I have a total cluster capacity of 180 GB Disk Capacity, however, underneath my monthly projected cost I see this message: "This price does not include load balancer ...
    Accepted Answer: Hi there @ominibyte, There is actually a difference, the block storage is used for Persistent Volume Claims, you can take a look at the documentation on how to do that: https://www.digitalocean.com/docs/kubernetes/how...
    2 By ominibyte DigitalOcean Managed Kubernetes Kubernetes Block Storage
  • Question

    How to set permissions on boot for a Volume

    Hi, I've managed to set up a volume and attached it to my droplet in the storage folder of my project. On boot this is done by fstab by the following line. /dev/disk/by-id/scsi-0DOVolumevolume-ams3-01 /path/to/mount-p...
    Accepted Answer: Hey There, What I can suggest is the following: Create a scriptfile with touch scriptfile Add the following to it: #!/bin/bash sudo chown -R forge:forge /path/to/mount-point Execute the following commands: chmod +x...
    1 By jandante Ubuntu 20.04 Block Storage
  • Question

    Mysql Crashes when server is reboot

    log 1 ``` 2020-06-17T15:55:14.199344Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicitdefaultsfortimestamp server option (see documentation for more details). 2020-06-17T15:55:14....
    Accepted Answer: Hi @csselo, Both logs don't seem to provide the full information on which can act upon. I can only see it's failed with status 1 which is usually the code on generic errors. Anyway, what I'll recommend is to recreate ...
    1 By csselo MySQL Block Storage
  • Question

    How to increase disk storage in same droplet?

    I've increased my disk storage. But my storage shows in a different folder in filesystem. Previously my disk storage was 49 GB. Now increased another 30 GB. Previous 49 GB shows in /dev/vda1 location and new 30GB show...
    Accepted Answer: Hi there @amanullah, It looks like you have added block storage rather than increasing the disk space of your Droplet. You could do a couple of things in this case: You could either move some of your files from the /d...
    1 By amanullah Storage Block Storage Ubuntu 18.04
  • Question

    How to mount DigitalOcean Spaces on droplets with s3fs

    I've recently got asked how to mount a space on a droplet and I would like to create a separate question here in the community where everyone can share their ideas and valuable information.
    Accepted Answer: Hello, @TsungyingChen You can mount a DigitalOcean space on your droplet and use it for storage of some of you data. In general, object storage solutions like Spaces are not meant to be accessed like a file system. T...
    1 By alexdo DigitalOcean Spaces Block Storage
  • Question

    How to mount block storage volume to the Upload directory of my WordPress Website?

    I have purchased a block storage volume, now I want to mount it on the WordPress "Upload" directory of my Website. I have already tried many methods to mount it, but nothing works for me. Hope, you will able to answer...
    Accepted Answer: Hello, @hindimagictricks You can follow this tutorial on how to mount volumes: https://www.digitalocean.com/docs/volumes/how-to/mount/ It is suggested to keep the uploads folder within your document root. So either m...
    1 By VijayGoswami Block Storage
  • Question

    ACL on a block storage volume

    Can I use ACL on a storage volume. My volume name is: /dev/disk/by-id/scsi-0DOVolumevolume-sfo2-01 so I plan to change my fstab to: /dev/disk/by-id/scsi-0DOVolumevolume-sfo2-01 /mnt/nfs ext4 defaults,nofail,discard,a...
    Accepted Answer: I tested this on a new droplet and volume and it seemed to work just fine.
    1 By Daxcor Block Storage
  • Question

    How to Attach DigitalOcean Block Storage to Docker container?

    Hi all, Does anyone know if it is possible to mount a DigitalOcean block storage to a docker container and if so what is the best way to do so? Thanks!
    Accepted Answer: Hello, The last time I had to do that I used the REX-Ray storage plugin. It officially comes with DigitalOcean Block Storage support. I'll try to walk you through the whole process here: Prerequisites: You need a Digi...
    1 By bitmap Docker Block Storage Linux Basics
  • Question

    Inode limit, how to increase inode limit on block storage volume?

    I've successfully added a 100gb block storage volume to my droplet, which was originally added to store a few million .json files and a few million image files. The issue I am noticing at the moment is that after the ...
    Accepted Answer: How small/large are these files? You can set the number of inodes at format-time of the block storage. It can be as high as 4 billion inodes. So partition the new the block storage as ext4 with parted then format it w...
    1 By meloku Block Storage DigitalOcean Linux Commands Storage Ubuntu 18.04
  • Question

    What's the best way to create a droplet with block storage using Terraform and Ansible?

    Hi I'm in the process of automating my infrastructure on DO. I have all droplets and volumes created using terraform, and I'm also using user data during the provisioning for things like defining base packages, creati...
    Accepted Answer: Your approach to using Terraform for provisioning infrastructure and Ansible for config management is the right way to think about it. Luckily Terraform should be able to do what you'd like. Pre-formatted volumes crea...
    1 By bytencode Ansible Terraform Block Storage Ubuntu 18.04
  • Question

    Droplet "native" storage: is it encrypted similarly to Block Storage Volumes?

    Droplet "native" storage: is it encrypted similarly to Block Storage Volumes? Excerpt from https://www.digitalocean.com/docs/volumes/overview/ : "Encryption: Volumes are encrypted using the LUKS (Linux Unified Key Set...
    Accepted Answer: Hi there @johnnyutahh / @johnnyutahh1, We do not encrypt Droplet disks in the same way as Block Storage volumes as you described. However, you could employ LUKS encryption or other forms of encryption on your Droplet'...
    2 By johnnyutahh1 DigitalOcean Block Storage Security
  • Question

    Wordpress Multisite using block-storage for /uploads

    I have my Wordpress multisite installed in /var/www/example.com/u/ I created a block-storage called storage and it is mounted under /mnt/storage/, this contains a folder called /uploads. In my Wordpress wp-config.php ...
    Accepted Answer: Hello, I would recommend first copying your current uploads folder to your new location: cp -r /var/www/example.com/u/wp-content/uploads/* /mnt/storage/uploads That way you would make sure that your existing images ...
    1 By jockebq WordPress Block Storage
  • Question

    Unable to Move MySQL DB Location - Ubuntu 18.04.3 (LTS) x64

    I followed the steps below exactly and the MySQL service will not start. This is a new Droplet with NO pre-existing data. Reference:: https://www.digitalocean.com/community/tutorials/how-to-move-a-mysql-data-directo...
    Accepted Answer: Nevermind. It seems I can't read... The KB works.
    2 By MattyBob Storage MySQL Databases Block Storage Ubuntu 18.04
  • Question

    Configuring Volumes

    In the configure volume tutorial when you create a volume for a droplet it says to create then mount my volume to /mnt/volume_tor1_01 can this be any other directory that still does not exist like if I wanted it to be...
    Accepted Answer: Hello, Yes you can change the /mnt/volume_tor1_01 with another directory. So in the steps that you've provided just change /mnt/volume_tor1_01 to /home/example: ``` Create a mount point for your volume: $ mkdir -p /h...
    1 By DARG367 Block Storage Ubuntu
  • Question

    Migrating to a Scalable Wordpress Solution

    TLDR; I want to manage and configure multiple LEMP stacks with Terraform and Chef/Ansible to host WordPress sites without losing the data when a droplet is destroyed. Here are the questions that I am looking to have a...
    Accepted Answer: (Some mistakes were made in this reply, see comments that follow it) Hello friend! That sounds like a lot of fun any way you spin it. I'm going to do my best to provide answers to what I can, and hope that others feel...
    2 By KnowIsPow WordPress Nginx Chef Terraform Docker MySQL Block Storage Ubuntu
  • Question

    i've auto added a 100gb volume to my droplet for storage, how do i save and retrieve files from the volume, what path would i use?

    apologies for the novice question. I am a beginner at all of this. I've been working on an app using the laravel framework with forge/digitalocean, and came to realize I needed much larger storage. After some research...
    Accepted Answer: Hey friend, Great question! I don't really use larvel myself but this should be a generic Linux question regardless of that, but just know that this is where I come from when answering it. Let's say your Laravel proje...
    1 By meloku Block Storage Automated Setups DigitalOcean Getting Started PHP PHP Frameworks Ubuntu 18.04
  • Question

    Moving wp-content to block storage volume

    Because I'm running out of space, I'm trying to move my wp-content folder to a block storage volume. (from /var/www/html/ to /mnt/folder) I tried creating a symlink from the wp-content to the new wp-content folder b...
    Accepted Answer: @jtittle I'm not sure if you'll agree with this - please alert @joostvanhoutte if not @joostvanhoutte I don't think DO has an option like that, since that's what BS is there for. First things first. Take a snapshot f...
    4 By joostvanhoutte WordPress Block Storage Ubuntu
  • Question

    Why does my partitioned volume return lost+found

    I am trying to understand why my attempts to mount DO's block storage device to docker's /var/lib/docker dir results in lost+found. First, Terraform is used to provision a digital ocean droplet and attach a volume to ...
    Accepted Answer: The lost+found directory is used by file system check tools (fsck). When a system crashes and there is some inconsistency, fsck might be able to (partially) recover lost information (files or directories). It might no...
    2 By petesabs Block Storage Conceptual Docker Ubuntu 18.04
  • Question

    Which is better for Nextcloud for performance and reliability: Spaces or Block Storage

    I need to store ~100GB of data in the cloud using Nextcloud. Would Spaces or Block Storage be best from a performance and reliability perspective?
    Accepted Answer: https://www.digitalocean.com/community/tutorials/object-storage-vs-block-storage-services
    1 By ashgoodman Applications Block Storage Object Storage Ubuntu 18.04
  • Question

    Attach volume to preexisting directory

    Can volumes be attached to a preexisting directory? Currently, I have 10GB volume in TOR1 and my server also being in TOR1 and I'm trying to add more space to my existing directory which is /home/srcds is there a way ...
    Accepted Answer: Hey friend! Great question. The directory will need to be empty in order to mount it there, but this may not be so bad. This is basically what I would do: mv /home/srcds /home/srcds2 mkdir /home/srcds mount /dev/sda ...
    1 By DARG367 Block Storage Ubuntu 18.04