'Create a volume.'

def create_volume(self, volume):

    try:
        cmd = ['volume', 'create', volume['name'], ('%sG' % volume['size'])]
        if (self.configuration.eqlx_pool != 'default'):
            cmd.append('pool')
            cmd.append(self.configuration.eqlx_pool)
        if self.configuration.san_thin_provision:
            cmd.append('thin-provision')
        out = self._eql_execute(*cmd)
        self.add_multihost_access(volume)
        return self._get_volume_data(out)
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.error('Failed    to    create    volume    "%s".', volume['name'])
