Changeset 2268


Ignore:
Timestamp:
Mar 23, 2009, 5:13:24 AM (16 years ago)
Author:
price
Message:

tweaks to pv-fixup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/pv-fixup/pv-fixup

    r2266 r2268  
    5353
    5454movelv () {
    55   echo pvmoving $1...
    56   pvmove -i 10 -n $1 $2
     55  echo pvmoving $VG/$1...
     56  pvmove -i 10 -n $VG/$1 $2
    5757}
    5858
    5959ssh root@xvm remctl remote web listvms \
    60  | yamlkeys
     60 | yamlkeys \
    6161 > runningvms
    6262LVM_SYSTEM_DIR=/root/lvm lvsleft \
     
    6565 > offvmlvs
    6666for lv in $(offvmlvs); do
    67   LVM_SYSTEM_DIR=/root/lvm movelv $VG/$lv $DISK
     67  LVM_SYSTEM_DIR=/root/lvm movelv $lv $DISK
    6868done
    6969#FOREACH host:
    70 for lv in $(invirt-listvms | yamlkeys | vmstolvs); do
    71   LVM_SYSTEM_DIR=/root/lvm movelv $VG/$lv $DISK
     70for lv in $(invirt-listvms | yamlkeys | vmstolvs \
     71             | grep -xf <(LVM_SYSTEM_DIR=/root/lvm lvsleft)); do
     72  LVM_SYSTEM_DIR=/root/lvm movelv $lv $DISK
    7273done
    7374#done
     
    8182 > offcdlvs
    8283for lv in $(offcdlvs); do
    83   LVM_SYSTEM_DIR=/root/lvm movelv $VG/$lv $DISK
     84  LVM_SYSTEM_DIR=/root/lvm movelv $lv $DISK
    8485done
    8586
Note: See TracChangeset for help on using the changeset viewer.