OpenVZ Forum


Home » General » Support » openvz in ubuntu hardy -- network options ignored
Re: openvz in ubuntu hardy -- network options ignored [message #29347 is a reply to message #29331] Fri, 11 April 2008 05:40 Go to previous messageGo to previous message
gumicsoves is currently offline  gumicsoves
Messages: 4
Registered: April 2008
Location: Ottawa, Ontario, Canada
Junior Member
Hi,

This seems to be a strange "/bin/cp" problem. This is what I did to fix it:

$ cp /etc/vz/dists/scripts/debian-add_ip.sh /etc/vz/dists/scripts/ubuntu-add_ip.sh
$ vim /etc/vz/dists/scripts/ubuntu-add_ip.sh

And replace the cp line:
# cp -f ${CFGFILE} ${CFGFILE}.bak

with this:
[ -e ${CFGFILE}.bak ] && rm ${CFGFILE}.bak
cat ${CFGFILE} >${CFGFILE}.bak

I modified the /etc/vz/dists/ubuntu.conf file too:
$ vim /etc/vz/dists/ubuntu.conf
ADD_IP=ubuntu-add_ip.sh

The problem still exists with the set hostname which is being set by a function in the function.sh, but I can live without that for now. Anyway this is just a temporary workaround and I'm going to report this bug in launchpad.

Anybody has an idea what is this bug with the cp command?
Searching the "as it was replaced while being copied" there are thousands of hits pointing to some sort of bug in cp with inodes.

Cheers,
Karoly
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ & XEN 3.2 in Debian etch
Next Topic: OpenVZ with ArchLinux - help with packaging it =]
Goto Forum:
  


Current Time: Sat Sep 07 15:36:12 GMT 2024

Total time taken to generate the page: 0.05982 seconds