Provision Storage for MongoDB

 

Goal

 

This workflow provisions the storage for MongoDB servers.

 

Prerequisites

 

1.       You must have executed the following workflows:

·         Add a MongoDB Host to Data Center Group

·         Add Storage Controller Details to Data Center Group

2.       Ensure that the minimum number of replicasets and shards are available in the Data Center Group.

 

User Inputs

To execute this workflow, provide the required information in the MongoDB Cluster Details field.

 

1.     MongoDB Cluster Details

·         MongoDB Scaling Technology* [Mandatory]: From the drop-down menu, you can either select ReplicaSet or Sharding.

 

·         Number of Shard(s)* [Mandatory]: Type the number of shards to be created.

·         Size of Each Member in a Replica Set/Shard (in GB)* [Mandatory]: Type the size of each replicaset per shard to be created.

·         Replication Factor* [Mandatory]: Type the number of replica servers per shard or replica.

·         Replica Set/Shard Name: Type the name of the replicaset or shard.

·         Protocol Type* [Mandatory]: From the drop-down menu, you can select either iSCSI or FC for provisioning the storage to the MongoDB host.

 

 

·         Primary Server(s) of Replica Set (s)/Shard(s)* [Mandatory]: From the drop-down menu, you can select primary servers of replicaset per shard.

 

Note: The drop-down menu shows the Data Center Group, Host Name, Host IP, Host Type, Controller’s Primary Address, SVM Name, SVM IP, Added Aggregate, Available Size (in GB), and SVM Data LIF.

 

·         Secondary Server(s) of ReplicaSet (s)/Shard(s)* [Mandatory]: From the drop-down menu, you can select secondary servers of replicaset per shard.

 

Note: The drop-down menu shows the Data Center Group, Host Name, Host IP, Host Type, Controller’s Primary Address, SVM Name, SVM IP, Added Aggregate, Available Size (in GB), and SVM Data LIF.

 

For Sharding Server, in the ‘Primary Server(s) of Replica Set (s)/Shard(s)’ field, the host selection in the primary and secondary list is based on the input provided for ‘Number of Shard’ and ‘Replication Factor’ fields.

For an example, if ‘Number of Shards’ = 2 and ‘Replication Factor’ = 3, then select two primary servers and four secondary servers from the list.

For Replica Server, in the ‘Primary Server(s) of Replica Set (s)/Shard(s)’ field, the host selection in the primary and secondary is based on the input provided for ‘Replication Factor’ field.

For an example, if ‘Replication Factor’ = 3, then select one primary server and two secondary servers from the list.

Note: If you select the arbiter from the secondary server, then the workflow does not provision the storage for the arbiter server as it acts as a configuration server.

Result

This workflow results in storage provisioning for the selected hosts.