diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index b95506faf5..6dfc16c2cf 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1734,8 +1734,12 @@ storageVolCreateXML(virStoragePoolPtr obj, } if (backend->refreshVol && - backend->refreshVol(obj->conn, pool, voldef) < 0) + backend->refreshVol(obj->conn, pool, voldef) < 0) { + storageVolDeleteInternal(volobj, backend, pool, voldef, + 0, false); + voldef = NULL; goto cleanup; + } /* Update pool metadata */ pool->def->allocation += buildvoldef->target.allocation;