Explore Kartoza

Try searching for: QGIS, Training, GeoNode, PostGIS

Mounting a Storage Drive in Hetzner Cloud for Rancher Deployments
Back to Blog
Hosting Docker
April 11, 2019 Admire Nyakudya

Mounting a Storage Drive in Hetzner Cloud for Rancher Deployments

This article builds upon an earlier blog post by Tim Sutton on using-a-sambacifs-mount-as-a-docker-volume.

Mounting a Storage Drive in Hetzner Cloud for Rancher Deployments

Hosting

Mounting Storage Drives for Rancher

The article expands on a previous discussion regarding storage driver implementations. Key changes since the earlier post include Hetzner’s introduction of cloud storage comparable to Amazon S3.

Problem Statement

The deployment utilizes docker-geoserver, docker-postgis, and docker-sftp-backup through Rancher orchestration. These services require substantial storage due to GeoServer’s data directory containing raster images.

Storage Calculation Metrics

VariableNumber to KeepTotal Size
Daily backups220 GB
Monthly backups660 GB
Yearly backups110 GB

These calculations assumed individual backups of approximately 8GB, potentially growing to 10GB.

Setup Steps

  1. Log into hosting provider (hetzner.de)
  2. Navigate to volumes section for your server
  3. Select appropriate storage size
  4. Attach storage driver to server instance
  5. Reset root password for console access
  6. Login via console
  7. Access attached volume configuration
  8. Execute:
    sudo mkfs.ext4 -F /dev/disk/by-id/scsi-0HC_Volume_2339452
    
  9. Navigate to Rancher and upgrade container
  10. Set mount point to /mtn/HC_Volume_2339452:/backups (Hetzner mounts to /mnt/HC_Volume_unique_number)

Want to Learn More?

Explore our training courses or get in touch to discuss how we can help your organization.