ocfs2cdsl is used to create a context dependent symbolic link for filename (file or directory) for a node. A CDSL filename will have its own image for a specific node, but a common name in the OCFS2. It is very important that the ocfs2ctl command to be issued on all nodes that are part of the cluster and to any subsequent nodes that are added. If the ocfs2cdsl command is not executed in some of the nodes, the cdsl directory will not be accessible by them.
If one wants to have a shared ORACLE_HOME installed on an OCFS2 partition,
and wants to have node specific configuration filename in the same
shared ORACLE_HOME, one can have the filename created by ocfs2cdsl.
A good example would be the directory $ORACLE_HOME/network/agent. Node1
could have its own view of the directory, which is different from Node2
view, but having the exact same full pathname.
# ocfs2cdsl -c -t hostname $ORACLE_HOME/network/agent
In the example above, a CDSL directory will be created and the contents of the
agent directory will copied to the new location. If the same is to be executed
on all nodes, and assuming that no changes are made to the directory, each one of the
nodes would have the exact same view of the agent directory. In case of change
in the agent directory after the creation of the CDSL, only the node performing
the change would be able to see it. All other nodes would still have the same initial
view of the agent directory.