Managing Elastic Block Storage (EBS) on Amazon AWS as KuberDock Persistent Storage

Navigation:  Installation > Installing KuberDock at Amazon Web Services >

Managing Elastic Block Storage (EBS) on Amazon AWS as KuberDock Persistent Storage

Previous pageReturn to chapter overviewNext page

Note. This feature is under development.

 

Note that it is possible to add EBS volumes during KuberDock deploy on Amazon AWS and they will be attached to all nodes in the future cluster.

 

EBS volume will be located in LVM kdstorage00 group of volumes. In this group a logical volume kdls00 formatted to xfs will be created, it will fill all EBS space.

 

Logical volumes are used for creating persistent storages for user containers.

 

To add one more EBS volume run the command on KuberDock master server:

 

python /var/opt/kuberdock/manage.py node-storage add-volume --hostname <node_hostname> [--size <size in GB>]

 

where:

 

python /var/opt/kuberdock/manage.py - execution of python script manage.py;

 

node-storage add volume - required parameters of the script;

 

--hostname <node_hostname> - option to specify hostname of the node new EBS volume will be attached to. Enter proper name in <node_hostname>;

 

--size <size> - size of EBS volume being added in GB. Enter number of GB in <size>.

 

For example:

 

python /var/opt/kuberdock/manage.py node-storage add-volume --hostname my.node.com --size 200

 

As a result 200 GB sized EBS volume will be created and attached to specified node. This volume will be added to LVM kdstorage00 group of nodes, logical volume and file system of kdls00 will be increased by 200 GB.

 

To get information on used space on EBS volumes run the command:

 

python /var/opt/kuberdock/manage.py node-storage get-info --hostname <node_hostname>

 

where:

 

python /var/opt/kuberdock/manage.py - execution of python script manage.py;

 

node-storage get-info - required parameters of the script;

 

--hostname <node_hostname> - option to specify hostname of the node, new ELB volume will be attached to. Enter proper value in <node_hostname>.