Skip to content

Commit 2b4e994

Browse files
author
Marcus Sorensen
committed
CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS
pools that are already mounted in KVM hypervisor
1 parent 59c6fb7 commit 2b4e994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private StoragePool createNfsStoragePool(Connect conn, String uuid,
148148
// if error is that pool is mounted, try to handle it
149149
if (e.toString().contains("already mounted")) {
150150
s_logger.error("Attempting to unmount old mount libvirt is unaware of at "+targetPath);
151-
String result = Script.runSimpleBashScript("umount " + targetPath );
151+
String result = Script.runSimpleBashScript("umount -l " + targetPath );
152152
if (result == null) {
153153
s_logger.error("Succeeded in unmounting " + targetPath);
154154
try {

0 commit comments

Comments
 (0)