1) First shutdown all oracle database instances and kill off any stray background oracle processes, check for stray processes using:
$ ps -ef grep ora to get process id's (pid's) of remaining Oracle processes
$ kill -9
2) Unmount all NFS partitions. e.g:
A)# umount /u07.
If you have problems unmounting because of open files, use /usr/sbin/lsof to assist you in determining what files are still open on what mount points.
B) Shutdown nfs statd and lockd.
# /sbin/service nfs stop# /sbin/service nfslock stop
3) Clear NetApp filer locks:
Execute the following from the NetApp filer command line:
§ priv set advanced§ sm_mon -l.
In many cases specifying the host name does not clear all the affecting locks, so the recommendation from NetApp is to NOT specify a hostname.
4) Restart NFS services & remount NFS partitions
# /sbin/service nfs start
# /sbin/service nfslock start
# mount -a
If it's not possible to unmount all NFS partitions, schedule a reboot to clear the stale NFS lockson the Linux host.
Example:-
[root@abcd06~]# rsh abcd09 "priv set advanced;lock status -h" grep abcdtest
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by Network Appliance personnel.
===============
NLM host abcdtest.abc.com
===============
[root@abcd06~]# rsh abcd09"priv set advanced ;sm_mon -l abcdtest"
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by Network Appliance personnel.