Browse files

Change 'riak-admin remove' to 'riak-admin force-remove'

  • Loading branch information...
1 parent b14ad29 commit 6fdfcc2a6229aace4e6affd44a263448f61c830e @jtuple jtuple committed Sep 29, 2011
Showing with 13 additions and 2 deletions.
  1. +13 −2 rel/files/riak-admin
View
15 rel/files/riak-admin
@@ -103,8 +103,19 @@ case "$1" in
;;
remove)
+ echo "The 'remove' command no longer exists. If you want a node to"
+ echo "safely leave the cluster (handoff its data before exiting),"
+ echo "then execute 'leave' on the desired node. If a node is down and"
+ echo "unrecoverable (and therefore cannot be safely removed), then"
+ echo "use the 'force-remove' command. A force removal drops all data"
+ echo "owned by the removed node. Read-repair can be used to restore"
+ echo "lost replicas."
+ exit 1
+ ;;
+
+ force-remove)
if [ $# -ne 2 ]; then
- echo "Usage: $SCRIPT remove <node>"
+ echo "Usage: $SCRIPT force-remove <node>"
exit 1
fi
@@ -378,7 +389,7 @@ case "$1" in
*)
echo "Usage: $SCRIPT { join | leave | backup | restore | test | status | "
echo " reip | js_reload | wait-for-service | ringready | "
- echo " transfers | remove | down | cluster_info | "
+ echo " transfers | force-remove | down | cluster_info | "
echo " member_status | ring_status | vnode-status}"
exit 1
;;

0 comments on commit 6fdfcc2

Please sign in to comment.