Upgrading the Cloud services sensors

The sensors in earlier versions of the Cloud services are no longer valid in the 1.1.4 version. Therefore, you must change the sensors after upgrading to Cloud services version 1.1.4 from either 1.1.3.x or 1.1.2.x version as described below.

You must know which sensors are configured and active.

Perform the following steps to upgrade the sensors:
  1. Remove configuration of the old sensors by issuing the following commands:
    • mmperfmon config delete --sensors MCStoreGPFSStats
    • mmperfmon config delete --sensors MCStoreIcstoreStats
    • mmperfmon config delete --sensors MCStoreLWEStats
  2. Remove the old sensors files from the /opt/IBM/zimon folder of every Cloud services node:
    • rm MCStoreGPFSStats.cfg
    • rm MCStoreIcstoreStats.cfg
    • rm MCStoreLWEStats.cfg
      
  3. Copy the following sensor files from the /opt/ibm/MCStore/config/ folder to the /opt/IBM/zimon folder:
    • TCTDebugDbStats.cfg
    • TCTDebugLweDestroyStats.cfg
    • TCTFsetGpfsConnectorStats.cfg
    • TCTFsetIcstoreStats.cfg
    • TCTFsGpfsConnectorStats.cfg
    • TCTFsIcstoreStats.cfg
  4. On each Cloud services server node, create a new MCStore-sensor-definition.cfg file under /opt/IBM/zimon/ and copy the following sensors text into it:
    sensors=   
      {
         #Transparent cloud tiering statistics
         name = "TCTDebugDbStats"
         period = 10
         type = "Generic"
       },
    
      {
        #Transparent cloud tiering statistics
        name = "TCTDebugLweDestroyStats"
        period = 10
        type = "Generic"
      },
      {
         #Transparent cloud tiering statistics
         name = "TCTFsetGpfsConnectorStats"
         period = 10
         type = "Generic"
       },
    
      {
        #Transparent cloud tiering statistics
        name = "TCTFsetIcstoreStats"
        period = 10
        type = "Generic"
      },
      {
         #Transparent cloud tiering statistics
         name = "TCTFsGpfsConnectorStats"
         period = 10
         type = "Generic"
       },
    
      {
        #Transparent cloud tiering statistics
        name = "TCTFsIcstoreStats"
        period = 10
        type = "Generic"
      }
  5. Specify the following command to register the sensors:
    mmperfmon config add --sensors MCStore-sensor-definition.cfg
  6. Specify the following command to verify that all the sensors are added:
    mmperfmon config show
    
    The system displays output similar to this:
    
    # This file has been generated automatically and SHOULD NOT
    # be edited manually.  It may be overwritten at any point
    # in time.
    
    cephMon = "/opt/IBM/zimon/CephMonProxy"
    cephRados = "/opt/IBM/zimon/CephRadosProxy"
    colCandidates = "jupiter-vm856.pok.stglabs.ibm.com", "jupiter-vm934.pok.stglabs.ibm.com"
    colRedundancy = 2
    collectors = {
    	host = ""
    	port = "4739"
    }
    config = "/opt/IBM/zimon/ZIMonSensors.cfg"
    ctdbstat = ""
    daemonize = T
    hostname = ""
    ipfixinterface = "0.0.0.0"
    logfile = "/var/log/zimon/ZIMonSensors.log"
    loglevel = "info"
    mmcmd = "/opt/IBM/zimon/MMCmdProxy"
    mmdfcmd = "/opt/IBM/zimon/MMDFProxy"
    mmpmon = "/opt/IBM/zimon/MmpmonSockProxy"
    piddir = "/var/run"
    release = "5.2.0-x"
    sensors = {
    	name = "CPU"
    	period = 1
    }, 
    {
    	name = "Load"
    	period = 1
    }, 
    {
    	name = "Memory"
    	period = 1
    }, 
    {
    	name = "Network"
    	period = 1
    }, 
    {
    	name = "Netstat"
    	period = 10
    }, 
    {
    	name = "Diskstat"
    	period = 0
    }, 
    {
    	name = "DiskFree"
    	period = 600
    }, 
    {
    	name = "Infiniband"
    	period = 0
    }, 
    {
    	name = "GPFSDisk"
    	period = 0
    }, 
    {
    	name = "GPFSFilesystem"
    	period = 10
    }, 
    {
    	name = "GPFSNSDDisk"
    	period = 10
    	restrict = "nsdNodes"
    }, 
    {
    	name = "GPFSPoolIO"
    	period = 0
    }, 
    {
    	name = "GPFSVFS"
    	period = 10
    }, 
    {
    	name = "GPFSIOC"
    	period = 0
    }, 
    {
    	name = "GPFSVIO64"
    	period = 0
    }, 
    {
    	name = "GPFSPDDisk"
    	period = 10
    	restrict = "nsdNodes"
    }, 
    {
    	name = "GPFSvFLUSH"
    	period = 0
    }, 
    {
    	name = "GPFSNode"
    	period = 10
    }, 
    {
    	name = "GPFSNodeAPI"
    	period = 10
    }, 
    {
    	name = "GPFSFilesystemAPI"
    	period = 10
    }, 
    {
    	name = "GPFSLROC"
    	period = 0
    }, 
    {
    	name = "GPFSCHMS"
    	period = 0
    }, 
    {
    	name = "GPFSAFM"
    	period = 0
    }, 
    {
    	name = "GPFSAFMFS"
    	period = 0
    }, 
    {
    	name = "GPFSAFMFSET"
    	period = 0
    }, 
    {
    	name = "GPFSRPCS"
    	period = 10
    }, 
    {
    	name = "GPFSWaiters"
    	period = 10
    }, 
    {
    	name = "GPFSFilesetQuota"
    	period = 3600
    	restrict = "jupiter-vm856.pok.stglabs.ibm.com"
    }, 
    {
    	name = "GPFSFileset"
    	period = 300
    	restrict = "jupiter-vm934.pok.stglabs.ibm.com"
    }, 
    {
    	name = "GPFSPool"
    	period = 300
    	restrict = "jupiter-vm934.pok.stglabs.ibm.com"
    }, 
    {
    	name = "GPFSDiskCap"
    	period = 86400
    	restrict = "jupiter-vm856.pok.stglabs.ibm.com"
    }, 
    {
    	name = "TCTDebugDbStats"
    	period = 10
    	type = "Generic"
    }, 
    {
    	name = "TCTDebugLweDestroyStats"
    	period = 10
    	type = "Generic"
    }, 
    {
    	name = "TCTFsetGpfsConnectorStats"
    	period = 10
    	type = "Generic"
    }, 
    {
    	name = "TCTFsetIcstoreStats"
    	period = 10
    	type = "Generic"
    }, 
    {
    	name = "TCTFsGpfsConnectorStats"
    	period = 10
    	type = "Generic"
    }, 
    {
    	name = "TCTFsIcstoreStats"
    	period = 10
    	type = "Generic"
    }
    smbstat = ""
    
  7. Specify the following commands to restart your pmsensors and pmcollector on the nodes:
    • service pmsensors restart
    • service pmcollector restart 
  8. Verify the status of your pmsensors and pmcollector on the nodes:
    • service pmsensors status
    • service pmcollector status