All of lore.kernel.org
 help / color / mirror / Atom feed
* Another migration question
@ 2005-03-17  4:13 Stefan Berger
  2005-03-17  9:27 ` Keir Fraser
  2005-03-17 14:31 ` M.A. Williamson
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Berger @ 2005-03-17  4:13 UTC (permalink / raw)
  To: xen-devel

Hi!

  I had a look at the migration code in the kernel 
(arch/xen/kernel/reboot:__do_suspend()). I am surprised that migration 
actually seems possible when the block device frontend has mounted a 
device. Shouldn't it rather refuse to be suspended, assuming that the 
partition can be migrated to another machine and possibly harm a 
filesystem there? I would also think that there should be a user-level 
daemon trying to unmount hard drive partitons before any migration is 
initited. I suppose the same problem will arise with the USB driver.

Regards,
    Stefan Berger



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Another migration question
@ 2005-03-17 10:42 Ian Pratt
  0 siblings, 0 replies; 7+ messages in thread
From: Ian Pratt @ 2005-03-17 10:42 UTC (permalink / raw)
  To: Stefan Berger, xen-devel; +Cc: ian.pratt


>   I had a look at the migration code in the kernel 
> (arch/xen/kernel/reboot:__do_suspend()). I am surprised that 
> migration 
> actually seems possible when the block device frontend has mounted a 
> device. Shouldn't it rather refuse to be suspended, assuming that the 
> partition can be migrated to another machine and possibly harm a 
> filesystem there? 

We could build in more idiot proofing into xend, but the current
situation works fine for someone that knows what they're doing. 

For migration to work it obviously has to be possible to access the old
block device in the new place. You can do this with a SAN, iSCSI, GNBD,
drdb etc.

> I would also think that there should be a 
> user-level 
> daemon trying to unmount hard drive partitons before any migration is 
> initited. I suppose the same problem will arise with the USB driver.

It's not possible to unmount your root filesystem. I guess we could put
a few sanity checks in to ensure that the contents of the device after
the migrate appears to be the same as before, but this is non-trivial
and could potetnailly trigger false positives e.g. in the case of GFS or
OCFS2.

The next generation tools might provide more saftey checks to help stop
people shooting their own feet...

Ian




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-18  1:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17  4:13 Another migration question Stefan Berger
2005-03-17  9:27 ` Keir Fraser
2005-03-17 14:31 ` M.A. Williamson
2005-03-17 15:29   ` Harry Butterworth
2005-03-17 21:25     ` Jacob Gorm Hansen
2005-03-18  1:27       ` Eric S. Johansson
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17 10:42 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.