make sure HA server no difference contents

hello there.

I would like to know how can I make sure HA server have exactly same contents.

for example
at timestamp 1 (before start install oracle product )
assume the both server have exactly same contents.

at timestamp 2 I install Oracle product at both server, hope it no difference.

at timestamp 3 (after install oracle product )
make sure the both server have exactly same contents.
I mean that I have to show the evidence both server have no difference contents.

any advice would be greatly appreciated.

thanks in advance.

You can do something like this on each server

#  find / -type f -print | egrep -v "^/(tmp|var|proc|sys|dev)/" | xargs  sum  2>&1 | sort -k 3,4  >/tmp/sums-`hostname -s`.out 

Then copy the files to the same machine and folder and do a diff.

You might find that some files in your system will vary no matter what. Thus, the grep command excludes directories likely to have such files. Here, I exclude all of /tmp and /var. However, you might actually want some /var directories included. Either do these dirs separately or create a longer grep expression which exclude those /var directories you do not want to compare.

It should be noted that the "sum" command produces very "weak" results. To be more certain, replace it with md5sum or some crc check.

thank you so much for your help.

I'm very glad to receive your reply.
thank you so much for your great help.

you know Oracle will create /var/opt/oracle/oratab when it's installed.
and I'm not sure if other files will be created at some other where.

That let me doubt if I lose some important files, if I just except /var.
if I don't huge files will come to the list.
I mean I see your explaining, but I can't do it exactly.

with best regards.

After you compare the first set, then do...

# find /var/opt/oracle .... (the rest of the command)