vzmigrate and shared filesystems [message #32202] |
Fri, 25 July 2008 13:44 |
Zirafarafa
Messages: 13 Registered: April 2008
|
Junior Member |
|
|
Hi all
I have a set of openvz servers which can access a shared GFS fileystem.
Some of my vz guests are hosted on the GFS system, and they are running fine.
However, if I want to migrate the vz online to a different host, how would I accomplish this, as all hosts can see the gfs share - no rsync is needed.
Any pointers for me?
|
|
|
|
|
|
|
Re: vzmigrate and shared filesystems [message #32262 is a reply to message #32202] |
Tue, 29 July 2008 01:17 |
|
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
I do not have any OpenVZ setups with shared storage so I'm not speaking from experience here... but... are you aware that vzmigrate is a shell script? Examine it, copy it... and modify it as needed to do whatever is necessary to do the operation.
I would imagine you could just checkpoint the system on the source node, transfer the checkpoint to the destination node, restore from checkpoint on the destination machine. I'm not sure what you'd need to do with the checkpointed system on the source machine... but a close look at how vzmigrate handles the checkpointing should expose at least one method.
My goal here isn't to give you the perfect answer but to get you on a path to discovery of your own solution. After you put enough effort into it and get it working as desired, you are strongly encouraged to create a wiki page on the topic.
I have run into at least one person who has a custom built OpenVZ kernel patched against a non-stable branch... and they were able to get NFS based guests and live migration working. I'd love to see a page on that too... but I'd really rather stick with the stable OpenVZ kernel branches.
An alternative that would require a total reworking of your setup, so it isn't recommended, is to use DRBD and heartbeat to create a high availability solution. There is a wiki page on that setup but again, it isn't something I've tried myself.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
[Updated on: Tue, 29 July 2008 01:20] Report message to a moderator
|
|
|
Re: vzmigrate and shared filesystems [message #32266 is a reply to message #32262] |
Tue, 29 July 2008 06:51 |
Zirafarafa
Messages: 13 Registered: April 2008
|
Junior Member |
|
|
dowdle wrote on Tue, 29 July 2008 03:17 | An alternative that would require a total reworking of your setup, so it isn't recommended, is to use DRBD and heartbeat to create a high availability solution. There is a wiki page on that setup but again, it isn't something I've tried myself.
|
Currently my shared iscsi from which the GFS is mounted is from a pair of DRBD servers, shared to 6 openvz servers.
I will check the vzmigrate script. Probably all I will need to do is to remove the rsync commands, but leave most of the rest the same.
|
|
|