public DriverTask createConsistencyGroup(VolumeConsistencyGroup volumeConsistencyGroup){
  DellSCDriverTask task=new DellSCDriverTask("createConsistencyGroup");
  String ssn=volumeConsistencyGroup.getStorageSystemId();
  try {
    StorageCenterAPI api=connectionManager.getConnection(ssn);
    ScReplayProfile cg=api.createConsistencyGroup(ssn,volumeConsistencyGroup.getDisplayName());
    util.getVolumeConsistencyGroupFromReplayProfile(cg,volumeConsistencyGroup);
    task.setStatus(TaskStatus.READY);
  }
 catch (  StorageCenterAPIException|DellSCDriverException dex) {
    String error=String.format("Error creating CG %s: %s",volumeConsistencyGroup.getDisplayName(),dex);
    LOG.error(error);
    task.setFailed(error);
  }
  return task;
}

public DriverTask createConsistencyGroup ( VolumeConsistencyGroup volumeConsistencyGroup ) { DellSCDriverTask task = new DellSCDriverTask ( "createConsistencyGroup" ) ; String ssn = volumeConsistencyGroup . getStorageSystemId ( ) ; try { StorageCenterAPI api = connectionManager . getConnection ( ssn ) ; ScReplayProfile cg = api . createConsistencyGroup ( ssn , volumeConsistencyGroup . getDisplayName ( ) ) ; util . getVolumeConsistencyGroupFromReplayProfile ( cg , volumeConsistencyGroup ) ; task . setStatus ( TaskStatus . READY ) ; } catch ( StorageCenterAPIException | DellSCDriverException dex ) { String error = String . format ( "Error creating CG %s: %s" , volumeConsistencyGroup . getDisplayName ( ) , dex ) ; LOG . error ( error ) ; task . setFailed ( error ) ; } return task ; }
create a consistency group .
