mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
storage: Activate/deactivate logical volumes only on local node
Current "-ay | -an" has problems on pool starting/refreshing if the volumes are clustered. Rommer has posted a patch to list 2 months ago. https://www.redhat.com/archives/libvir-list/2011-October/msg01116.html But IMO we shouldn't skip the inactived vols. So this is a squashed patch by Rommer. Signed-off-by: Rommer <rommer@active.by>
This commit is contained in:
parent
20e1233c31
commit
95ab415417
@ -51,7 +51,7 @@ virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
|
|||||||
const char *cmdargv[4];
|
const char *cmdargv[4];
|
||||||
|
|
||||||
cmdargv[0] = VGCHANGE;
|
cmdargv[0] = VGCHANGE;
|
||||||
cmdargv[1] = on ? "-ay" : "-an";
|
cmdargv[1] = on ? "-aly" : "-aln";
|
||||||
cmdargv[2] = pool->def->source.name;
|
cmdargv[2] = pool->def->source.name;
|
||||||
cmdargv[3] = NULL;
|
cmdargv[3] = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user