'Add a vdisk copy in the given pool.'

def add_vdisk_copy(self, vdisk, dest_pool, volume_type, state, config, auto_delete=False):

    resp = self.ssh.lsvdiskcopy(vdisk)
    if (len(resp) > 1):
        msg = (_('add_vdisk_copy    failed:    A    copy    of    volume    %s    exists.    Adding    another    copy    would    exceed    the    limit    of    2    copies.') % vdisk)
        raise exception.VolumeDriverException(message=msg)
    orig_copy_id = resp[0].get('copy_id', None)
    if (orig_copy_id is None):
        msg = _('add_vdisk_copy    started    without    a    vdisk    copy    in    the    expected    pool.')
        LOG.error(msg)
        raise exception.VolumeDriverException(message=msg)
    if (volume_type is None):
        opts = self.get_vdisk_params(config, state, None)
    else:
        opts = self.get_vdisk_params(config, state, volume_type['id'], volume_type=volume_type)
    params = self._get_vdisk_create_params(opts)
    try:
        new_copy_id = self.ssh.addvdiskcopy(vdisk, dest_pool, params, auto_delete)
    except exception.VolumeBackendAPIException as e:
        msg = (_('Unable    to    add    vdiskcopy    for    volume    %(vol)s.    Exception:    %(err)s.'), {'vol': vdisk, 'err': e})
        LOG.exception(msg)
        raise exception.VolumeDriverException(message=msg)
    return (orig_copy_id, new_copy_id)
