Elastic Volume Service (EVS)
EVS is flexible disk provisioning for Elastic Cloud Server (EVS). Use this for production deployments where needed, so that the disk space can flexibly expanded. This prevents the need for compute migrations that cause more overhead.
EVS Setup
- Go to the EVS portal
- "Create disk"
- Choose the region of your destination server (for optimal performance)
- Choose "General Purpose SSD"
- Choose somewhere between 10-25GB
- Encrypt the volume according to the threat model (if unknown,
evs/default
) - Optional: Add informative tags (for example,
libscie=sso
) - Give an informative name (for example,
org.libscie.git
for the service onhttps://git.libscie.org
)
We recommend using one EVS per production service, to allow for compartmentalization of disks per service. Services may be on the same server at this time, but that is not a guarantee it will remain so.
Note that disk space can be expanded at any time in the future, so if you are unsure about your needs, pick 25GB to start.
Attaching EVS to ECS
Upon creation of your EVS, it will need to be attached to be useful.useful (see also OTC docs). If you created an EVS during the server creation, it will already be attached!
Conceptually, you will partition, format, and attach the disk.
Partitioning
- SSH into the server
- Run
fdisk -l
orlsblk
to identify the newly attached drive - Run
fdisk /dev/vdb
(double check the drive with results from step 2) to start formatting the disk - Return
n
to initialize the formatting - Return
p
to setup one primary partition - Take the default values for the next three steps (that is, press
Enter
three times) - Optional: Check the partitions by returning
p
- Return
w
to write partitions to disk
Formatting
- Run
partprobe
- Run
mkfs -t ext4 /dev/vdb1
(double check theext4
and/dev/vdb1
for your scenario)
Attaching (aka "mounting")
- Identify the path where you want the disk to be attached (for example,
/mnt/evs-disk
) - Run
mount /dev/vdb1 /mnt/evs-disk
(replacing the disk and attachment path)
This attaches the drive until the server is rebooted.
Attaching the disk upon boot
- Find the UUID for the disk
blkid /dev/vdb1
/dev/vdb1: UUID="905943cb-c59b-401d-b686-22e0c1131869" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="fae0084f-01"
- Open the config file:
nano /etc/fstab
- Add a new line with the specific mount information, for example
UUID=905943cb-c59b-401d-b686-22e0c1131869 /mnt/evs-disk ext4 defaults 0 2
- Unattach the manually attached drive:
umount /dev/vdb1
- Reload the
fstab
config - runsystemctl daemon-reload
- Check your disk is attached