Skip to content

Commit

Permalink
Unmap vdisks after clone
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrawet committed Mar 8, 2017
1 parent 1fab13e commit d72504e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datastore/v7000/clone
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# -------------------------------------------------------------------------- #
# Copyright 2014-2016, Laurent Grawet <dev@grawet.be> #
# Copyright 2014-2017, Laurent Grawet <dev@grawet.be> #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
Expand Down Expand Up @@ -259,6 +259,9 @@ EOF

ssh_exec_and_log "$DST_HOST" "$CLONE_CMD" \
"Error cloning $SRC_VDISK_NAME to $VDISK_NAME"

v7000_unmap "$SRC_MGMT" "$DST_HOST" "$SRC_VDISK_NAME"
v7000_unmap "$MGMT" "$DST_HOST" "$VDISK_NAME"
fi

# Manage new vdisk replication
Expand Down

0 comments on commit d72504e

Please sign in to comment.