* [linux-lvm] LVM2 and OCFS2
@ 2006-12-09 14:19 Michael Lessard
2006-12-11 10:13 ` Patrick Caulfield
0 siblings, 1 reply; 7+ messages in thread
From: Michael Lessard @ 2006-12-09 14:19 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
Hi Everyboy !
I read that LVM2 is not cluster aware (specially with OCFS2) from different
post on internet forum... If it's true, could someone could confirm this
information and point me where i can find this affirmation in documentention
?
I do some test with OCFS2 on LVM2 and it's seems to run correctly , so i
have some interrogation about this fact !
If it's true that LVM2 are not cluster aware, doess anybody know how could
i run ocfs on technology who are offer similair fonctionnality ?
Thanks in advance !
Michael
[-- Attachment #2: Type: text/html, Size: 601 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] LVM2 and OCFS2
2006-12-09 14:19 [linux-lvm] LVM2 and OCFS2 Michael Lessard
@ 2006-12-11 10:13 ` Patrick Caulfield
2006-12-11 11:35 ` Morten Torstensen
2006-12-12 0:11 ` Michael Lessard
0 siblings, 2 replies; 7+ messages in thread
From: Patrick Caulfield @ 2006-12-11 10:13 UTC (permalink / raw)
To: LVM general discussion and development
Michael Lessard wrote:
> Hi Everyboy !
>
> I read that LVM2 is not cluster aware (specially with OCFS2) from
> different post on internet forum... If it's true, could someone could
> confirm this information and point me where i can find this affirmation
> in documentention ?
>
> I do some test with OCFS2 on LVM2 and it's seems to run correctly , so
> i have some interrogation about this fact !
It's true that lvm is not cluster-aware. What that means is that if you update the volume groups on one node then the other nodes in
the cluster will not see the changes and you could end up with the block devices on the machines dangerously out of sync.
What you tried (it seems to me) is just created LVM volumes and run OCFS2 on them. that /will/ work provided you never change the
volume groups!
To get clustered LVM you need to use clvm (RPM package lvm2-cluster) which synchronises LVM metadata updates across the cluster.
This only works with Red Hat cluster suite though - you would need you write your own cluster management plugin for OCFS2 if you
wanted to use that (hard, but not impossible). Of course, RHCS does offer GFS as the cluster filesystem, if that's what you really need!
--
patrick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] LVM2 and OCFS2
2006-12-11 10:13 ` Patrick Caulfield
@ 2006-12-11 11:35 ` Morten Torstensen
2006-12-12 4:52 ` Nate Carlson
2006-12-12 0:11 ` Michael Lessard
1 sibling, 1 reply; 7+ messages in thread
From: Morten Torstensen @ 2006-12-11 11:35 UTC (permalink / raw)
To: LVM general discussion and development
Patrick Caulfield wrote:
> To get clustered LVM you need to use clvm (RPM package lvm2-cluster) which synchronises LVM metadata updates across the cluster.
> This only works with Red Hat cluster suite though - you would need you write your own cluster management plugin for OCFS2 if you
> wanted to use that (hard, but not impossible). Of course, RHCS does offer GFS as the cluster filesystem, if that's what you really need!
Another option is GPFS from IBM, free as in beer. It really is a state
of the art cluster filesystem and well worth the effort to look into if
you are in the market for a cluster FS.
--
//Morten Torstensen
//Email: morten@mortent.org
//IM: Cartoon@jabber.no morten.torstensen@gmail.com
And if it turns out that there is a God, I don't believe that he is evil.
The worst that can be said is that he's an underachiever.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] LVM2 and OCFS2
2006-12-11 10:13 ` Patrick Caulfield
2006-12-11 11:35 ` Morten Torstensen
@ 2006-12-12 0:11 ` Michael Lessard
1 sibling, 0 replies; 7+ messages in thread
From: Michael Lessard @ 2006-12-12 0:11 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]
Thanks Patrick ! I appreciate and now understand why LVM are not cluster
aware !
have good week !
Michael
On 12/11/06, Patrick Caulfield <pcaulfie@redhat.com> wrote:
>
> Michael Lessard wrote:
> > Hi Everyboy !
> >
> > I read that LVM2 is not cluster aware (specially with OCFS2) from
> > different post on internet forum... If it's true, could someone could
> > confirm this information and point me where i can find this affirmation
> > in documentention ?
> >
> > I do some test with OCFS2 on LVM2 and it's seems to run correctly , so
> > i have some interrogation about this fact !
>
> It's true that lvm is not cluster-aware. What that means is that if you
> update the volume groups on one node then the other nodes in
> the cluster will not see the changes and you could end up with the block
> devices on the machines dangerously out of sync.
>
> What you tried (it seems to me) is just created LVM volumes and run OCFS2
> on them. that /will/ work provided you never change the
> volume groups!
>
> To get clustered LVM you need to use clvm (RPM package lvm2-cluster) which
> synchronises LVM metadata updates across the cluster.
> This only works with Red Hat cluster suite though - you would need you
> write your own cluster management plugin for OCFS2 if you
> wanted to use that (hard, but not impossible). Of course, RHCS does offer
> GFS as the cluster filesystem, if that's what you really need!
>
> --
>
> patrick
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
[-- Attachment #2: Type: text/html, Size: 2181 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <fd8dc0d20612120940w2c6c4c07m51de6ea8337973d9@mail.gmail.com>]
* Re: [linux-lvm] LVM2 and OCFS2
[not found] <fd8dc0d20612120940w2c6c4c07m51de6ea8337973d9@mail.gmail.com>
@ 2006-12-12 17:46 ` Boris Ostrovsky
2006-12-13 9:00 ` Patrick Caulfield
0 siblings, 1 reply; 7+ messages in thread
From: Boris Ostrovsky @ 2006-12-12 17:46 UTC (permalink / raw)
To: pcaulfie; +Cc: linux-lvm
(Resending with cc: fixed)
> It's true that lvm is not cluster-aware. What that means is that if you update the
> volume groups on one node then the other nodes in the cluster will not see the
> changes and you could end up with the block devices on the machines dangerously
> out of sync.
What if I can guarantee that other nodes will not access LVM metadata
(i.e. they will not issue any LVM command) until I run 'vgchange -ay'
on them? The only access that those other nodes will have to volumes
is that they will have some of them mounted.
Is this still dangerous? My (limited) understanding of metadata is
that it is stored in the first few blocks of a disk (or striped, if
necessary) and is cached in lvm.cache. vgchange will sync disk and
cache, so it should be OK, right?
Thanks.
-boris
> What you tried (it seems to me) is just created LVM volumes and run OCFS2 on
> them. that will/ work provided you never change the volume groups!
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [linux-lvm] LVM2 and OCFS2
2006-12-12 17:46 ` Boris Ostrovsky
@ 2006-12-13 9:00 ` Patrick Caulfield
0 siblings, 0 replies; 7+ messages in thread
From: Patrick Caulfield @ 2006-12-13 9:00 UTC (permalink / raw)
To: Boris Ostrovsky; +Cc: linux-lvm
Boris Ostrovsky wrote:
> (Resending with cc: fixed)
>
>> It's true that lvm is not cluster-aware. What that means is that if
>> you update the
>> volume groups on one node then the other nodes in the cluster will not
>> see the
>> changes and you could end up with the block devices on the machines
>> dangerously
>> out of sync.
>
> What if I can guarantee that other nodes will not access LVM metadata
> (i.e. they will not issue any LVM command) until I run 'vgchange -ay'
> on them? The only access that those other nodes will have to volumes
> is that they will have some of them mounted.
>
> Is this still dangerous? My (limited) understanding of metadata is
> that it is stored in the first few blocks of a disk (or striped, if
> necessary) and is cached in lvm.cache. vgchange will sync disk and
> cache, so it should be OK, right?
Yes, that should work.
Just be VERY, VERY careful!
patrick
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-12-13 9:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 14:19 [linux-lvm] LVM2 and OCFS2 Michael Lessard
2006-12-11 10:13 ` Patrick Caulfield
2006-12-11 11:35 ` Morten Torstensen
2006-12-12 4:52 ` Nate Carlson
2006-12-12 0:11 ` Michael Lessard
[not found] <fd8dc0d20612120940w2c6c4c07m51de6ea8337973d9@mail.gmail.com>
2006-12-12 17:46 ` Boris Ostrovsky
2006-12-13 9:00 ` Patrick Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).