Hi folks, I''m in the process of learning Xen and am having a spot of bother with live migration of a domU. It may be just a blind spot in my (lack of) understanding the documentation on migration but it makes no sense to me. I have two machines, Rajah and Kodiak, both running Fedora Core 4 as domU with Fedora''s xen-2-20050522 RPM installed. Works fine. I have a Fedora Core 2 domU system (Rajah1) running on Rajah in a 4 gig ext3 partition. Works fine. Both machines are on the same VLAN. I''d like to migrate Rajah1 from Rajah to a 400 GB partition in a logical volume on Kodiak. So far I''ve not been able to figure out how to do so. Can someone who actually knows how to do this please tell me what I have to do so that "xm migrate --live Rajah1 kodiak" actually works? -- Cheers, Rob _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 4 Aug 2005, Robert Fargher wrote:> Hi folks, > > I''m in the process of learning Xen and am having a spot of bother with live > migration of a domU. It may be just a blind spot in my (lack of) > understanding the documentation on migration but it makes no sense to me. > > I have two machines, Rajah and Kodiak, both running Fedora Core 4 as domU > with Fedora''s xen-2-20050522 RPM installed. Works fine. I have a Fedora > Core 2 domU system (Rajah1) running on Rajah in a 4 gig ext3 partition. > Works fine. Both machines are on the same VLAN. > > I''d like to migrate Rajah1 from Rajah to a 400 GB partition in a logical > volume on Kodiak. So far I''ve not been able to figure out how to do so. > > Can someone who actually knows how to do this please tell me what I have to > do so that "xm migrate --live Rajah1 kodiak" actually works?AFAIK, you can''t do it as you have described. It would require syncing the two partitions first, which is hardly a "live" type of operation. AFAIK, Live migration requires that the VBD be accessable from both hosts ... so basically some sort of network aware filesystem... one of the network block device (nbd) options should also work, but I have not yet tried it (neither via NFS or NBD). -Tom ---------------------------------------------------------------------- tbrown@BareMetal.com | Always bear in mind that your own resolution to http://BareMetal.com/ | success is more important than any other one web hosting since ''95 | thing. - Abraham Lincoln _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Can someone who actually knows how to do this please tell me what I > have to do so that "xm migrate --live Rajah1 kodiak" actually works?You have to get them to run off a network file share available from both machines. Migration only sends memory contents and registers over, not the hard disk partitions, so if your VM needs there to be disk partitions there, it won''t work. Once you have it such that you can start the domain from either host using the same configuration, it Should Just Work. -- Stop the infinite loop, I want to get off! http://surreal.istic.org/ Paraphernalia/Never hides your broken bones,/ And I don''t know why you''d want to try:/ It''s plain to see you''re on your own. -- Paul Simon The documentation that can be written is not the true documentation. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Robert Fargher wrote: > Hi folks, > > I''m in the process of learning Xen and am having a spot of bother > > with live > migration of a domU. It may be just a blind spot in my (lack of) > understanding the documentation on migration but it makes no sense to > me. Xen do not migrate the filesystem, the root filesystem of Rayah1 (domU) must reside on a third machine, and exported via NFS or DRBD (http://sources.redhat.com/cluster/gnbd/gnbd_usage.txt), DRBD, ATA over ethernet. In brief Set up a 3° machine, copy the rajah1 filesystem on 3° Machine and export via NFS (for testing) or GNBD (production) to Rajah. Test that Rajah e Kodiak are able to mount the remote filesystem. Configure Rajah1 on Rajah to boot with the remote filesystem. ''Xm migrate Rajah1 kodiak'' move processes and ram to kodiak but disconnect(umount) the remote root filesystem in Rajak and reconnect(mount) the root filesystem in kodiak. Daniele _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I was told you couldn''t run xen images from NFS? Is that no longer the case, or have I got my wires crossed? Thanks. On 05/08/05, daniele patoner <daniele.patoner@biblio.unitn.it> wrote:> Robert Fargher wrote: > > Hi folks, > > > > I''m in the process of learning Xen and am having a spot of bother > > > with live > > migration of a domU. It may be just a blind spot in my (lack of) > > understanding the documentation on migration but it makes no sense to > > me. > > Xen do not migrate the filesystem, the root filesystem of Rayah1 (domU) > must reside on a third machine, and exported via NFS or DRBD > (http://sources.redhat.com/cluster/gnbd/gnbd_usage.txt), DRBD, ATA over > ethernet. > > In brief > > Set up a 3° machine, copy the rajah1 filesystem on 3° Machine and export > via NFS (for testing) or GNBD (production) to Rajah. > > Test that Rajah e Kodiak are able to mount the remote filesystem. > > Configure Rajah1 on Rajah to boot with the remote filesystem. > > ''Xm migrate Rajah1 kodiak'' move processes and ram to kodiak but > disconnect(umount) the remote root filesystem in Rajak and > reconnect(mount) the root filesystem in kodiak. > > Daniele > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users