* double or triple access to ext2, ext3 or other partitions
@ 2004-11-23 17:13 Luke Kenneth Casson Leighton
2004-11-23 17:30 ` Mark Williamson
2004-11-23 20:14 ` Rik van Riel
0 siblings, 2 replies; 5+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-11-23 17:13 UTC (permalink / raw)
To: xen-devel
dear xen developers,
how feasible would it be, in your opinions, to add in code into the
linux kernel / xen infrastructure, around the ext2 and ext3 filesystem
drivers, that meant, ultimately, that you could have TWO OR MORE
separate linux xen guest OSes mounting the SAME partition?
muhahahahah oo sorry.
i would envisage this as being implemented somewhere along the following
lines:
1) provide some mutex semaphore system in the xen infrastructure which
one or more linux xen guest OS could "register" with and use
2) at every point in the ext2 and ext3 filesystem drivers where
SMP-driven locking is performed, add in xen-semaphore usage and locking
(as well / instead).
presumably, the issue of locking an ext2, ext3 or other
filesystem already covers the issue of SMP-based locking,
therefore i imagine it wouldn't be too hard to utilise that
opportunity to put in "alternative" locking.
l.
--
--
<a href="http://lkcl.net">http://lkcl.net</a>
--
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: double or triple access to ext2, ext3 or other partitions
2004-11-23 17:13 double or triple access to ext2, ext3 or other partitions Luke Kenneth Casson Leighton
@ 2004-11-23 17:30 ` Mark Williamson
2004-11-23 21:06 ` Luke Kenneth Casson Leighton
2004-11-23 20:14 ` Rik van Riel
1 sibling, 1 reply; 5+ messages in thread
From: Mark Williamson @ 2004-11-23 17:30 UTC (permalink / raw)
To: Luke Kenneth Casson Leighton; +Cc: xen-devel
> 2) at every point in the ext2 and ext3 filesystem drivers where
> SMP-driven locking is performed, add in xen-semaphore usage and locking
> (as well / instead).
It's not quite that simple: the ext driver in each domain will be caching
data related to its filesystem changes in memory. In an SMP system, both
CPUs can see this cached data in memory, whereas separate virtual machines
cannot see what each other are caching.
Mounting the same partition is already possible using a cluster filesystem
(like GFS). Cluster filesystems handle the extra locking correctly
because they're designed for use with multiple hosts sharing a disk (e.g.
over a SAN). They'll even work with multiple writers.
It is also possible to export any filesystem via NFS and have it mounted
by multiple domains or to have copy-on-write semantics (e.g. using LVM) so
that domains never see each others changes (thus circumventing the
problem).
HTH,
Mark
>
> --
> --
> <a href="http://lkcl.net">http://lkcl.net</a>
> --
>
>
> -------------------------------------------------------
> 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://productguide.itmanagersjournal.com/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: double or triple access to ext2, ext3 or other partitions
2004-11-23 17:13 double or triple access to ext2, ext3 or other partitions Luke Kenneth Casson Leighton
2004-11-23 17:30 ` Mark Williamson
@ 2004-11-23 20:14 ` Rik van Riel
2004-11-23 21:08 ` Luke Kenneth Casson Leighton
1 sibling, 1 reply; 5+ messages in thread
From: Rik van Riel @ 2004-11-23 20:14 UTC (permalink / raw)
To: Luke Kenneth Casson Leighton; +Cc: xen-devel
On Tue, 23 Nov 2004, Luke Kenneth Casson Leighton wrote:
> how feasible would it be, in your opinions, to add in code into the
> linux kernel / xen infrastructure, around the ext2 and ext3 filesystem
> drivers, that meant, ultimately, that you could have TWO OR MORE
> separate linux xen guest OSes mounting the SAME partition?
Try GFS or OCFS2.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: double or triple access to ext2, ext3 or other partitions
2004-11-23 17:30 ` Mark Williamson
@ 2004-11-23 21:06 ` Luke Kenneth Casson Leighton
0 siblings, 0 replies; 5+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-11-23 21:06 UTC (permalink / raw)
To: Mark Williamson; +Cc: xen-devel
On Tue, Nov 23, 2004 at 05:30:04PM +0000, Mark Williamson wrote:
> >2) at every point in the ext2 and ext3 filesystem drivers where
> >SMP-driven locking is performed, add in xen-semaphore usage and locking
> >(as well / instead).
>
> It's not quite that simple: the ext driver in each domain will be caching
> data related to its filesystem changes in memory. In an SMP system, both
> CPUs can see this cached data in memory, whereas separate virtual machines
> cannot see what each other are caching.
oh drat.
> Mounting the same partition is already possible using a cluster filesystem
> (like GFS). Cluster filesystems handle the extra locking correctly
> because they're designed for use with multiple hosts sharing a disk (e.g.
> over a SAN). They'll even work with multiple writers.
oooooo :)
> It is also possible to export any filesystem via NFS and have it mounted
> by multiple domains or to have copy-on-write semantics (e.g. using LVM) so
> that domains never see each others changes (thus circumventing the
> problem).
in that case, the NFS server becomes the single point of failure should
it become attacked / compromised.
thank you for your advice about gfs, i will most definitely investigate
it.
ta,
l.
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: double or triple access to ext2, ext3 or other partitions
2004-11-23 20:14 ` Rik van Riel
@ 2004-11-23 21:08 ` Luke Kenneth Casson Leighton
0 siblings, 0 replies; 5+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-11-23 21:08 UTC (permalink / raw)
To: Rik van Riel; +Cc: xen-devel
On Tue, Nov 23, 2004 at 03:14:38PM -0500, Rik van Riel wrote:
> On Tue, 23 Nov 2004, Luke Kenneth Casson Leighton wrote:
>
> >how feasible would it be, in your opinions, to add in code into the
> >linux kernel / xen infrastructure, around the ext2 and ext3 filesystem
> >drivers, that meant, ultimately, that you could have TWO OR MORE
> >separate linux xen guest OSes mounting the SAME partition?
>
> Try GFS or OCFS2.
thanks!
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-23 21:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23 17:13 double or triple access to ext2, ext3 or other partitions Luke Kenneth Casson Leighton
2004-11-23 17:30 ` Mark Williamson
2004-11-23 21:06 ` Luke Kenneth Casson Leighton
2004-11-23 20:14 ` Rik van Riel
2004-11-23 21:08 ` Luke Kenneth Casson Leighton
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.