Am 22.10.2008 9:25 Uhr schrieb "Xinwei Hu" unter <[EMAIL PROTECTED]>:

> Hi Annette,
2008/10/21 Annette Jäkel <[EMAIL PROTECTED]>:

> Hello,
> I 
> configured a Linux-HA-Cluster of two nodes for a redundant NFS Service.
> Its
> active/passive configuration and do not use DRBD.
>
> In my configuration I
> manage data coming from a raid array, mirrored with
> some MD Devices
> (software mirrors), distributed over a lot of file systems
> (xfs+lvm) and
> then exported by NFS. Linux-HA starting point is a self
> written ressource
> for the MD devices, followed by OCF LVM ressources. Then
> every filesystem
> mount is a ressource in linux-ha (from OCF Filesystem RA).
>
> I decided to
> set an order condition from every file system mount to the
> ressource of the
> NFS Server. So, NFS Server is not starting before any
> filesystem is mounted.
> But seems this is not a good idea, because if any of
> the file systems fails,
> the whole NFS Service breaks down (not started or
> would be stopped by
> heartbeat because of the ordering).

Sorry that my answer delayed some days. I studied the Linux-HA Book and the
linux-ha website to find further hints.

> You have 2 options here:

>First, you 
> may want to manage "exportfs" as resources, instead of
the whole NFS Service.

> In this case, "exportfs" can be grouped with your Raid1 + LVM +
Filesystem,
> and no extra dependencies are needed.

Is there a RA only for exporting mounted filesystems? I only found heartbeat
Version 1 RA "export_devices" - but it set up md-devices, mounts file
systems, exports them and start nfs server. This seems to be a lot of things
to do for one resource agent. I need individually setup of filesystems,
because my set of ha-managed filesystems can be increased or decreased from
time to time. Its not possible to stop and start the whole Fileserver-System
at this point. A new filesystem managed by linux-ha must be inserted at
runtime of heartbeat and the nfs server.

 
>Or, you may want to set the score of
> "order" less then 0.

Would the order make any further sense in this case? Maybe I dont understand
the scores in detail, but I think, then I can also remove the whole order.

> Can anyone give me a suggestion how to set up the
> ordering of the
> ressources? Should NFS server starts without any dependency
> or should it
> start after md devices or LVM rather then after mounting the
> file systems?
>
> I also think about writing a new OCF compliant RA, which
> mounts all my file
> systems at once, not only one per ressource. An attribute
> of such a RA could
> be the name of a config file similar to /etc/fstab with
> all necessary file
> systems and its devices, mount points, mount options
> etc.
>
> But maybe it is better to use OCF Filesystem RA furthermore and set
> up a
> ressource group then hidden the process of mounting file systems within
> one
> script.
>
> Any opinion?
>
> Thanks in advance for help,
>
> Annette
>
>
>
> _______________________________________________
> Linux-HA
> mailing list
> [email protected]
>
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also:
> http://linux-ha.org/ReportingProblems
>

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


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

Reply via email to