Archive for December, 2006
The best ICQ spammer for sale…
Thursday, December 21st, 2006Oh dear, grow up, guys!
* WPG2 Plugin Not Validated *
vzmigrate: fixing “can’t repair VE# packages” error
Sunday, December 17th, 2006When migrating a VPS from one hardware node to another using ‘vzmigrate’ an error like this may occur:
#vzmigrate –keep-dst –remove-area no 192.168.0.1 1001
root@192.168.0.1’s password:
Connection to destination HN (192.168.0.1) is successfully established
Moving/copying VE#1001 -> VE#1001, [], [] …
Syncing private area ‘/vz/private/1001′
- 100% |*****************************|
done
Can’t move/copy VE#1001 -> VE#1001, [], [] : can’t repair VE#1001 packages : No Match for argument: sendmail-8.13.6-0.FC4.1.i386
No Match for argument: sendmail-cf-8.13.6-0.FC4.1.i386
No Match for argument: sendmail-doc-8.13.6-0.FC4.1.i386
Error: Some packages(s) not found
Loading “rpm2vzrpm” plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
ERROR: package manager exited with 1 retcode
The most likely reason for this is a version mismatch in the EZ OS template. It will prevent migrating the VPS even if ‘vzmigrate’ is run in ‘-f’ mode (force).
- Check if the VPS uses an EZ OS template and which one it is:
# vzpkg list -O 1001
fedora-core-4-x86 2006-12-01 14:41:34 - Check if there are updates available (output shortened):
# vzpkg status
Loading “rpm2vzrpm” plugin
Setting up repositories
Reading repository metadata in from local files
Next update(s) are available:
device-mapper i386 1.02.07-2.0
gnupg i386 1.4.5-1
libtiff i386 3.7.1-6.fc4.3
libuser i386 0.53.7-1.fc4.1
lvm2 i386 2.02.06-1.0.fc4 - Ok, it looks like the template is outdated. Let’s make sure our cached template is up-to-date (output shortened).
#vzpkg update cache fedora-core-4-x86
Updating cache for fedora-core-4-x86 OS template
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion
Packing cache file fedora-core-4-x86.tar.gz …
Cache file fedora-core-4-x86.tar.gz [15M] created. - Now update the VPS:
#vzpkg update 1001 fedora-core-4-x86
Loading “rpm2vzrpm” plugin
Setting up Update Process
Setting up repositories
[ .. ]
Dependency Updated: samba-common.i386 0:3.0.23a-1.fc4.1
Complete!
Dependency Installed:
gamin i386 0:0.1.1-3.FC4
Updated:
gnupg i386 0:1.4.5-1
python i386 0:2.4.3-8.FC4
samba i386 0:3.0.23a-1.fc4.1
samba-client i386 0:3.0.23a-1.fc4.1
samba-swat i386 0:3.0.23a-1.fc4.1
sendmail i386 0:8.13.7-2.fc4.2
sendmail-cf i386 0:8.13.7-2.fc4.2
sendmail-doc i386 0:8.13.7-2.fc4.2
Dependency Updated:
samba-common i386 0:3.0.23a-1.fc4.1 - If you run ‘vzmigrate’ using –keep-dst argument log on to your second hardware node first and rename /vz/private/1001 to /vz/private/1001.migrated. (Removing that directory is fine, too, if you’re familiar with the process).
- Now run ‘vzmigrate’ again:
#vzmigrate –keep-dst –remove-area no 192.168.0.1 1001
root@192.168.0.1’s password:
Connection to destination HN (192.168.0.1) is successfully established
Moving/copying VE#1001-> VE#1001, [], [] …
destination ‘/vz/private/1001′ for VE#1001already exists
Syncing private area ‘/vz/private/1001′
\ 100% |*****************************|
done
Stopping VE#228128 …
done
Fast syncing private area ‘/vz/private/1001′
- 100% |*****************************|
done
Starting VE#1001 …
doneSuccessfully completedSee, it worked like a charm!
vzmigrate: fixing “quota is running, stop it first” error
Sunday, December 17th, 2006When migrating a Virtuozzo VPS from one node to another using vzmigrate one might receive this error message:
# vzmigrate –keep-dst –remove-area no 192.168.0.1 1001
root@192.168.0.1’s password:
Connection to destination HN (192.168.0.1) is successfully established
Moving/copying VE#1001 -> VE#1001, [], [] …
destination ‘/vz/root/1001′ for VE#1001 already exists
destination ‘/vz/private/1001′ for VE#1001 already exists
Syncing private area ‘/vz/private/1001′
| 100% |********************************** done
Can’t move/copy VE#1001 -> VE#1001, [], [] : Starting VE …
Setting quota …
vzquota: Running vzquota init failed for VE#1001.
vzquota : (error) Quota is already running for VE#1001, stop it first.
Fixing this involves a little handwork on the destination hardware node.
- Check using ‘vzlist’ if a VPS #1001 exists (should not)
- Check if directory /vz/root/1001 exists and remove it
- Check if directory /vz/private/1001 exists and rename it to /vz/private/1001.migrated (deleting the directory is fine too)
In case you did not run ‘vzmigrate’ with ‘–keep-dst’ argument, step #3 may be omitted as this directory shouldn’t exist then.
- Disable the quoata: ‘vzquota of 1001 -f’ (yes, it will complain, but that’s ok)
- Try again migrating your VPS to the new node
As always YMMV. It worked for me when running ‘vzmigrate’ just as shown above. To be honest: This particular error happened only twice for some 50 or 60 VPS’s migrated and was likely caused by network timeouts.
wipe out directory tree through rsync
Wednesday, December 13th, 2006To wipe out a directory tree on a rsync server (an export) which you don’t have shell access to (but proper write access of course), just use this command:
# rsync -av –delete /tmp/clear.me/ rsync://some.rsync.host/some.export/
/tmp/clear.me is an example for a local but empty directory (empty as in ‘mkdir /tmp/clear.me).
Putting the slashes at the end of both local and remote path will allow you to sync the empty directory onto the server, effectively removing everything on the receiver side.

