0 Replies Latest reply on Aug 14, 2019 9:28 AM by DavidGee

    automating vRealize Operations Multi-node analytics cluster failover

    DavidGee Lurker

      first off i should say I'm new to working with SRM, I'm currently in the process of configuring an SRM recovery plan for a 4 node (master, replicate and two data node) vROPS analytics cluster.


      I am currently using the below to automate the changes to the IP config on each of the appliances / nodes

      /opt/vmware/share/vami/vami_set_network eth0 STATICV4 xx.xx.xx.xx xx.xx.xx.xx && reboot


      Then using the details in https://docs.vmware.com/en/vRealize-Suite/7.0/com.vmware.vrsuite.srm.doc/GUID-F3CC4642-4F89-4249-8C56-D676B1015DED.html


      I know i then need to make the following changes on the vm once its started to be recovered on the dr site:


      $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --action bringSliceOffline --offlineReason "SRM Failover"
      service vmware-casa stop
      ##Need to automate changes to $VCOPS_BASE/user/conf/cassandra/cassandra.yaml 
      service vmware-casa start 
      $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --adminCS xx.xx.xx.xx, xx.xx.xx.xx
      $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --action bringSliceOnline


      What i am struggling with is how to pass these commands through to the vm from SRM itself and in particular how best to deal with the cassandara yaml updates.


      i am hoping this has been dealt with plenty of times previously and that someone can point me in the right direct.