<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I think the script left after conversion. It is no longer needed,<br>
    you can remove it (and as far as I can tell it won't be recreated<br>
    by vzctl if ploop is used).<br>
    <br>
    <div class="moz-cite-prefix">On 12/04/2014 02:22 PM, Rene C. wrote:<br>
    </div>
    <blockquote
cite="mid:CA+ZVM8u4rpNQQ33-Zhaum_yCF-uidos+Bn+01NjgWPmPuJGPnw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div><br>
        </div>
        <div>It seems /etc/rc.d/init.d/vzquota somehow is responsible
          for this problem:</div>
        <div><br>
        </div>
        <div>
          <div># cat -n /etc/rc.d/init.d/vzquota</div>
          <div>     1  #!/bin/sh</div>
          <div>     2  # chkconfig: 2345 10 90</div>
          <div>     3  # description: prepare container to use OpenVZ
            2nd-level disk quotas</div>
          <div>     4</div>
          <div>     5  ### BEGIN INIT INFO</div>
          <div>     6  # Provides: vzquota</div>
          <div>     7  # Required-Start: $local_fs $time $syslog</div>
          <div>     8  # Required-Stop: $local_fs</div>
          <div>     9  # Default-Start: 2 3 4 5</div>
          <div>    10  # Default-Stop: 0 1 6</div>
          <div>    11  # Short-Description: Start vzquota at the end of
            boot</div>
          <div>    12  # Description: Configure OpenVZ disk quota for a
            container.</div>
          <div>    13  ### END INIT INFO</div>
          <div>    14</div>
          <div>    15  start() {</div>
          <div>    16          if [ ! -L /etc/mtab ]; then</div>
          <div>    17                  rm -f /etc/mtab &gt;/dev/null
            2&gt;&amp;1</div>
          <div>    18                  ln -sf /proc/mounts /etc/mtab</div>
          <div>    19          fi</div>
          <div>    20          dev=$(awk '($2 == "/") &amp;&amp; ($4 ~
            /usrquota/) &amp;&amp; ($4 ~ /grpquota/) {print $1}'
            /etc/mtab)</div>
          <div>    21          if test -z "$dev"; then</div>
          <div>    22                  dev="/dev/simfs"</div>
          <div>    23                  rm -f /etc/mtab &gt;/dev/null
            2&gt;&amp;1</div>
          <div>    24                  echo "/dev/simfs / reiserfs
            rw,usrquota,grpquota 0 0" &gt; /etc/mtab</div>
          <div>    25                  grep -v " / " /proc/mounts
            &gt;&gt; /etc/mtab 2&gt;/dev/null</div>
          <div>    26                  chmod 644 /etc/mtab</div>
          <div>    27          fi</div>
          <div>    28          [ -e "$dev" ] || mknod $dev b 0 60</div>
          <div>    29          quotaon -aug</div>
          <div>    30  }</div>
          <div>    31</div>
          <div>    32  case "$1" in</div>
          <div>    33    start)</div>
          <div>    34          start</div>
          <div>    35          ;;</div>
          <div>    36    *)</div>
          <div>    37          exit</div>
          <div>    38  esac</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>So it seems in line 16-19 first the symlink from
          /proc/mounts to /etc/mtab is made correctly, but then in line
          20 the '/' partition is checked for keywords /usrquota/ and
          /grpquota/, and if they're missing it then overwrites the
          symlink again. AFAICS this is what is breaking the symlink.</div>
        <div><br>
        </div>
        <div>Whats the problem with this? Should this script be changed
          for ploop containers?</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Nov 30, 2014 at 12:07 PM, Rene
          C. <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:openvz@dokbua.com" target="_blank">openvz@dokbua.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">I've just noticed this happen also in a Plesk
              container, so it's not just limited to Cpanel.  The date
              seems to correspond to a restore that was made so it may
              be related to the vzpbackup/vzprestore scripts. 
              <div><br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">On Sat, Jan 4, 2014 at 8:34 AM,
                Rene C. <span dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:openvz@dokbua.com" target="_blank">openvz@dokbua.com</a>&gt;</span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">Oddly
                  enough this problem has returned - it now shows simfs
                  again.<br>
                  Nobody has explicitly changed anything. The container
                  runs Cpanel,<br>
                  could that have messed things up? It actually looks
                  like cpanel<br>
                  overrides the symlink when they add their jailshell.
                  Have you noticed<br>
                  this before?<br>
                  <br>
                  /proc/mounts looks correct.<br>
                  <br>
                  <br>
                  <br>
                  On Wed, Dec 18, 2013 at 10:25 AM, Rene C. &lt;<a
                    moz-do-not-send="true"
                    href="mailto:openvz@dokbua.com" target="_blank">openvz@dokbua.com</a>&gt;
                  wrote:<br>
                  &gt; Thanks, now I understand.<br>
                  &gt;<br>
                  &gt; So after deleting /etc/mtab I need to make as
                  symlink from<br>
                  &gt; /proc/mounts (ln -s /proc/mounts /etc/mtab). That
                  was the bit I was<br>
                  &gt; missing.<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; On Wed, Dec 18, 2013 at 1:36 AM, Kir Kolyshkin
                  &lt;<a moz-do-not-send="true"
                    href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>&gt;
                  wrote:<br>
                  &gt;&gt; On 12/17/2013 12:27 AM, Rene C. wrote:<br>
                  &gt;&gt;&gt;<br>
                  &gt;&gt;&gt; Sure ....<br>
                  &gt;&gt;&gt;<br>
                  &gt;&gt;&gt; # ls -l /vza1/private/1703<br>
                  &gt;&gt;&gt; total 16<br>
                  &gt;&gt;&gt; drwxr-xr-x 2 root root 4096 Dec 15 04:10
                  dump<br>
                  &gt;&gt;&gt; drwx------ 3 root root 4096 Dec 15 04:10
                  root.hdd<br>
                  &gt;&gt;&gt; -rw-r--r-- 1 root root  443 Dec 15 04:09
                  Snapshots.xml<br>
                  &gt;&gt;&gt; -rw-r--r-- 1 root root   37 Dec 15 03:06
                  vzpbackup_snapshot<br>
                  &gt;&gt;&gt; # vzlist -o layout 1703<br>
                  &gt;&gt;&gt; LAYOUT<br>
                  &gt;&gt;&gt; ploop<br>
                  &gt;&gt;&gt; #<br>
                  &gt;&gt;&gt;<br>
                  &gt;&gt;&gt; Surely deleting the mount table isn't
                  healthy, isn't it needed by<br>
                  &gt;&gt;&gt; something?<br>
                  &gt;&gt;<br>
                  &gt;&gt;<br>
                  &gt;&gt; This is how it should look like:<br>
                  &gt;&gt;<br>
                  &gt;&gt; [host] # vzctl enter 1018<br>
                  &gt;&gt; entered into CT 1018<br>
                  &gt;&gt; [CT1018] # ls -l /etc/mtab<br>
                  &gt;&gt; lrwxrwxrwx 1 root root 12 Nov  7 21:20
                  /etc/mtab -&gt; /proc/mounts<br>
                  &gt;&gt;<br>
                  &gt;&gt; And /proc/mounts is showing info from the
                  kernel which can't be wrong:<br>
                  &gt;&gt;<br>
                  &gt;&gt; [CT1018]# cat /proc/mounts<br>
                  &gt;&gt; /dev/ploop51540p1 / ext4
                  rw,relatime,barrier=1,data=ordered,balloon_ino=12 0<br>
                  &gt;&gt; 0<br>
                  &gt;&gt; proc /proc proc rw,relatime 0 0<br>
                  &gt;&gt; sysfs /sys sysfs rw,relatime 0 0<br>
                  &gt;&gt; none /dev devtmpfs rw,relatime,mode=755 0 0<br>
                  &gt;&gt; none /dev/pts devpts
                  rw,relatime,gid=5,mode=620,ptmxmode=000 0 0<br>
                  &gt;&gt; none /dev/shm tmpfs rw,relatime 0 0<br>
                  &gt;&gt; none /proc/sys/fs/binfmt_misc binfmt_misc
                  rw,relatime 0 0<br>
                  &gt;&gt;<br>
                  &gt;&gt;<br>
                  &gt;&gt;&gt;<br>
                  &gt;&gt;&gt; On Tue, Dec 17, 2013 at 9:41 AM, Kir
                  Kolyshkin &lt;<a moz-do-not-send="true"
                    href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>&gt;
                  wrote:<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; On 12/16/2013 04:51 PM, Rene C.
                  wrote:<br>
                  &gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt; I tried just removing it, does
                  not seem to fix anything. Need to do<br>
                  &gt;&gt;&gt;&gt;&gt; anything else? Remount, restart,
                  anything?<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; Would be great if you can copy-paste
                  some output from the terminal,<br>
                  &gt;&gt;&gt;&gt; otherwise it's more complicated to
                  debug.<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; Maybe your CT was not really
                  converted.<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; Please show output of<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; ls -l /vz/private/1703/<br>
                  &gt;&gt;&gt;&gt; vzlist -o layout 1703<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt; On Thu, Dec 12, 2013 at 11:43 AM,
                  Rene C. &lt;<a moz-do-not-send="true"
                    href="mailto:openvz@dokbua.com" target="_blank">openvz@dokbua.com</a>&gt;
                  wrote:<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt; Ok thanks. Just remove it,
                  nothing else?  Need to restart the<br>
                  &gt;&gt;&gt;&gt;&gt;&gt; container or anything?<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt; On Thu, Dec 12, 2013 at 10:02
                  AM, Kir Kolyshkin &lt;<a moz-do-not-send="true"
                    href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>&gt;
                  wrote:<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; On 12/11/2013 06:28 PM,
                  Rene C. wrote:<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I just noticed there
                  is a contaner on one of our hardware nodes that<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; appears to have been
                  changed to ploop, but the filesystem is still<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; simfs:<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; # vzctl exec 1703 df
                  -h<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Filesystem           
                  Size  Used Avail Use% Mounted on<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; /dev/simfs           
                   99G   65G   29G  70% /<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; none                 
                  1.0G  4.0K  1.0G   1% /dev<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; # vzctl convert 1703<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; CT is already on
                  ploop<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; All other containers
                  use a /dev/ploopXXXX device.<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Is this a problem?
                  Should it be fixed? How?<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; I guess this is caused by
                  a record in CT's /etc/mtab. This should be<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; harmful.<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; If you want to fix it,
                  just remove CT's /etc/mtab<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt;
                  _______________________________________________<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; Users mailing list<br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; <a
                    moz-do-not-send="true"
                    href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
                  &gt;&gt;&gt;&gt;&gt;&gt;&gt; <a
                    moz-do-not-send="true"
                    href="https://lists.openvz.org/mailman/listinfo/users"
                    target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
                  &gt;&gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;&gt;
                  _______________________________________________<br>
                  &gt;&gt;&gt;&gt;&gt; Users mailing list<br>
                  &gt;&gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                    href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
                  &gt;&gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                    href="https://lists.openvz.org/mailman/listinfo/users"
                    target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;<br>
                  &gt;&gt;&gt;&gt;
                  _______________________________________________<br>
                  &gt;&gt;&gt;&gt; Users mailing list<br>
                  &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                    href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
                  &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                    href="https://lists.openvz.org/mailman/listinfo/users"
                    target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
                  &gt;&gt;&gt;<br>
                  &gt;&gt;&gt;
                  _______________________________________________<br>
                  &gt;&gt;&gt; Users mailing list<br>
                  &gt;&gt;&gt; <a moz-do-not-send="true"
                    href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
                  &gt;&gt;&gt; <a moz-do-not-send="true"
                    href="https://lists.openvz.org/mailman/listinfo/users"
                    target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
                  &gt;&gt;<br>
                  &gt;&gt;<br>
                  &gt;&gt;
                  _______________________________________________<br>
                  &gt;&gt; Users mailing list<br>
                  &gt;&gt; <a moz-do-not-send="true"
                    href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
                  &gt;&gt; <a moz-do-not-send="true"
                    href="https://lists.openvz.org/mailman/listinfo/users"
                    target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>