From ac40bdd031d82e5ac3b95b3e01ff2d59306b901c Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 16 Mar 2009 20:26:22 -0400 Subject: [PATCH] pv-fixup: tweaks svn path=/trunk/scripts/pv-fixup/; revision=2253 --- pv-fixup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pv-fixup b/pv-fixup index a2180d0..f4d83a7 100644 --- a/pv-fixup +++ b/pv-fixup @@ -15,8 +15,8 @@ pvresize --setphysicalvolumesize=${HALFSIZETiB}t $DISK # - dmsetup create a device in the latter half dmstart=$(python -c "print int(($HALFSIZETiB + 0.01) * 1024 * 1024 * 1024 * 2)") -dmlen=$(python -c "print int(($HALFSIZETiB - 0.02) * 1024 * 1024 * 1024 * 2)") -#FOREACH host: +dmlen=$(python -c "print int(($HALFSIZETiB - 0.03) * 1024 * 1024 * 1024 * 2)") +#Foreach host: dmsetup create $TMPDM --table "0 $dmlen linear $DISK $dmstart" #done @@ -32,6 +32,7 @@ movelv () { echo pvmoving $1... lvchange -an $1 pvmove -i 10 -n $1 $2 + lvchange -ay $1 } #FOREACH host: -- 1.7.9.5