[Pacemaker] NFSv4 Cluster - Creating NFS resource in fedora 16 fails

Andrew Beekhof andrew at beekhof.net
Fri Feb 24 00:19:16 UTC 2012


On Tue, Jan 10, 2012 at 12:49 AM, Vogelsang, Andreas
<a.vogelsang at uni-muenster.de> wrote:
> Hello together!
>
> I’m trying to set up an NFSv4 Cluster. As operating system I choose Fedora 16. I’m following this Manual from LINBIT: “Highly available NFS storage with DRBD and Pacemaker” (http://www.linbit.com/en/education/tech-guides/highly-available-nfs-with-drbd-and-pacemaker/)
> But at the Point 4.2 I’ve got a Problem. The NFS Daemon in Fedora is “nfs-utils” (As least I think so). But this Daemon isn’t listed in /etc/init.d and so I can’t create a LSB Resource.

Right, this is the whole systemd transition in fedora.
Unfortunately we dont support systemd yet.

You could fake it by creating /etc/init.d/nfs-utils which contains:

service whatever-the-unit-file-is-called start


You can look it up with:

systemctl list-units | grep service

You just want the prefix without the .service suffix

> This is the output when I going to create a LSB Resource with the nfs-kernel-server (as in the manual)
>
>         crm(live)configure# primitive p_lsb_nfsserver \
>         > lsb:nfs-kernel-server \
>         > op monitor interval="30s"
>         ERROR: lsb:nfs-kernel-server: could not parse meta-data:
>         ERROR: lsb:nfs-kernel-server: no such resource agent
>
> This is the output when trying to create a LSB Resource with “nfs-utils”
>
>         crm(live)configure# primitive p_lsb_nfsserver \
>         > lsb:nfs-utils \
>         > op monitor interval="30s"
>         ERROR: lsb:nfs-utils: could not parse meta-data:
>         ERROR: lsb:nfs-utils: no such resource agent
>
> I know that I have to choose another Resource type (nfsserver for example) but then I must configure the IP and the shared dir. In the manual a “exportfs” Resource is created for that.
>
> This is in my /etc/init.d folder:
>         [root at Cluster02 init.d]# ls
>         blktapctrl        drbd        netfs      vmware-tools  xendomains
>         ceph              functions   network    xencommons    xenstored
>         corosync          heartbeat   pacemaker  xenconsoled   xen-watchdog
>         corosync-notifyd  netconsole  sandbox    xend
>
> And this is my cib:
>         crm(live)configure# show
>         node Cluster01.azubinet.local
>         node Cluster02.azubinet.local
>         primitive p_drbd_nfs ocf:linbit:drbd \
>         params drbd_resource="nfs" \
>         op monitor interval="15" role="Master" \
>         op monitor interval="30" role="Slave"
>         ms ms_drbd_nfs p_drbd_nfs \
>         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
>         property $id="cib-bootstrap-options" \
>         dc-version="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore"
>         rsc_defaults $id="rsc-options" \
>         resource-stickiness="200"
>
> I am grateful for every hint
>
> ---
> Mit freundlichen Grüßen / Best regards
>
> Andreas Vogelsang
>
> Westfälische Wilhelms-Universität Münster
> IVV 4 - Naturwissenschaften
> Raum 231, Institutsgruppe 1
> Wilhelm-Klemm-Straße 10
> 48149 Münster, Germany
> Tel.: +49 (0)251/83-39130
> Fax.: +49 (0)251/83-33669
> E-Mail: a.vogelsang at uni-muenster.de
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list