Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

empty arguments in haresources?

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


harald.dunkel at aixigo

Oct 20, 2009, 12:04 AM

Post #1 of 6 (1004 views)
Permalink
empty arguments in haresources?

Hi folks,

Maybe a stupid question, but I haven't found it answered
anywhere: How can I provide empty arguments to the "old"
resource scripts via haresources? Something like

Filesystem::/space/data::/nfs4/data::::bind
or
Filesystem::/space/data::/nfs4/data::""::bind


Regards

Harri
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


harald.dunkel at aixigo

Oct 20, 2009, 11:28 PM

Post #2 of 6 (949 views)
Permalink
Re: empty arguments in haresources? [In reply to]

Harald Dunkel wrote:
> Hi folks,
>
> Maybe a stupid question, but I haven't found it answered
> anywhere: How can I provide empty arguments to the "old"
> resource scripts via haresources? Something like
>
> Filesystem::/space/data::/nfs4/data::::bind
> or
> Filesystem::/space/data::/nfs4/data::""::bind
>

Attached is a small patch to make the Filesystem script
of 2.1.4 support

Filesystem::/space/data::/nfs4/data::none::bind


Hope this helps. Regards

Harri
Attachments: mount-bind.patch (0.29 KB)


dejanmm at fastmail

Oct 21, 2009, 3:53 AM

Post #3 of 6 (947 views)
Permalink
Re: empty arguments in haresources? [In reply to]

Hi,

On Wed, Oct 21, 2009 at 08:28:51AM +0200, Harald Dunkel wrote:
> Harald Dunkel wrote:
> > Hi folks,
> >
> > Maybe a stupid question, but I haven't found it answered
> > anywhere: How can I provide empty arguments to the "old"
> > resource scripts via haresources? Something like
> >
> > Filesystem::/space/data::/nfs4/data::::bind
> > or
> > Filesystem::/space/data::/nfs4/data::""::bind
> >
>
> Attached is a small patch to make the Filesystem script
> of 2.1.4 support

Many thanks for the patch, but bind mounts support has been
thoroughly revised at the beginning of 2009. Your version is
obviously older. Though I'm not sure if that would help for
haresources: v1 configuration is currently unmaintained.

Thanks,

Dejan

> Filesystem::/space/data::/nfs4/data::none::bind
>
>
> Hope this helps. Regards
>
> Harri
>

> --- heartbeat-2.1.4.orig/resources/OCF/Filesystem 2007-12-21 16:32:27.000000000 +0100
> +++ heartbeat-2.1.4/resources/OCF/Filesystem 2009-10-16 14:27:27.000000000 +0200
> @@ -802,6 +802,10 @@
> ;;
> esac
>
> +if [ "x$FSTYPE" = "xnone" ]; then
> + FSTYPE=""
> +fi
> +
> case $OP in
> start) Filesystem_start
> ;;

> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


harald.dunkel at aixigo

Oct 22, 2009, 12:08 AM

Post #4 of 6 (970 views)
Permalink
Re: empty arguments in haresources? [In reply to]

Hi Dejan,

Dejan Muhamedagic wrote:
>
> Many thanks for the patch, but bind mounts support has been
> thoroughly revised at the beginning of 2009. Your version is
> obviously older.

I am using heartbeat 2.1.4 (taken from Debian unstable and
backported to Lenny). 2.99 is not an option right now, even
though it seems it appeared on Debian experimental.

Is there some documentation about how the bind mounts should
be done using the v2 configuration?

> Though I'm not sure if that would help for
> haresources: v1 configuration is currently unmaintained.
>

Please note that the patch is for the v2 Filesystem script.
Supporting FSTYPE=none as an alias for FSTYPE="" might be a
reasonable extension for the v2-only folks, too.

I am using this hack on a stress test of an NFSv4 HA server
for a few days right now. The test shuts down heartbeat every
15 minutes on every other server, and starts it up again 2
minutes later. I cannot say that NFSv4 performs very well in
this test, but there were zero problems with the bind mount.


Many thanx

Harri

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Oct 22, 2009, 12:53 AM

Post #5 of 6 (933 views)
Permalink
Re: empty arguments in haresources? [In reply to]

Hi,

On Thu, Oct 22, 2009 at 09:08:37AM +0200, Harald Dunkel wrote:
> Hi Dejan,
>
> Dejan Muhamedagic wrote:
> >
> > Many thanks for the patch, but bind mounts support has been
> > thoroughly revised at the beginning of 2009. Your version is
> > obviously older.
>
> I am using heartbeat 2.1.4 (taken from Debian unstable and
> backported to Lenny). 2.99 is not an option right now, even
> though it seems it appeared on Debian experimental.
>
> Is there some documentation about how the bind mounts should
> be done using the v2 configuration?

IIRC, bind mounts were broken in the Filesystem RA until the
beginning of 2009. Take a look at this changeset (at
hg.linux-ha.org/agents) and the corresponding bugzilla for more
information:

changeset: 1354:695cddf10988
user: Dejan Muhamedagic <dejan [at] hello-penguin>
date: Fri Jan 02 19:17:13 2009 +0100
files: heartbeat/Filesystem
description: High (LF 1952): RA: Filesystem: implement bind mounts

> > Though I'm not sure if that would help for
> > haresources: v1 configuration is currently unmaintained.
> >
>
> Please note that the patch is for the v2 Filesystem script.
> Supporting FSTYPE=none as an alias for FSTYPE="" might be a
> reasonable extension for the v2-only folks, too.

Yes, I've noticed that, but since the version you're running is
rather old, couldn't find it of any use there either. If you take
a look at the changeset, you'll notice that bind mounts needed a
bit more fixing too :)

> I am using this hack on a stress test of an NFSv4 HA server
> for a few days right now. The test shuts down heartbeat every
> 15 minutes on every other server, and starts it up again 2
> minutes later. I cannot say that NFSv4 performs very well in
> this test, but there were zero problems with the bind mount.

Good!

Thanks,

Dejan

>
> Many thanx
>
> Harri
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


harald.dunkel at aixigo

Oct 26, 2009, 2:22 AM

Post #6 of 6 (889 views)
Permalink
Re: empty arguments in haresources? [In reply to]

Hi Dejan,

Dejan Muhamedagic wrote:
>
> IIRC, bind mounts were broken in the Filesystem RA until the
> beginning of 2009. Take a look at this changeset (at
> hg.linux-ha.org/agents) and the corresponding bugzilla for more
> information:
>
> changeset: 1354:695cddf10988
> user: Dejan Muhamedagic <dejan [at] hello-penguin>
> date: Fri Jan 02 19:17:13 2009 +0100
> files: heartbeat/Filesystem
> description: High (LF 1952): RA: Filesystem: implement bind mounts
>

That doesn't look bad. AFAICS your changes are in the new
"experimental" Debian package for Heartbeat 2.99. There is
an excellent chance that this becomes a part of the next
Debian release.


Many thanx

Harri
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.