Hello,
I've just discovered a weird problem on a OpenVZ hypervisor.
When I set up a crontab on a CT hosted on this physical node, it appears that it's running twice : one time as the CT (normal) & a second time as the physical node.
Here is the simple script I used to test :
#!/bin/bash
DATE=$(date +%H:%M:%S)
HOST=$(hostname)
echo "$HOST $DATE" >> /tmp/test_hst
Here is the content of /tmp/test_hst :
veapp02 17:05:01
vznode08 17:05:01
veapp02 17:10:01
vznode08 17:10:01
veapp02 17:15:01
vznode08 17:15:01
vznode08 17:20:01
veapp02 17:20:01
As you can see the OVZ HyperV runs the cron as well !
(It does the same thing with all VE hosted on this node).
Anyone can explain this behaviour ?
Kernel & tools:
Linux spglo0008vz 2.6.18-274.7.1.el5.028stab095.1 #1 SMP Mon Oct 24 20:49:24 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux
vzctl-core-4.2-1
vzquota-3.1-1
vzrpm43-python-4.3.3-7_nonptl.6
vzpkg-2.7.0-18
vzrpm43-4.3.3-7_nonptl.6
vzrpm44-4.4.1-22.5
vztmpl-centos-5-2.0-2
vzdump-1.2-4
vzyum-2.4.0-11
vzrpm44-python-4.4.1-22.5
vzctl-4.2-1
Thanks in advance,
Regards.
Matthew.