Changeset 2268 for trunk/scripts/pv-fixup
- Timestamp:
- Mar 23, 2009, 5:13:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/pv-fixup/pv-fixup
r2266 r2268 53 53 54 54 movelv () { 55 echo pvmoving $ 1...56 pvmove -i 10 -n $ 1 $255 echo pvmoving $VG/$1... 56 pvmove -i 10 -n $VG/$1 $2 57 57 } 58 58 59 59 ssh root@xvm remctl remote web listvms \ 60 | yamlkeys 60 | yamlkeys \ 61 61 > runningvms 62 62 LVM_SYSTEM_DIR=/root/lvm lvsleft \ … … 65 65 > offvmlvs 66 66 for lv in $(offvmlvs); do 67 LVM_SYSTEM_DIR=/root/lvm movelv $ VG/$lv $DISK67 LVM_SYSTEM_DIR=/root/lvm movelv $lv $DISK 68 68 done 69 69 #FOREACH host: 70 for lv in $(invirt-listvms | yamlkeys | vmstolvs); do 71 LVM_SYSTEM_DIR=/root/lvm movelv $VG/$lv $DISK 70 for 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 72 73 done 73 74 #done … … 81 82 > offcdlvs 82 83 for lv in $(offcdlvs); do 83 LVM_SYSTEM_DIR=/root/lvm movelv $ VG/$lv $DISK84 LVM_SYSTEM_DIR=/root/lvm movelv $lv $DISK 84 85 done 85 86
Note: See TracChangeset
for help on using the changeset viewer.