'Set the storage pool for a volume to the specified value.'

def _update_volume_storage_pool(self, local_path, new_pool):

    if (new_pool is None):
        new_pool = 'system'
    if (not self._verify_gpfs_pool(new_pool)):
        msg = (_('Invalid    storage    pool    %s    requested.        Retype    failed.') % new_pool)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    try:
        self.gpfs_execute((self.GPFS_PATH + 'mmchattr'), '-P', new_pool, local_path)
        LOG.debug('Updated    storage    pool    with    mmchattr    to    %s.', new_pool)
        return True
    except processutils.ProcessExecutionError as exc:
        LOG.info('Could    not    update    storage    pool    with    mmchattr    to    %(pool)s,    error:    %(error)s', {'pool': new_pool, 'error': exc.stderr})
        return False
