Showing posts with label Virtuozzo. Show all posts
Showing posts with label Virtuozzo. Show all posts

3/02/2010

Broken OS template cache

I got a task to upgrade container with Fedora core 7 to Fedora Core 8. From available information such operation can be run as

 

vzpkg upgrade VE_ID

So I without any thoughts back up container and run upgrade. But upgrade finished with error about vzquota. after googling all what I found, was information that I should recreate cache. This operation was finished with errors too.

 

So my workaround is:

 

1. backup container

2. download OS  template from http://www.parallels.com/products/virtuozzo/templates/catalog/

3. install downloaded OS template with force option

 

vzpkg install template OS_TPL –force

 

4. recreate OS cache

 

vzpkg create cache OS_TPL

vzpkg update cache OS_TPL’

 

5. have fun with OS and container upgrade :)

11/19/2009

Container is already locked

Sometime when automated OR Manual Virtuozzo backup process gets stuck OR sometime a VPS stuck while starting up OR stopping during this stage its impossible to make any changes on that VPS. You can stop the VPS or kill the process which is running. Making any updates or trying to restart the VPS shows message “Container CTID is already locked”.

Solution:

In case of Linux this error can be fixed by deleting the lock file located at /vz/lock/CTID.lck but in Windows there is no such file.

Following are the steps to unlock the locked Container

1) vzctl stop CTID –-skiplock (try this command twice till it doesn’t show that the container is not running)
This command might throw some ERROR but no need to worry.

2) vzctl start CTID –-skiplock
This Command will throw an error if the VPS is stuck while starting or stopping.

3) After the both the above command the status of the VPS will be locked, so you will have to allow sometime to unlock the stuck processes.

4) If the above command doesn’t start the VPS, stop the VPS using –skiplock option again and kill “vzlpl” process from the Task Manager. After that you will able to start the VPS normally.

5) and restart VZAgent service

net stop vzaop

net start vzaop

http://eitwebguru.com/fix-container-is-already-locked/