diff --git a/plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java b/plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java index 2991574d021..b8b08598f69 100644 --- a/plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java +++ b/plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java @@ -204,7 +204,7 @@ public class CloudStackPrimaryDataStoreLifeCycleImpl implements String hostPath = uri.getPath(); Object localStorage = dsInfos.get("localStorage"); if (localStorage != null) { - hostPath = hostPath.replace("/", ""); + hostPath = hostPath.replaceFirst("/", ""); } String userInfo = uri.getUserInfo(); int port = uri.getPort();