OpenVZ Forum


Home » Mailing lists » Users » Physical server to OpenVZ
Physical server to OpenVZ [message #20288] Fri, 14 September 2007 15:41 Go to next message
Stefan Kok is currently offline  Stefan Kok
Messages: 2
Registered: September 2007
Junior Member
Hi List

I am brand new to OpenVZ. I will get straight to the point.

I want to  backup physical servers on remote sites with tar/dump and
restore them at our central office to  virtual machine.  Once disaster
strikes move the virtual server to a new physical server and transport
it to the remote office. 


My question: 

1) Is this possible (backup physical server and restore to virtual) ?
2) If so is there any documentation / HOWTO's or pointers that you could
give please ?

Thanks in advance.

Regards
Stefan.
Re: Physical server to OpenVZ [message #20291 is a reply to message #20288] Fri, 14 September 2007 16:41 Go to previous messageGo to next message
Gregor Mosheh is currently offline  Gregor Mosheh
Messages: 62
Registered: April 2007
Member
Stefan Kok wrote:
> 1) Is this possible (backup physical server and restore to virtual) ?
> 2) If so is there any documentation / HOWTO's or pointers that you could
> give please ?

The basic OS would survive a tar/untar process. But there're some items 
typically missing from a VPS setting which would be vital to running on 
a physical server. The first that come to mind are module utilities 
(modprobe et al) and the modules themselves, some daemons (klogd, 
udevd), and then a few fundamental config files (fstab, lilo.conf or /boot).

I think that you probably *could* do it with a lot of effort (90% of it 
being adding new packages to the VPS after you're untarred it), but that 
if your goal is fast and reliable recovery, you'd be best off restoring 
the VPS into a VPS setting. It's not difficult or time-consuming to 
install the OpenVZ system, and they could easily have it installed by 
the time the backup drive arrived at the new office.

If the new HN already had OpenVZ, then it's trivially simple to run 
vzctl create to generate the VPS, then replace the content under 
/vz/private/X with the tar content.

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA
Re: Physical server to OpenVZ [message #20309 is a reply to message #20288] Sat, 15 September 2007 09:44 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

P2V migration is described in http://wiki.openvz.org/Physical_to_VE,
that involves some manual tuning.

V2P is also possible but don't make much sense to me -- it's way better
to use VE than a real server.

Stefan Kok wrote:
> Hi List
>
> I am brand new to OpenVZ. I will get straight to the point.
>
> I want to  backup physical servers on remote sites with tar/dump and
> restore them at our central office to  virtual machine.  Once disaster
> strikes move the virtual server to a new physical server and transport
> it to the remote office. 
>
>
> My question: 
>
> 1) Is this possible (backup physical server and restore to virtual) ?
> 2) If so is there any documentation / HOWTO's or pointers that you could
> give please ?
>
> Thanks in advance.
>
> Regards
> Stefan.
>
Re: Physical server to OpenVZ [message #20366 is a reply to message #20309] Mon, 17 September 2007 11:20 Go to previous message
Stefan Kok is currently offline  Stefan Kok
Messages: 2
Registered: September 2007
Junior Member
Thanks for the replies. Its helped a lot.

Stefan.

On Sat, 2007-09-15 at 13:44 +0400, Kir Kolyshkin wrote:
> P2V migration is described in http://wiki.openvz.org/Physical_to_VE,
> that involves some manual tuning.
> 
> V2P is also possible but don't make much sense to me -- it's way better
> to use VE than a real server.
> 
> Stefan Kok wrote:
> > Hi List
> >
> > I am brand new to OpenVZ. I will get straight to the point.
> >
> > I want to  backup physical servers on remote sites with tar/dump and
> > restore them at our central office to  virtual machine.  Once disaster
> > strikes move the virtual server to a new physical server and transport
> > it to the remote office. 
> >
> >
> > My question: 
> >
> > 1) Is this possible (backup physical server and restore to virtual) ?
> > 2) If so is there any documentation / HOWTO's or pointers that you could
> > give please ?
> >
> > Thanks in advance.
> >
> > Regards
> > Stefan.
> >
Previous Topic: vzctl start 777 -> RTNETLINK answers: No such device
Next Topic: Live Migration and shell
Goto Forum:
  


Current Time: Sat May 04 06:50:51 GMT 2024

Total time taken to generate the page: 0.01683 seconds