Start a Conversation

Unsolved

This post is more than 5 years old

895

January 12th, 2016 00:00

Map volume to 1000 SDC clients

Hi,

I have a requirement to map a scaleio volume to 1000 odd SDCs. In such a scenario, I do not think using "scli --map_volume_to_sdc..." would be the preferable way - which will attract running the command 1000 times.

Is there an easier way, to e.g auto-map the volume to all registered SDCs, during the volume creation time itself ? So, that when the 1000 SDCs come up, register themselves to the scaleio MDM, can automatically see the volume ? Or any other way ?

Regards,

Sravan.

9 Posts

January 12th, 2016 07:00

scli is the way to go for such task.  You just run a "loop" which your "scli --map_volume_to_sdc...".  First, you need to create a text file with a list of all of your 1000 SDC clients's sdc_id, sdc_name, sdc_guid, or sdc_ip (depend on which one you prefer).  Let say you want to use sdc_ip, create the file with IP addresses of your 1000 SDC clients, one per line, call it SDC.Clients.IP.txt.  Now you're ready to do this:

for i in `cat SDC.Clients.IP.txt`; do

scli --map_volume_to_sdc (--volume_id | --volume_name ) --sdc_ip $i --allow_multi_map

done

That should do it.

5 Posts

January 17th, 2016 06:00

Thank you tanr. This helps.

No Events found!

Top