touch up pv-fixup 'script' some more
authorGreg Price <price@mit.edu>
Tue, 10 Mar 2009 06:55:36 +0000 (02:55 -0400)
committerGreg Price <price@mit.edu>
Tue, 10 Mar 2009 06:55:36 +0000 (02:55 -0400)
svn path=/trunk/scripts/pv-fixup/; revision=2241

pv-fixup

index 0609971..a2180d0 100644 (file)
--- a/pv-fixup
+++ b/pv-fixup
@@ -16,7 +16,7 @@ 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)")
 #  - 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:
+#FOREACH host:
 dmsetup create $TMPDM --table "0 $dmlen linear $DISK $dmstart"
 #done
 
 dmsetup create $TMPDM --table "0 $dmlen linear $DISK $dmstart"
 #done
 
@@ -27,12 +27,6 @@ pvcreate $TMPDEV
 vgextend $VG $TMPDEV
 
 #  - pvmove all the LVs to the temporary PV
 vgextend $VG $TMPDEV
 
 #  - pvmove all the LVs to the temporary PV
-#    (something like
-#      for lv in $(LVs for running VMs on this host); do
-#        #some lvchange -a commands
-#        pvmove -n $lv <oldpv> <newpv>
-#        #possibly more lvchange -a to restore old state
-#      done)
 
 movelv () {
   echo pvmoving $1...
 
 movelv () {
   echo pvmoving $1...