<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>phaq &#187; Virtuozzo</title>
	<atom:link href="http://phaq.phunsites.net/category/howtos/virtualization/virtuozzo/feed/" rel="self" type="application/rss+xml" />
	<link>http://phaq.phunsites.net</link>
	<description>my daily IT madness</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:06:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>vzmigrate: fixing &quot;can&#8217;t repair VE# packages&quot; error</title>
		<link>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-cant-repair-ve-packages-error/</link>
		<comments>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-cant-repair-ve-packages-error/#comments</comments>
		<pubDate>Sun, 17 Dec 2006 18:58:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Virtuozzo]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/12/17/vzmigrate-fixing-cant-repair-ve-packages-error/</guid>
		<description><![CDATA[When migrating a VPS from one hardware node to another using &#8216;vzmigrate&#8217; an error like this may occur: #vzmigrate &#8211;keep-dst &#8211;remove-area no 192.168.0.1 1001 root@192.168.0.1&#8242;s password: Connection to destination HN (192.168.0.1) is successfully established Moving/copying VE#1001 -&#62; VE#1001, [], [] &#8230; Syncing private area &#8216;/vz/private/1001&#8242; - 100% &#124;*****************************&#124; done Can&#8217;t move/copy VE#1001 -&#62; VE#1001, [], [...]]]></description>
			<content:encoded><![CDATA[<p>When migrating a VPS from one hardware node to another using &#8216;vzmigrate&#8217; an error like this may occur:<br />
<span id="more-66"></span><br />
#vzmigrate &#8211;keep-dst &#8211;remove-area no 192.168.0.1 1001<br />
root@192.168.0.1&#8242;s password:<br />
Connection to destination HN (192.168.0.1) is successfully established<br />
Moving/copying VE#1001 -&gt; VE#1001, [], [] &#8230;<br />
Syncing private area &#8216;/vz/private/1001&#8242;<br />
- 100% |*****************************|<br />
done<br />
Can&#8217;t move/copy VE#1001 -&gt; VE#1001, [], [] : can&#8217;t repair VE#1001 packages : No Match for argument: sendmail-8.13.6-0.FC4.1.i386<br />
No Match for argument: sendmail-cf-8.13.6-0.FC4.1.i386<br />
No Match for argument: sendmail-doc-8.13.6-0.FC4.1.i386<br />
Error: Some packages(s) not found<br />
Loading &#8220;rpm2vzrpm&#8221; plugin<br />
Setting up Install Process<br />
Setting up repositories<br />
Reading repository metadata in from local files<br />
Parsing package install arguments<br />
ERROR: package manager exited with 1 retcode</p>
<p>The most likely reason for this is a version mismatch in the EZ OS template. It will prevent migrating the VPS even if &#8216;vzmigrate&#8217; is run in &#8216;-f&#8217; mode (force).</p>
<ol>
<li>Check if the VPS uses an EZ OS template and which one it is:
<p># vzpkg list -O 1001<br />
fedora-core-4-x86                       2006-12-01 14:41:34</li>
<li>Check if there are updates available (output shortened):
<p># vzpkg status<br />
Loading &#8220;rpm2vzrpm&#8221; plugin<br />
Setting up repositories<br />
Reading repository metadata in from local files<br />
Next update(s) are available:<br />
device-mapper          i386      1.02.07-2.0<br />
gnupg                  i386      1.4.5-1<br />
libtiff                i386      3.7.1-6.fc4.3<br />
libuser                i386      0.53.7-1.fc4.1<br />
lvm2                   i386      2.02.06-1.0.fc4</li>
<li>Ok, it looks like the template is outdated. Let&#8217;s make sure our cached template is up-to-date (output shortened).
<p>#vzpkg update cache fedora-core-4-x86<br />
Updating cache for fedora-core-4-x86 OS template<br />
Reading repository metadata in from local files<br />
No Packages marked for Update/Obsoletion<br />
Packing cache file fedora-core-4-x86.tar.gz &#8230;<br />
Cache file fedora-core-4-x86.tar.gz [15M] created.</li>
<li>Now update the VPS:
<p>#vzpkg update 1001 fedora-core-4-x86<br />
Loading &#8220;rpm2vzrpm&#8221; plugin<br />
Setting up Update Process<br />
Setting up repositories<br />
[ .. ]<br />
Dependency Updated: samba-common.i386 0:3.0.23a-1.fc4.1<br />
Complete!<br />
Dependency Installed:<br />
gamin                  i386      0:0.1.1-3.FC4<br />
Updated:<br />
gnupg                  i386      0:1.4.5-1<br />
python                 i386      0:2.4.3-8.FC4<br />
samba                  i386      0:3.0.23a-1.fc4.1<br />
samba-client           i386      0:3.0.23a-1.fc4.1<br />
samba-swat             i386      0:3.0.23a-1.fc4.1<br />
sendmail               i386      0:8.13.7-2.fc4.2<br />
sendmail-cf            i386      0:8.13.7-2.fc4.2<br />
sendmail-doc           i386      0:8.13.7-2.fc4.2<br />
Dependency Updated:<br />
samba-common           i386      0:3.0.23a-1.fc4.1</li>
<li>If you run &#8216;vzmigrate&#8217; using &#8211;keep-dst argument log on to your second hardware node first and rename /vz/private/1001 to /vz/private/1001.migrated. (Removing that directory is fine, too, if you&#8217;re familiar with the process).</li>
<li>Now run &#8216;vzmigrate&#8217; again:
<p>#vzmigrate &#8211;keep-dst &#8211;remove-area no 192.168.0.1 1001<br />
root@192.168.0.1&#8242;s password:<br />
Connection to destination HN (192.168.0.1) is successfully established<br />
Moving/copying VE#1001-&gt; VE#1001, [], [] &#8230;<br />
destination &#8216;/vz/private/1001&#8242; for VE#1001already exists<br />
Syncing private area &#8216;/vz/private/1001&#8242;<br />
\ 100% |*****************************|<br />
done<br />
Stopping VE#228128 &#8230;<br />
done<br />
Fast syncing private area &#8216;/vz/private/1001&#8242;<br />
- 100% |*****************************|<br />
done<br />
Starting VE#1001 &#8230;<br />
done</p>
<p>Successfully completedSee, it worked like a charm! <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-cant-repair-ve-packages-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vzmigrate: fixing &quot;quota is running, stop it first&quot; error</title>
		<link>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-quota-is-running-stop-it-first-error/</link>
		<comments>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-quota-is-running-stop-it-first-error/#comments</comments>
		<pubDate>Sun, 17 Dec 2006 17:53:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Virtuozzo]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/12/17/vzmigrate-fixing-quota-is-running-stop-it-first-error/</guid>
		<description><![CDATA[When migrating a Virtuozzo VPS from one node to another using vzmigrate one might receive this error message: # vzmigrate &#8211;keep-dst &#8211;remove-area no 192.168.0.1 1001 root@192.168.0.1&#8242;s password: Connection to destination HN (192.168.0.1) is successfully established Moving/copying VE#1001 -&#62; VE#1001, [], [] &#8230; destination &#8216;/vz/root/1001&#8242; for VE#1001 already exists destination &#8216;/vz/private/1001&#8242; for VE#1001 already exists Syncing [...]]]></description>
			<content:encoded><![CDATA[<p>When migrating a Virtuozzo VPS from one node to another using vzmigrate one might receive this error message:<br />
<span id="more-65"></span><br />
# vzmigrate &#8211;keep-dst &#8211;remove-area no 192.168.0.1 1001<br />
root@192.168.0.1&#8242;s password:<br />
Connection to destination HN (192.168.0.1) is successfully established<br />
Moving/copying VE#1001 -&gt; VE#1001, [], [] &#8230;<br />
destination &#8216;/vz/root/1001&#8242; for VE#1001 already exists<br />
destination &#8216;/vz/private/1001&#8242; for VE#1001 already exists<br />
Syncing private area &#8216;/vz/private/1001&#8242;<br />
| 100% |********************************** done<br />
Can&#8217;t move/copy VE#1001 -&gt; VE#1001, [], [] : Starting VE &#8230;<br />
Setting quota &#8230;<br />
vzquota: Running vzquota init failed for VE#1001.<br />
vzquota : (error) Quota is already running for VE#1001, stop it first.</p>
<p>Fixing this involves a little handwork on the destination hardware node.</p>
<ol>
<li>Check using &#8216;vzlist&#8217; if a VPS #1001 exists (should not)</li>
<li>Check if directory /vz/root/1001 existsÂ  and remove it</li>
<li>Check if directory /vz/private/1001 exists and rename it to /vz/private/1001.migrated (deleting the directory is fine too)
<p>In case you did not run &#8216;vzmigrate&#8217; with &#8216;&#8211;keep-dst&#8217; argument, step #3 may be omitted as this directory shouldn&#8217;t exist then.</li>
<li>Disable the quoata: &#8216;vzquota of 1001 -f&#8217; (yes, it will complain, but that&#8217;s ok)</li>
<li>Try again migrating your VPS to the new node</li>
</ol>
<p>As always YMMV. It worked for me when running &#8216;vzmigrate&#8217; just as shown above. To be honest: This particular error happened only twice for some 50 or 60 VPS&#8217;s migrated and was likely caused by network timeouts.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/12/17/vzmigrate-fixing-quota-is-running-stop-it-first-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

