The preonline script copies the lock state files created by the node status monitor (normally called statd
or rpc.statd
daemon) during IP failovers and node failures.
The preonline script does the following on IP failover or node failure:
Finds the IP and the node it was last online on.
Finds the node on which the IP is next going to go online on.
Check if the /locks/sm/lastonline/sm/
directory is empty. If it is empty, then exit as there is no lock. There is no need to restart lockd.
Calls /opt/VRTS/bin/fsclustadm frlpause_enable
and /opt/VRTS/bin/fsclustadm frlock_pause
to ensure that file system does not give out any new locks during the failover.
Stops lock and status services on all nodes to prevent granting locks.
Copies all the files from /locks/sm/lastonline/sm/
to /locks/sm/nextonline/sm/ directory.
where locks is the file system created for storing lock information.
where lastonline is the node on which the VIP resource was previous online.
where nextonline is the node on which the VIP resource will go online next.
Calls /opt/VRTS/bin/fsclustadm frlock_resume
to resume giving out locks.