08-01-2017
Quote:
Originally Posted by
MichaelFelt
Something else to look into (bakunin please verify still possible - I do not have a PowerHA/SystemMirror config to review) would be to remove the mount/unmount from the start/stop scripts.
Instead, make the mounts part of the resource group - and the resource group makes sure the mounts are active before calling the start script and the unmounts are called after the stop script.
Absolutely!
Right now i don't have a HACMP-system at hand to check the details myself, but: yes, that is (still) possible and in fact is the recommended way to do it.
Mounts will be done by a sort-of start/stop-Script HACMP provides for itself, its name is "clas-nfsv4" or something similar (again, i can't check and am working from memory) which will be entered automatically when you configure an NFS-mount and/or -export. I am not sure if one can configure the order in which this and your own application-server is called but if you want to be perfectly sure configure the NFS-services in its own RG, then configure a start before/stop after-dependency with your application RG.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. AIX
We need to allow ordinary users to preform NFS mounts on a AIX server without giving them root access to the server. Is there a way to give an ordinary users root access on a tem basis or a script to allow them to preform NFS mounts? (4 Replies)
Discussion started by: daveisme
4 Replies
2. Solaris
Hey Guys.
Could someone said if is possible take a NFS resource get it from a original Server a export it and mount it in a third server ?
Thank in Advace....
SUN ADMIN (3 Replies)
Discussion started by: aggadtech08
3 Replies
3. Solaris
Hi guys.
We have filesystems resources taken from tha NAS nettap ; but the filesystem inside the solaris zone with some frecuency is unable.This filesystems are critical and we need constantly remount them.
Someone know if there are problems with the NFS resources in zones?
Where are... (3 Replies)
Discussion started by: aggadtech08
3 Replies
4. AIX
Hi,
I have a requirement to monitor the HACMP Resource Groups. At present in my environment, if the Resource Groups fail over from preferred node to Secondary node we dont get notification.
Can some one help me in creating a scrript. I have more than one RG online. (Max 4 Resource Groups in... (2 Replies)
Discussion started by: srnagu
2 Replies
5. Solaris
Hi,
I was wondering, whether there is a limit regarding the max number of nfs mounts in
Oracle Solaris 10 (newest update).
The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies
6. AIX
Hi,
I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over)
Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies
7. AIX
Hi,
I'm new to HACMP. Currently I setup a cluster with nfs cross-mount follow this guide:
kristijan.org NFS cross-mounts in PowerHA/HACMPMy cluster has two nodes: erp01 and erp02.
I'm using nfs4 with filesystem for nfs is: /sapnfs
Cluster start without problems. But I cannnot move RG (with... (3 Replies)
Discussion started by: giobuon
3 Replies
8. Shell Programming and Scripting
Gentleman and Ladies,
I am having some difficulty in regards to the find utility. I am trying to not traverse nfs mounts when searching for files or directories.
This command does not seem to work. It still returns directories that live on nfs shares. The man page says:
-fstype type... (6 Replies)
Discussion started by: jaysunn
6 Replies
9. Red Hat
We have 2 servers in cluster. Node1 has an ext3 mount for backups and the other connects using NFS to this node1.
I believe the reason it is configured in this manner is to not duplicate backups since this is a Database server. Not sure this was the reason though. Right now if node1 goes down all... (5 Replies)
Discussion started by: ikn3
5 Replies
10. Solaris
I have several Solaris 11.2 zones. when I reboot them I have to go in and do mountall to mount the NFS mounts.
any ideas where to troubleshoot why they are not automounting? (2 Replies)
Discussion started by: os2mac
2 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_nfsserver
OCF_HEARTBEAT_NFSSER(7) OCF resource agents OCF_HEARTBEAT_NFSSER(7)
NAME
ocf_heartbeat_nfsserver - Manages an NFS server
SYNOPSIS
nfsserver [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Nfsserver helps to manage the Linux nfs server as a failover-able resource in Linux-HA. It depends on Linux specific NFS implementation
details, so is considered not portable to other platforms yet.
SUPPORTED PARAMETERS
nfs_init_script
The default init script shipped with the Linux distro. The nfsserver resource agent offloads the start/stop/monitor work to the init
script because the procedure to start/stop/monitor nfsserver varies on different Linux distro. In the event that this option is not
set, this agent will attempt to use an init script at this location, /etc/init.d/nfsserver, or detect a systemd unit-file to use in the
event that no init script is detected.
(optional, string, default "auto detected")
nfs_notify_cmd
The tool to send out NSM reboot notification; it should be either sm-notify or rpc.statd. Failover of nfsserver can be considered as
rebooting to different machines. The nfsserver resource agent use this command to notify all clients about the occurrence of failover.
(optional, string, default "/sbin/sm-notify")
nfs_notify_foreground
Keeps the notify tool attached to its controlling terminal and running in the foreground.
(optional, boolean, default false)
nfs_smnotify_retry_time
Specifies the length of sm-notify retry time, in minutes, to continue retrying notifications to unresponsive hosts. If this option is
not specified, sm-notify attempts to send notifications for 15 minutes. Specifying a value of 0 causes sm-notify to continue sending
notifications to unresponsive peers until it is manually killed.
(optional, integer, no default)
nfs_shared_infodir
The nfsserver resource agent will save nfs related information in this specific directory. And this directory must be able to fail-over
before nfsserver itself.
(required, string, no default)
nfs_ip
Comma separated list of floating IP addresses used to access the nfs service
(required, string, no default)
rpcpipefs_dir
The mount point for the sunrpc file system. Default is /var/lib/nfs/rpc_pipefs. This script will mount (bind) nfs_shared_infodir on
/var/lib/nfs/ (cannot be changed), and this script will mount the sunrpc file system on /var/lib/nfs/rpc_pipefs (default, can be
changed by this parameter). If you want to move only rpc_pipefs/ (e.g. to keep rpc_pipefs/ local) from default, please set this value.
(optional, string, default "/var/lib/nfs/rpc_pipefs")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 40.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 30.
EXAMPLE
The following is an example configuration for a nfsserver resource using the crm(8) shell:
primitive p_nfsserver ocf:heartbeat:nfsserver
params
nfs_shared_infodir=string
nfs_ip=string
op monitor depth="0" timeout="20s" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/nfsserver_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_NFSSER(7)