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
- 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