From 093141a74962f11654c44fe2292605f9cf65e709 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 17 Apr 2009 16:07:00 -0700 Subject: added migration script from unify based setup to distribute based setup Signed-off-by: Anand V. Avati --- extras/Makefile.am | 2 +- extras/migrate-unify-to-distribute.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 extras/migrate-unify-to-distribute.sh (limited to 'extras') diff --git a/extras/Makefile.am b/extras/Makefile.am index afb24e5401a..0dbbcf72aeb 100644 --- a/extras/Makefile.am +++ b/extras/Makefile.am @@ -5,7 +5,7 @@ EditorMode_DATA = glusterfs-mode.el glusterfs.vim SUBDIRS = init.d benchmarking -EXTRA_DIST = specgen.scm Portfile glusterfs-mode.el glusterfs.vim +EXTRA_DIST = specgen.scm Portfile glusterfs-mode.el glusterfs.vim migrate-unify-to-distribute.sh CLEANFILES = diff --git a/extras/migrate-unify-to-distribute.sh b/extras/migrate-unify-to-distribute.sh new file mode 100755 index 00000000000..fd23a46fec1 --- /dev/null +++ b/extras/migrate-unify-to-distribute.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# +# This is a template script which can be used to migrate the GlusterFS +# storage infrastructure from 'cluster/unify' to 'cluster/distribute' + +# This script needs to be executed on the machine where namespace volume +# of 'cluster/unify' translator resides. And also, one need to mount the +# new 'cluster/distribute' volume with "option lookup-unhashed yes" on +# the same machine. +# If the namespace volume was replicated (ie, afr'ed), then this can be +# executed just on one of the namespace machines.. + +# Only the variables defined below needs to be changed to appropriate path + +# This is export from old 'cluster/unify' volume's namespace volume. +namespace_export=/exports/export-ns + +# This is the new mount point with 'cluster/distribute' volume +distribute_mount=/mnt/glusterfs + +cd ${namespace_export}; +find . -exec stat ${distribute_mount}/{} \; -- cgit