Instructions for Mounting Permanent Storage
By Riccardo Murri
It is possible to attach permanent disk space to Elasticluster, but at the moment it’s still a manual process. It usually goes like this:
- Create cluster
- Create volume
- Attach volume to cluster frontend (OpenStack has an “attach” command, other clouds might use a different term)
- (First time only) Find out what device name the volume has gotten in
Linux (e.g.
/dev/vdb
– it can usually be seen by runningsudo dmesg | tail
) - (First time only) Format the volume::
mkfs.ext4 -L /myvolume /dev/vdb
- (First time only) Define volume mount in
/etc/fstab
::# add this line to /etc/fstab LABEL=/myvolume /myvolume ext4 defaults 0 0
- Mount the volume::
sudo mkdir -pv /myvolume sudo mount /myvolume
If you do not want the volume to be automatically mounted after a reboot, replace
defaults
withdefaults,noauto
in the/etc/fstab
line at step 6.