[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ogfs-dev]Map OpenDLM to G-lock: lock name




> -----Original Message-----
> From: Dominik Vogt [mailto:opengfs-devel@lists.sourceforge.net]
> Sent: Thursday, August 14, 2003 4:47 AM
> To: opengfs-devel@lists.sourceforge.net
> Subject: Re: [ogfs-dev]Map OpenDLM to G-lock: lock name
> 
> The most likely problem I see is how to share one odlm for
> multiple ogfs partitions.  How can this be achieved?

I'm not sure what you mean by "multiple ogfs partitions"??  If you mean multiple filesystems (e.g. one fs on /dev/something1, mounted at /ogfs1, and another fs on /dev/something2, mounted at /ogfs2), they would need to be differentiated by the locktable/lockspace info.

A user/admin would need to enter a locktable string, either with "-t" option when running mkfs.ogfs (this writes it into on-disk superblock), or with "locktable=" option when mounting the filesystem (this overrides the superblock data).  This is analogous to specifying the cidev for memexp.  memexp enforces that the cidev must be *unique for each filesystem* (and, of course, it must be identical for each node accessing the filesystem).

Hmmm, maybe the value within the OpenDLM lockname should be a 4-char (8?) hash of the locktable string??  This way, the user/admin could enter a real cidev /dev/cidevxxx string for memexp, and be able to use the same string for opendlm??  Stanley was thinking about using the last 4 characters, but a hash would be more robust, with fewer ways for the user/admin to fall into a trap (e.g. /dev/0cidev vs /dev/1cidev).

Is this what you meant, or were you thinking of something else?

-- Ben --

Opinions are mine, not Intel's

> 
> Bye
> 
> Dominik ^_^  ^_^
> 


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opengfs-devel mailing list
Opengfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opengfs-devel


[Kernel]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Clusters]     [Linux RAID]     [Yosemite Hiking]     [Linux Resources]

Powered by Linux