Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Migration from one HN to another

413 bytes added, 02:51, 9 September 2007
no edit summary
Turning quota off
Cleanup</pre>
 
 
Here's a simple shell script that will migrate each VPS one after another. Just pass the destination host node as the single argument to the script. Feel free to add the -v flag to the vzmigrate flags if you'd like to see it execute with the verbose option:
 
<pre>#!/bin/bash
echo host=$1
vzlist | tail -n +2 | awk 'BEGIN { } /.*/ { print $1 }' | xargs -n1 echo vzmigrate --remove-area no --keep-dsk $1</pre>
[[Category:HOWTO]]
30
edits