1820271 Members
3553 Online
109622 Solutions
New Discussion юеВ

NFS file lock migration

 
SOLVED
Go to solution
RajuD
Frequent Advisor

NFS file lock migration

Please help me to understand the work behind nfs.flm file in HA/NFS,

Thanks in advance
тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ
6 REPLIES 6
Johnson Punniyalingam
Honored Contributor

Re: NFS file lock migration

Hi Kumar,

http://docs.hp.com/en/T1442-90015/ch01s04.html

please check above link,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
sujit kumar singh
Honored Contributor
Solution

Re: NFS file lock migration

Hi


this is a mechanism to transfer the NFS File LOcks when an NFS package switches on to the other node of the SG cluster.


typically the NFS locks are kept in one of the NFS Directories in the running node on one of the exported file systems by the NFS package. and a copy of this is kept in /var/statmon/sm directory, which is synced in 5 seconds.

in the event of the NFS package failover to the adoptive node or the other nodes tge NFS locks that are maintained in one of the Direactories in the exported NFS directories of the NFS Exported package ar ecopied again in the /var/statmon/sm directory and/or viceversa so that when the package starts on the other node the old file information is again read from the NFS Exported FS to the /var/statmon/sm.

so this is used for the migration of the NFS File locks from one node to the other in the event of NFS package Failover.


regards
sujit
RajuD
Frequent Advisor

Re: NFS file lock migration

Thanks for the reply,

Can you please correct if am i wrong on the below steps for configuring the nfm.flm file.

Step 1:

create one directory for file locking.

step 2:

edit the file

and update in NFS_FLM_HOLDING_DIR

Apart from this do we need carryout any other task.
тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ
Avinash20
Honored Contributor

Re: NFS file lock migration

Is this related to Linux:
I just searched in google and could find:
http://docs.hp.com/en/T1442-90018/ch02s03.html

If Linux, you could get better response if you ask this in Linux forum

If HP-UX, let's other answer
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
sujit kumar singh
Honored Contributor

Re: NFS file lock migration

Hi
Rajesh

this is very well related to HANFS on HP-UX.

PLease refer to the following link

http://docs.hp.com/en/B5140-90039/ch02s04.html#bcfbeaaf

see the expample in there.


YOu shall need to do following
1) in the hanfs.sh yiu need to do put the entries as

NFS_FILE_LOCK_MIGRATION=1
NFS_FLM_SCRIPT="${0%/*}/nfs1.flm"

2) You shall need to create a directory on one of the LVs of the VGs that are being exported using the hanfs.sh and keep that directory empty viz in the exapmple
"/pkg1a/state"
then edit the nfs1.flm as
NFS_FLM_HOLDING_DIR="/pkg1a/state"
PROPAGATE_INTERVAL=5

3)ONLY if you are also using an nfs.mon script to monitor the NFS FLM Activity then,edit the nfs.mon withthe following entries


NFS_FILE_LOCK_MIGRATION=1 NFS_FLM_SCRIPT="${0%/*}nfs1.flm"


Please refer to the detailed link for all the information aboutt configuring the NFS FLM.


regards
sujit



RajuD
Frequent Advisor

Re: NFS file lock migration

Dear All,

Thanks for the responce and i am very much statisfied with the document provided.

Special thanks to sujit.......& Johnson

Regards
Rajesh
тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ