Wiki Mint SystemWiki Mint System
Home
Glossary
Mint System
Chat
GitHub
Home
Glossary
Mint System
Chat
GitHub
  • Exoscale - Extend disk space

    • Create block storage
      • Mount block storage
    • Mount block storage with Ansible

Exoscale - Extend disk space

Create block storage

  • Login into Exoscale
  • Got to Compute > Block Storage
  • Create a new entry in the same zone as the server
  • Add a label name with value $ALIAS.mint-system.com
  • Attach it to the server
  • Get disk path from /dev/disk/by-id/$DISK_ID
  • Format the disk sudo mkfs.ext4 /dev/vdb

Mount block storage

  • Create a mount point
sudo mkdir -p /mnt/sdb
  • Mount the disk
sudo mount /dev/vdb /mnt/sdb
  • Add /etc/fstab entry:
/dev/vdb /mnt/sdb ext4 discard,nofail,defaults 0 0

Mount block storage with Ansible

  • In Ansible create a fstab entry:
fstab_mounts:
  - path: /mnt/sdb
    src: /dev/disk/by-id/$DISK_ID
    opts: discard,nofail,defaults
    state: mounted
    fstype: ext4
  • Mount the fstab:
aplaybook -i inventories/setup/ plays/setup.yml -t fstab -l $ALIAS

Backlinks:

🔗 Exoscale

📝 Edit on GitHub

This page is maintained by Mint System GmbH