'Create a new vdisk.'

def _create_vdisk(self, name, size, unit, opts):

    LOG.debug('enter:    _create_vdisk:    vdisk    %s.', name)
    ssh_cmd = ['svctask', 'mkvdisk', '-name', name, '-mdiskgrp', FLASHSYSTEM_VOLPOOL_NAME, '-iogrp', six.text_type(FLASHSYSTEM_VOL_IOGRP), '-size', size, '-unit', unit]
    (out, err) = self._ssh(ssh_cmd)
    self._assert_ssh_return(out.strip(), '_create_vdisk', ssh_cmd, out, err)
    match_obj = re.search('Virtual    Disk,    id    \\[([0-9]+)\\],    successfully    created', out)
    self._driver_assert((match_obj is not None), (_('_create_vdisk    %(name)s    -    did    not    find    success    message    in    CLI    output.\n    stdout:    %(out)s\n    stderr:    %(err)s') % {'name': name, 'out': six.text_type(out), 'err': six.text_type(err)}))
    LOG.debug('leave:    _create_vdisk:    vdisk    %s.', name)
