Xenith Orb avatar Xenith Orb committed c087cac

Nothing to see here

Comments (0)

Files changed (1)

 create_remote_lvolumes () {
-	ssh root@${REMOTE_HOST} <<-_HERE
-	set -x;
-	remote_vol_name=( ${vol_name[@]} );
-	remote_vol_size=( ${vol_size[@]} );
-	remote_count=0;
-	for remote_lvname in ${remote_vol_name[@]}; do lvcreate -L ${remote_vol_size[$count]}G -n ${remote_lvname} ${REMOTE_TARGET_VGNAME}; remote_count=$(($remote_count+1)); done"
-	_HERE 
+	#vgscan ## just in case : not needed for remote w/ ssh
+	local count=0
+	for lvname in ${vol_name[@]}; do 
+		ssh root@${REMOTE_HOST} "lvcreate -L \"${vol_size[$count]}G\" -n ${lvname} ${TARGET_VGNAME}"
+		count=$(($count+1))
+	done 
 clone_lvolumes () {
 	for lvname in ${vol_name[@]}; do
 		echo -e "Starting clone of: ${lvname}-${SUFFIX}" 
 	echo -ne "	 ${SCRIPTNAME}  --remove-remote-vols	Delete remote volumes.\n"
 	echo -ne "	 ${SCRIPTNAME}  -s, clone, --clone	Clone volumes remotely.\n"
 	echo -ne "	 ${SCRIPTNAME}  -v, view	\t	Print volumes applicable.\n\n"
-	echo -ne "	 Options must be given individually\n\n"
+	echo -ne "	 Options must be given individually.\n\n"
 case "$@" in
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.