make sure HA server no difference contents


 
Thread Tools Search this Thread
Operating Systems Solaris make sure HA server no difference contents
# 1  
Old 03-05-2009
Question 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.
# 2  
Old 03-06-2009
You can do something like this on each server
Code:
#  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.
# 3  
Old 03-06-2009
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.
# 4  
Old 03-06-2009
After you compare the first set, then do...

# find /var/opt/oracle .... (the rest of the command)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Changes in dhcpd.conf do not make a difference in DHCP service behaviour

Hi Experts, Our DHCP server currently answers the DHCP Discover requests from ServerX. In our dhcpd.conf file there are parameters defined for ServerX. Now we introduced some additional Servers into the network and want them to get service from the same DHCP server. Similar configuration... (13 Replies)
Discussion started by: ekorgur
13 Replies

2. Shell Programming and Scripting

Computing difference based on line contents

I have the following awk script set up to copy the contents of a line that contains 0008 in each line that contains values of 1895 through 2012. awk -v OFS=" " '{val=0+substr($1,length($1)-3,4);if(val==0008){print;$1=x;y=$0}else{if(val>=1895&&val<=2012){print $1 y}else{print}}}' Output... (7 Replies)
Discussion started by: ncwxpanther
7 Replies

3. UNIX for Dummies Questions & Answers

What difference does * make here ? (ls command question)

Solaris 10 (korn shell) I use -d option with ls command , when I want to suppress contents of the subdirectories being listed when listing all the directories and files in a directory. This is what man page says about -d option in ls command. -d If an argument is a directory,... (3 Replies)
Discussion started by: kraljic
3 Replies

4. UNIX for Dummies Questions & Answers

In AIX, what is the difference between installp and make install?

I've used installp to install packages but when is it ideal to use make install? Havent had the opportunity to use this yet. (2 Replies)
Discussion started by: NycUnxer
2 Replies

5. UNIX for Dummies Questions & Answers

Difference between configure/make/make install.

Hi, While installation of apache on linux, we perform the below tasks. 1) Untar 2) configure 3) make 4) make install. I wanted to understand the difference and working of configure/make/make install. Can any one help me understanding this? Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies

6. UNIX for Dummies Questions & Answers

difference weblogic server/webserver/app server

Hi All, I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Discussion started by: tostay2003
1 Replies

7. Shell Programming and Scripting

difference between .make and .mak file

Hi All, In our project i could see .make files and some .mak file. The build rules and the related commands been written in make file. All the project directory specific thing been written in .mak file and the project directories and makefiles are present in the subdirectories related to the... (0 Replies)
Discussion started by: rvan
0 Replies

8. UNIX for Dummies Questions & Answers

What's the difference between PMake and GNU Make?

My system is ubuntu, can I use PMake ? (0 Replies)
Discussion started by: meili100
0 Replies

9. UNIX for Dummies Questions & Answers

Will userids make a difference in performance?

I have nearly 10 users who login into the HP server (D series, HP UX 10.20) with the same UNIX user name, "liveuser", and they start the UNIX based transactions. If I create separate UNIX user-ids for all the 10, will the system performance improve? (1 Reply)
Discussion started by: augustinep
1 Replies
Login or Register to Ask a Question