'Check if a pair of volumes are RDF paired.
:param array: the array serial number
:param remote_array: the remote array serial number
:param device_id: the device id
:param target_device: the target device id
:param rdf_group: the rdf group
:returns: paired -- bool, state -- string'

def are_vols_rdf_paired(self, array, remote_array, device_id, target_device, rdf_group):

    (paired, local_vol_state, rdf_pair_state) = (False, '', '')
    volume = self.get_rdf_group_volume(array, rdf_group, device_id)
    if volume:
        remote_volume = volume['remoteVolumeName']
        remote_symm = volume['remoteSymmetrixId']
        if ((remote_volume == target_device) and (remote_array == remote_symm)):
            paired = True
            local_vol_state = volume['localVolumeState']
            rdf_pair_state = volume['rdfpairState']
    else:
        LOG.warning('Cannot    locate    source    RDF    volume    %s', device_id)
    return (paired, local_vol_state, rdf_pair_state)
