OpenVZ Forum


Home » General » Support » Keeping the VEs upon hardware machine reinstall?
Re: Keeping the VEs upon hardware machine reinstall? [message #29853 is a reply to message #29839] Sun, 27 April 2008 11:03 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,
1.

A particular VPS can be considered as a set of three parts:
- Disk data.
- Resource limits.
- Some kind of confuguration.

a) /vz/private/VE_ID is responsible for the first item.
b) VE.conf file is responsible for the last two items.


So, for example what value of PRIVVMPAGES do you expect from the following command?
Quote:


vzctl create 10000 --noostemplate --private /vz/private/10000




2.
Quote:


1. Save /etc/vz/conf directory.[...]


You can create two simple scripts:
- One of them save that directory or for example move it to the "/vz" partition
- The other restore /etc/vz/conf directory
"/etc/vz/conf" contains only conf files.
Run the first script when you want to reinstall your HN. It saves ALL your VPSes.
And then run the second one after you reinstall HN.

Then just type:
vzctl start VE_ID


It should work!



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debian: no network after upgrade
Next Topic: Install errors
Goto Forum:
  


Current Time: Sun Aug 11 21:07:37 GMT 2024

Total time taken to generate the page: 0.02911 seconds