OpenVZ Forum


Home » General » Support » *SOLVED* vzassign: awk: not an option: --assign
*SOLVED* vzassign: awk: not an option: --assign [message #5258] Thu, 17 August 2006 08:26 Go to next message
ataraxis is currently offline  ataraxis
Messages: 19
Registered: August 2006
Junior Member
Hi,
I am trying to migrate a ve to a different physical host.
This is what happens:
Quote:

m00host:/etc/vz/conf# vzmigrate --online x.y.z.233 998
OPT:--online
OPT:x.y.z.233
Starting online migration of VPS 998 on x.y.z.233
Preparing remote node
Initializing remote quota
Syncing private
awk: not an option: --assign
Failed to sync VPS private areas



Let's do it a bit more verbose:
Quote:

m00host:/etc/vz/conf# vzmigrate -v --online x.y.z.233 998
OPT:-v
OPT:--online
OPT:x.y.z.233
Starting online migration of VPS 998 on x.y.z.233
Loading /etc/vz/vz.conf and /etc/vz/conf/998.conf files
Check IPs on destination node: x.y.z.229
Preparing remote node
Copying config file
998.conf 100% 1151 1.1KB/s 00:00
Creating remote VPS root dir
Creating remote VPS private dir
Initializing remote quota
Quota init
Turning remote quota on
Syncing private
awk: not an option: --assign
Failed to sync VPS private areas



I'm using Debian and Version 3.0.11 of vzctl package:
Quote:

m00host:/etc/vz/conf# apt-cache policy vzctl
vzctl:
Installiert:3.0.11-1dso1
Mögliche Pakete:3.0.11-1dso1
Versions-Tabelle:
*** 3.0.11-1dso1 0
500 http://debian.systs.org stable/openvz Packages
100 /var/lib/dpkg/status



Any ideas?

[Updated on: Thu, 17 August 2006 08:40]

Report message to a moderator

Re: vzassign: awk: not an option: --assign [message #5261 is a reply to message #5258] Thu, 17 August 2006 08:39 Go to previous messageGo to next message
ataraxis is currently offline  ataraxis
Messages: 19
Registered: August 2006
Junior Member
Solution:
Quote:


apt-get install gawk



before
Quote:


m00host:~# ls -lh /usr/bin/awk
lrwxrwxrwx 1 root root 21 2006-07-31 13:28 /usr/bin/awk -> /etc/alternatives/awk
m00host:~# ls -lh /etc/alternatives/awk
lrwxrwxrwx 1 root root 13 2006-07-31 13:29 /etc/alternatives/awk -> /usr/bin/mawk



after
Quote:


m00host:/etc/vz/conf# ls -lh /usr/bin/awk
lrwxrwxrwx 1 root root 21 2006-07-25 12:19 /usr/bin/awk -> /etc/alternatives/awk
m00host:/etc/vz/conf# ls -lh /etc/alternatives/awk
lrwxrwxrwx 1 root root 13 2006-08-17 09:36 /etc/alternatives/awk -> /usr/bin/gawk

Re: *SOLVED* vzassign: awk: not an option: --assign [message #5341 is a reply to message #5258] Thu, 17 August 2006 17:44 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

@ataraxis:
installing the gawk is another solution,
but it's better to modify the vzmigrate script
for useing it with gawk and mawk :

so at line 378 :
grep "% of" | awk --assign ORS="\r" '{print $10}';

to:

grep "% of" | awk -v ORS="\r" '{print $10}'; then

That's all, you need not to install gawk Wink

Regards,
Thorsten
--
tsd@debian.systs.org
Previous Topic: Real memory versus virtual memory: is there a difference?
Next Topic: Bugzilla on ve
Goto Forum:
  


Current Time: Thu Jul 25 20:08:55 GMT 2024

Total time taken to generate the page: 0.03256 seconds