* Concurrent mount of XFS over SAN @ 2006-08-03 14:33 Heilige Gheist 2006-08-03 21:40 ` Dave Lloyd 0 siblings, 1 reply; 6+ messages in thread From: Heilige Gheist @ 2006-08-03 14:33 UTC (permalink / raw) To: xfs Is there a way to prevent and/or detect concurrent mount of same XFS SAN-based partition from several nodes? I had to fsck a filesystem losing some data after two nodes happily mounted a filesystem from same SAN-based partition at the same time and wrote into it. Thanks! --alan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Concurrent mount of XFS over SAN 2006-08-03 14:33 Concurrent mount of XFS over SAN Heilige Gheist @ 2006-08-03 21:40 ` Dave Lloyd 2006-08-07 8:48 ` Heilige Gheist 0 siblings, 1 reply; 6+ messages in thread From: Dave Lloyd @ 2006-08-03 21:40 UTC (permalink / raw) To: Heilige Gheist; +Cc: xfs Heilige Gheist wrote: > Is there a way to prevent and/or detect concurrent mount of same XFS > SAN-based partition from several nodes? > I had to fsck a filesystem losing some data after two nodes happily > mounted a filesystem from same SAN-based partition at the same time and > wrote into it. > Thanks! > > --alan > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > I think that the generally accepted way is to zone at the switch or the storage array. -- Dave Lloyd Test Engineer, Exegy, Inc. 314.450.5342 dlloyd@exegy.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Concurrent mount of XFS over SAN 2006-08-03 21:40 ` Dave Lloyd @ 2006-08-07 8:48 ` Heilige Gheist 2006-08-07 10:13 ` Jan-Frode Myklebust 0 siblings, 1 reply; 6+ messages in thread From: Heilige Gheist @ 2006-08-07 8:48 UTC (permalink / raw) To: Dave Lloyd; +Cc: xfs Dave, That's 100% correct assuming you prohibit a shared access between the nodes. I didn't point out that we're dealing with filesystem failover setup. It's obvious that I can always fall back to the inter-node heart-beat to ensure that only one node is mounting the filesystem. I'm just wondering if there's any facility or accepted practice to enforce it. Thanks, Alan --- Dave Lloyd <dlloyd@exegy.com> wrote: > Heilige Gheist wrote: > > Is there a way to prevent and/or detect concurrent mount of same > XFS > > SAN-based partition from several nodes? > > I had to fsck a filesystem losing some data after two nodes > happily > > mounted a filesystem from same SAN-based partition at the same > time and > > wrote into it. > > Thanks! > > > > --alan > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > > I think that the generally accepted way is to zone at the switch or > the > storage array. > > -- > Dave Lloyd > Test Engineer, Exegy, Inc. > 314.450.5342 > dlloyd@exegy.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Concurrent mount of XFS over SAN 2006-08-07 8:48 ` Heilige Gheist @ 2006-08-07 10:13 ` Jan-Frode Myklebust 2006-08-07 11:01 ` kris buggenhout 0 siblings, 1 reply; 6+ messages in thread From: Jan-Frode Myklebust @ 2006-08-07 10:13 UTC (permalink / raw) To: linux-xfs On 2006-08-07, Heilige Gheist <hgheist@yahoo.com> wrote: > It's obvious that I can always fall back to the inter-node heart-beat > to ensure that only one node is mounting the filesystem. > I'm just wondering if there's any facility or accepted practice to > enforce it. STONITH (Shoot The Other Node In The Head) trough smart power switches or management adapters in the node. SCSI reserve/release ... No idea how reliable this is on a SAN, but the ServeRAID-version works great. http://www.linux-ha.org/ServeRAID Export the volume group, or scsi device on the first node, before importing/attaching it on the second .. Probably best to use together with STONITH, in case the first node fails on unmounting/exporting. BTW: I think XFS on IRIX had the owning node name in the file system header, and only would allow this node to mount the fs. But I can't find this now... Maybe it's gone, or maybe it was in xlv.. ? -jf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Concurrent mount of XFS over SAN 2006-08-07 10:13 ` Jan-Frode Myklebust @ 2006-08-07 11:01 ` kris buggenhout 2006-08-07 13:12 ` Sebastian Brings 0 siblings, 1 reply; 6+ messages in thread From: kris buggenhout @ 2006-08-07 11:01 UTC (permalink / raw) To: Jan-Frode Myklebust; +Cc: linux-xfs afaik, the node was stored in xlv, which was an extra option in IRIX, ( extra license) but this could later be used in CXFS which allows multiple machines to mount the same FS read write from a SAN, made for clusters, HA and HPC... knowledge of the node "owning" the device was in there for protection. but can be overridden with an xlv command. kind regards, Kris Jan-Frode Myklebust wrote: > On 2006-08-07, Heilige Gheist <hgheist@yahoo.com> wrote: > >> It's obvious that I can always fall back to the inter-node heart-beat >> to ensure that only one node is mounting the filesystem. >> I'm just wondering if there's any facility or accepted practice to >> enforce it. >> > > STONITH (Shoot The Other Node In The Head) trough smart power switches > or management adapters in the node. > > SCSI reserve/release ... No idea how reliable this is on a SAN, but the > ServeRAID-version works great. http://www.linux-ha.org/ServeRAID > > Export the volume group, or scsi device on the first node, before > importing/attaching it on the second .. Probably best to use together > with STONITH, in case the first node fails on unmounting/exporting. > > BTW: I think XFS on IRIX had the owning node name in the file system header, > and only would allow this node to mount the fs. But I can't find this now... > Maybe it's gone, or maybe it was in xlv.. ? > > > -jf > > > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Concurrent mount of XFS over SAN 2006-08-07 11:01 ` kris buggenhout @ 2006-08-07 13:12 ` Sebastian Brings 0 siblings, 0 replies; 6+ messages in thread From: Sebastian Brings @ 2006-08-07 13:12 UTC (permalink / raw) To: kris buggenhout, Jan-Frode Myklebust; +Cc: linux-xfs Maybe off topic meanwhile, but both Irix volume managers xlv and xvm have the owner stored in the header. Xvm also has an understanding of a cluster owning the volume, which is required for cxfs. In a failover environment you absolutely have to make sure the failed machine really has no more access to the volume, preferably by fencing the FC switch ports, before you mount it on the standby system. STONITH implementations also work, but still two machines have to agree on the ownership when the failed machine comes up again. Cheers Sebastian > -----Original Message----- > From: xfs-bounce@oss.sgi.com [mailto:xfs-bounce@oss.sgi.com] On Behalf Of > kris buggenhout > Sent: Montag, 7. August 2006 13:02 > To: Jan-Frode Myklebust > Cc: linux-xfs@oss.sgi.com > Subject: Re: Concurrent mount of XFS over SAN > > afaik, the node was stored in xlv, which was an extra option in IRIX, ( > extra license) but this could later be used in CXFS which allows > multiple machines to mount the same FS read write from a SAN, made for > clusters, HA and HPC... > > knowledge of the node "owning" the device was in there for protection. > but can be overridden with an xlv command. > > kind regards, Kris > > Jan-Frode Myklebust wrote: > > On 2006-08-07, Heilige Gheist <hgheist@yahoo.com> wrote: > > > >> It's obvious that I can always fall back to the inter-node heart-beat > >> to ensure that only one node is mounting the filesystem. > >> I'm just wondering if there's any facility or accepted practice to > >> enforce it. > >> > > > > STONITH (Shoot The Other Node In The Head) trough smart power switches > > or management adapters in the node. > > > > SCSI reserve/release ... No idea how reliable this is on a SAN, but the > > ServeRAID-version works great. http://www.linux-ha.org/ServeRAID > > > > Export the volume group, or scsi device on the first node, before > > importing/attaching it on the second .. Probably best to use together > > with STONITH, in case the first node fails on unmounting/exporting. > > > > BTW: I think XFS on IRIX had the owning node name in the file system > header, > > and only would allow this node to mount the fs. But I can't find this > now... > > Maybe it's gone, or maybe it was in xlv.. ? > > > > > > -jf > > > > > > > > > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-07 14:53 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-08-03 14:33 Concurrent mount of XFS over SAN Heilige Gheist 2006-08-03 21:40 ` Dave Lloyd 2006-08-07 8:48 ` Heilige Gheist 2006-08-07 10:13 ` Jan-Frode Myklebust 2006-08-07 11:01 ` kris buggenhout 2006-08-07 13:12 ` Sebastian Brings
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox