From: Greg Price Date: Tue, 17 Mar 2009 00:26:22 +0000 (-0400) Subject: pv-fixup: tweaks X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/pv-fixup.git/commitdiff_plain/ac40bdd031d82e5ac3b95b3e01ff2d59306b901c?hp=e4c9d3b5ee06f78f37d4712c14acf70535d64254 pv-fixup: tweaks svn path=/trunk/scripts/pv-fixup/; revision=2253 --- 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: