cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
@ 2011-12-13 14:20 Andrew Price
  2011-12-13 14:23 ` Steven Whitehouse
  2011-12-13 14:36 ` Fabio M. Di Nitto
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Price @ 2011-12-13 14:20 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Adds a systemd unit file to start gfs_controld at the correct point in
the boot sequence. I've tested this as much as I can on Fedora 16 but it
may require some more tweaking once the init scripts for cman, clvmd,
etc. have been migrated. The gfs2 init script has not been migrated as
systemd should now handle mounting of gfs2 file systems specially, after
remote-fs-pre.target.

Signed-off-by: Andrew Price <anprice@redhat.com>
---
 gfs2/system/gfs2-cluster.service |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 gfs2/system/gfs2-cluster.service

diff --git a/gfs2/system/gfs2-cluster.service b/gfs2/system/gfs2-cluster.service
new file mode 100644
index 0000000..d6bc0ca
--- /dev/null
+++ b/gfs2/system/gfs2-cluster.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=GFS2 Control Daemon
+After=syslog.target network.target cman.service
+Before=remote-fs-pre.target
+Wants=remote-fs-pre.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/gfs_controld $OPTIONS
+
+[Install]
+WantedBy=multi-user.target
-- 
1.7.6.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
  2011-12-13 14:20 [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit Andrew Price
@ 2011-12-13 14:23 ` Steven Whitehouse
  2011-12-13 14:36 ` Fabio M. Di Nitto
  1 sibling, 0 replies; 6+ messages in thread
From: Steven Whitehouse @ 2011-12-13 14:23 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

On Tue, 2011-12-13 at 14:20 +0000, Andrew Price wrote:
> Adds a systemd unit file to start gfs_controld at the correct point in
> the boot sequence. I've tested this as much as I can on Fedora 16 but it
> may require some more tweaking once the init scripts for cman, clvmd,
> etc. have been migrated. The gfs2 init script has not been migrated as
> systemd should now handle mounting of gfs2 file systems specially, after
> remote-fs-pre.target.
> 
> Signed-off-by: Andrew Price <anprice@redhat.com>
> ---
>  gfs2/system/gfs2-cluster.service |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
>  create mode 100644 gfs2/system/gfs2-cluster.service
> 
> diff --git a/gfs2/system/gfs2-cluster.service b/gfs2/system/gfs2-cluster.service
> new file mode 100644
> index 0000000..d6bc0ca
> --- /dev/null
> +++ b/gfs2/system/gfs2-cluster.service
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=GFS2 Control Daemon
> +After=syslog.target network.target cman.service
> +Before=remote-fs-pre.target
> +Wants=remote-fs-pre.target
> +
> +[Service]
> +Type=forking
> +ExecStart=/usr/sbin/gfs_controld $OPTIONS
> +
> +[Install]
> +WantedBy=multi-user.target

We probably don't need the $OPTIONS, but it will probably do no harm
either. Otherwise looks good,

Steve.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
  2011-12-13 14:20 [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit Andrew Price
  2011-12-13 14:23 ` Steven Whitehouse
@ 2011-12-13 14:36 ` Fabio M. Di Nitto
  2011-12-13 14:41   ` Steven Whitehouse
  2011-12-13 15:00   ` Andrew Price
  1 sibling, 2 replies; 6+ messages in thread
From: Fabio M. Di Nitto @ 2011-12-13 14:36 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On 12/13/2011 3:20 PM, Andrew Price wrote:
> Adds a systemd unit file to start gfs_controld at the correct point in
> the boot sequence. I've tested this as much as I can on Fedora 16 but it
> may require some more tweaking once the init scripts for cman, clvmd,
> etc. have been migrated. The gfs2 init script has not been migrated as
> systemd should now handle mounting of gfs2 file systems specially, after
> remote-fs-pre.target.

cman will not migrate to systemd, but I am a bit puzzled because I
thought that gfs_controld will go away? Is there a point to go through
this transition at all?

Fabio



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
  2011-12-13 14:36 ` Fabio M. Di Nitto
@ 2011-12-13 14:41   ` Steven Whitehouse
  2011-12-13 15:00   ` Andrew Price
  1 sibling, 0 replies; 6+ messages in thread
From: Steven Whitehouse @ 2011-12-13 14:41 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

On Tue, 2011-12-13 at 15:36 +0100, Fabio M. Di Nitto wrote:
> On 12/13/2011 3:20 PM, Andrew Price wrote:
> > Adds a systemd unit file to start gfs_controld at the correct point in
> > the boot sequence. I've tested this as much as I can on Fedora 16 but it
> > may require some more tweaking once the init scripts for cman, clvmd,
> > etc. have been migrated. The gfs2 init script has not been migrated as
> > systemd should now handle mounting of gfs2 file systems specially, after
> > remote-fs-pre.target.
> 
> cman will not migrate to systemd, but I am a bit puzzled because I
> thought that gfs_controld will go away? Is there a point to go through
> this transition at all?
> 
> Fabio
> 

I think that is unlikely to happen before f17 and we need to migrate
before then I think. So its a question of timing. We'll probably have to
keep gfs_controld for a few fedora versions yet bearing in mind that the
kernel patches are not upstream yet.

We are still carrying mount.gfs2 in the utils, even though that has not
been required for some time, and is not currently part of the fedora
package, for example. I'm expecting that we'll have to do the same with
gfs_controld,

Steve.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
  2011-12-13 14:36 ` Fabio M. Di Nitto
  2011-12-13 14:41   ` Steven Whitehouse
@ 2011-12-13 15:00   ` Andrew Price
  2011-12-13 15:09     ` Fabio M. Di Nitto
  1 sibling, 1 reply; 6+ messages in thread
From: Andrew Price @ 2011-12-13 15:00 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On 13/12/11 14:36, Fabio M. Di Nitto wrote:
> cman will not migrate to systemd

Just curious, but why? Wouldn't it risk getting cman blocked from fedora?

( 
https://lists.fedoraproject.org/pipermail/devel/2011-November/159157.html )

Andy



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit
  2011-12-13 15:00   ` Andrew Price
@ 2011-12-13 15:09     ` Fabio M. Di Nitto
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio M. Di Nitto @ 2011-12-13 15:09 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On 12/13/2011 4:00 PM, Andrew Price wrote:
> On 13/12/11 14:36, Fabio M. Di Nitto wrote:
>> cman will not migrate to systemd
> 
> Just curious, but why? Wouldn't it risk getting cman blocked from fedora?
> 
> (
> https://lists.fedoraproject.org/pipermail/devel/2011-November/159157.html )
> 
> Andy
> 


Because systemd is not capable of handling the complexity of cman init
script last I checked, and since it?s highly probable that we will
remove cman before F17 anyway, there is no point to invest resources there.

Fabio



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-13 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 14:20 [Cluster-devel] [PATCH] gfs2-utils: Add gfs2-cluster systemd unit Andrew Price
2011-12-13 14:23 ` Steven Whitehouse
2011-12-13 14:36 ` Fabio M. Di Nitto
2011-12-13 14:41   ` Steven Whitehouse
2011-12-13 15:00   ` Andrew Price
2011-12-13 15:09     ` Fabio M. Di Nitto

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).