Friday, March 22, 2013

MScripts to do migration of containers in OPenVZ from one node to another




*Migration
for CT in $(vzlist -H -o veid);do vzmigrate -r no --keep-dst 77.95.229.43(destinationIP) $CT; done

*Updating SolusVM
for VSERVERID in $`cat vsrvrids.txt`;do /scripts/vm-migrate $VSERVERID 12; done

No comments:

Post a Comment