<br><br><div class="gmail_quote">On 24 July 2013 00:49, Benjamin Henrion <span dir="ltr">&lt;<a href="mailto:bh@udev.org" target="_blank">bh@udev.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, Jul 16, 2013 at 3:17 AM, Kir Kolyshkin &lt;<a href="mailto:kir@openvz.org">kir@openvz.org</a>&gt; wrote:<br>
&gt; On 15 July 2013 05:29, Benjamin Henrion &lt;<a href="mailto:bh@udev.org">bh@udev.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Any idea how to ignore &quot;Dump file /vz/dump/Dump.3030 exists, trying to<br>
&gt;&gt; restore from it&quot;?<br>
&gt;<br>
&gt;<br>
&gt; Well, it is ignored. As you can see below, vzctl start found the dump file<br>
&gt; and tried restoring<br>
&gt; from it (instead of starting from scratch). Since restoring failed, vzctl<br>
&gt; started the container<br>
&gt; in a usual manner.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If I do not set the avlue DUMPDIR in /etc/vz/vz.conf, does it ignores<br>
&gt;&gt; this dump file?<br>
&gt;<br>
&gt;<br>
&gt; No, in this case a built-in dumpdir value is used as far as I remember.<br>
&gt; Check the sources to find out for sure.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I had to remove the file by hand to rescue my vz.<br>
&gt;<br>
&gt;<br>
&gt; What do you mean? As I explained above (and as you can see below) container<br>
&gt; is still started, with vzctl start ignoring the unsuccessful restore<br>
&gt; attempt.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; * 14:22 root@hn /vz/dump# vzctl restart 3030<br>
&gt;&gt; Restarting container<br>
&gt;&gt; Stopping container ...<br>
&gt;&gt; Container was stopped<br>
&gt;&gt; Container is unmounted<br>
&gt;&gt; Dump file /vz/dump/Dump.3030 exists, trying to restore from it<br>
&gt;&gt; Restoring container ...<br>
&gt;&gt; Container is mounted<br>
&gt;&gt;         undump...<br>
&gt;&gt; Setting CPU units: 1000<br>
&gt;&gt; Setting CPUs: 16<br>
&gt;&gt; Configure veth devices: veth303.1 veth303.0 veth303.2<br>
&gt;&gt; Adding interface veth303.1 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.0 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.2 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Error: undump failed: No such file or directory<br>
&gt;&gt; Restoring failed:<br>
&gt;&gt; Error: rst_open_file: failed to lookup path &#39;/var/nagios/nagios.lock&#39;: -2<br>
&gt;&gt; Error: can&#39;t open file /var/nagios/nagios.lock<br>
&gt;&gt; Error: rst_file: -2 753032<br>
&gt;&gt; Error: rst_files: -2<br>
&gt;&gt; Error: make_baby: -2<br>
&gt;&gt; Error: rst_clone_children<br>
&gt;&gt; Error: make_baby: -2<br>
&gt;&gt; Error: rst_clone_children<br>
&gt;&gt; Container restore failed<br>
&gt;&gt; Starting container...<br>
&gt;&gt; Setting CPU units: 1000<br>
&gt;&gt; Setting CPUs: 16<br>
&gt;&gt; Configure veth devices: veth303.1 veth303.0 veth303.2<br>
&gt;&gt; Adding interface veth303.1 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.0 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.2 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Container start in progress...<br>
&gt;&gt;<br>
&gt;&gt; * 14:23 root@hn /vz/dump# rm /vz/dump/Dump.3030<br>
&gt;&gt;<br>
&gt;&gt; * 14:24 root@hn /vz/dump# vzctl restart 3030<br>
&gt;&gt; Restarting container<br>
&gt;&gt; Stopping container ...<br>
&gt;&gt; Container was stopped<br>
&gt;&gt; Container is unmounted<br>
&gt;&gt; Starting container...<br>
&gt;&gt; Container is mounted<br>
&gt;&gt; Setting CPU units: 1000<br>
&gt;&gt; Setting CPUs: 16<br>
&gt;&gt; Configure veth devices: veth303.1 veth303.0 veth303.2<br>
&gt;&gt; Adding interface veth303.1 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.0 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Adding interface veth303.2 to bridge vzbr0 on CT0 for CT3030<br>
&gt;&gt; Container start in progress...<br>
&gt;&gt;<br>
&gt;&gt; * 14:24 root@hn-a231 /vz/dump#<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Which vzctl version is that? (Yes, please, whenever you are talking about<br>
&gt; vzctl, specify its version)<br>
&gt;<br>
&gt; I remember that some recent version deletes a dump file on start in any<br>
&gt; case, because:<br>
&gt;  - if a container is restored from that file, it is no longer needed;<br>
&gt;  - if a container can&#39;t be restored from that file, it is a bad file.<br>
&gt;<br>
&gt; This functionality appears in vzctl 4.3, as noted in its changelog:<br>
&gt;<br>
&gt;&gt; vzctl start: remove dumpfile on successful start<br>
&gt;<br>
&gt; For the reference, the git commit in question is this one:<br>
&gt;  <a href="http://git.openvz.org/?p=vzctl;a=commitdiff;h=eca2ff0" target="_blank">http://git.openvz.org/?p=vzctl;a=commitdiff;h=eca2ff0</a><br>
<br>
</div></div>Just setting:<br>
<br>
VE_STOP_MODE=&quot;stop&quot; in /etc/vz/vz.conf<br>
<br>
seems to be enough to get rid of Suspend mode.</blockquote><div><br></div><div><br></div><div>That is right, but it was not what you were asking about.</div><div><br></div><div>Also, I have answered all your questions, could you please answer mine?</div>
</div>