Tuesday, September 18, 2012

Networker Client Config HP UX and Solaris

Hi All,

Discussing some points to be taken care while taking and restoring backup from EMC Networker.

a. Networker Client has to be installed on the server.
b. to install the client on HP UX, use below command:-

Networker 7.6.2 or 7.6.1 will come in .pkg format, just copy the same in /tmp location and then use below command


swinstall -s /tmp/networker7.6.2.pkg :---- HP UX

pkgadd /tmp/networker7.6.2.pkg :--- Solaris

---use tab and mark the package there with m and go to install, let that complete 100% done.

--- after installation of networker client. verify the same with
command "swlist -l NetWorker"
--- files and important directories for configuration of Networker client on server.
1. vi /nsr/res/server :--- this should have Networker Server entry with FQDN option. example

nw-bkp16
nw-bkp16-xyz.com

2. the same entry should be there in /etc/hosts file for resoultion.

3. copy /etc/initSID.sap file in /oracle/SID/112_64/dbs/
4. edit this file with backuptype=online, /dev/rmt/0mn and /dev/rmt/0m is rew tape, uncomment
util_file=/oracle/SID/112_64/dbs/initSID.utl. there are some more things where we need to edit as per the server.
5. edit /oracle/SID/112_64/dbs/initSID.utl file as below:-


client= "your server hostname whose backup is to be taken"
Server= " networker Server hostname"
verbose=9

6. now we have to edit /opt/networker/brbackup.cfg which will be edited on basis of enviornment of DB. for the same check in logining into the server with orasid user as :-

su - orasid

orasid>env

this command will show path and LD_library path, PATH and other variables like NLS_LANG, we need to use the same as wirrten there in brbackup.cfg.

when this is done, Archive backup just copy the same brbackup.cfg as

cp -rp brbackup.cfg brarch.cfg


and please note that, we will be using path of this file in Networker Backup console/client.

run the below command from root login
/opt/networker/bin/nsrsapadm -P -z /opt/networker/nsrsapsv.cfg
please enter the user name as root and the password as same as in Step-1, once that is
finished it will ask to change for DB user
oracle user name:- nwdba
password:- dba#4321
/opt/networker/bin/nsrsapadm -P -z /opt/networker/nsrsapsv.cfg
Enter Operating System username: root
Enter password:
Confirm password:
32422:(pid 14206):Parameter OS_USR_PASSWD in configuration file /opt/networker/nsrsapsv.cfg is updated
Is Oracle Database Authentication used? : Y
Enter Oracle Database username: nwdba
Enter password: ********
Confirm password: ********
32422:(pid 14206):Parameter ORACLE_USR_PASSWD in configuration file /opt/networker/nsrsapsv.cfg is updated
#

7-2)))) We also need to change password for brarch backup
#/opt/networker/bin/nsrsapadm -P -z /opt/networker/nsrsapsv_brarch.cfg
Enter Operating System username: root
Enter password: ********
Confirm password: ********
32422:(pid 14455):Parameter OS_USR_PASSWD in configuration file /opt/networker/nsrsapsv_brarch.cfg is updated
Is Oracle Database Authentication used? : Y
Enter Oracle Database username: nwdba
Enter password: ********
Confirm password: ********
32422:(pid 14455):Parameter ORACLE_USR_PASSWD in configuration file /opt/networker/nsrsapsv_brarch.cfg is updated


Set the TCP keepalive interval in behind the firewall server.
ndd -get /dev/tcp tcp_keepalive_interval
7200000
ndd -set /dev/tcp tcp_keepalive_interval 30000
put the below entry in nddconf file for permanent.
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_keepalive_interval
NDD_VALUE[0]=30000
when all this is done:-
run /sbin/init.d/networker stop and then start from # prompt i.e. with root privileges.

trouble shootings :-

 

Thursday, September 13, 2012

Yum Repository on RHEL

Hi All,

Simple steps to create Yum.repo file for installation of RPM/packages with Binaries or dependant files on Lnux.

login to the server with root privilege.

mount /dev/dvd /mnt
mounting will be in read only mode.
cd /mnt
list of content will be there. now just follow below steps to create a repo.
 cd /etc/yum.repos.d/
 remove or rename any already existing repo file.
 create a new file using vi editor.
like vi yum.repo :- write into the file
[Server] :---/Package/Installater/any name u want to keep
name=Server
baseurl=file:///mnt/Packages/
gpgcheck=0
enabled=1
:wq! :- to save and exit from VI
5. yum clean all
6. yum update all.

now u should see some updates happeing on the server and after that u can use below command to install any package existing on DVD/cd of RHEL 5,5.4, 6.0 or 6.2. which is as per your DVD and as per your need.

7. yum install samba* or telnet-* or any package according to requirement.

troubleshooting:-

If yum update all shows mirror error, then try changing baseurl path as /mnt only. and run
yum clean all
again and then run
yum update all
it should not show any further errors.

=================================================================
there is another way to install local rpm packages which are just installed from internet and need dependant files.

just copy package using winscp or any tool on ur linux machine's /tmp.

yum localinstall --nogpgcheck /tmp/

==================================================================

Amit Chopra

Tuesday, September 11, 2012

LV Creation RHEL

I just wanted to write some simple steps to create LVM on RHEL linux. trying to write steps by Steps creation. please do correct or add if found me wrong.

echo "- - -" >> /sys/class/scsi_host/host0/scan :- to detect the disk host0 can host1, host2 or so. the disk can be through scsi or fc. so class changes /sys/class/fc_host/host0/scan or so...

fdisk -l
vgs
vgscan
mounting of devices.
===========================

pvcreate /dev/sdb :- can be /dev/sdc or /dev/sdd or so
vgcreate myvg /dev/sdb :-  myvg is the name of your desired VG.
lvcreate -L -n my_lv /dev/sdb :- -L is to define the size, -n to define the name of Logical volume.
mke2fs /dev/sdb/myvg-my_lv :- it will resize the file system to mentioned size for writing on to it.
mkdir /mydata
mount /dev/myvg-my_lv /mydata :- mount the device on a mount point

put an entry in /etc/fstab so that server can find the LVs mounted after reboot too.


file system type if we are not able to find and we need to write the same in fstab entry then just after mounting the device temporarily. run command "df -hT" it will show the type of file system. 

Directions to nowhere

I like to live my each day, like i spent today. I worked a lot today at office and resolved many issues. yes This I have to forget and keep my work in flow like river and keep learning new things. Accepting challenges and taking initiative is the thing i learn today.
Yes i discussed with my friend that what should I study/ with which Higher education should I go. sometimes friends are real consultants. I said him that i can do anything, still i do not know what should I do. He suggested me to hear my own decision my own heart's way. He said go with a decision. He also said to me that He knows I can do anything but putting efforts in direction is must required otherwise all efforts are waste. so just need to give direction to my efforts and flow again in the same manner.

Yes I came to know that or I realized that I do have lot of potential in me and I can put every breath of my to achieve a target.So now i am preparing for a defined goal and i will only then start my quick journey again. Thanks for a good learning to this day. Thanks to god, thanks to my Gobind.

Saturday, September 8, 2012

Crime and Money

Hi,

I donot know from where I should start. I just want to say that there are too many thoughts in me which I just want to say and write. These are not just created in two three days but as the crime is increasing now a days, people can see violence anywhere.

Everyone want to rule, eat/snatch other's feed/part of life. People are killing each other for small anount of money only. what happened to all of us, why wer can't live happily. i will tell you a news, where a small girl of 3 years old was molested by a school Bus driver and conductor. and in the other case one boy of six years of old was molested by his cab driver. Why this hunger has increased so much. Sometimes i feel the Police department is week, or our Courts doesn't punishes brutly. sometimes they release on humantarian basis, or some other reason what ever they are. but why they are released. and what will happen if we hang them in mid of the road inspite of just sending them to jail where he can still get food and shelter. but why this is so, if he has not thought that time then why court is thinking of humanity.
There should be no relief for him. he should be hanged till death or he should be punished in the local ground where each and evrey one can see that this will be  the result. but still I feel that where i am playing role in saving small kids, what I am doing to help elders, What i am doing to give happiness and safety to others. why I am not doing anything. Why I cannot take charge of making things correct. I want to Join Arm Forces/ I want to join Police Force. I want to Join Administration services. But who is I in me, is it a common man,  is he a simple man who earns for just to have his three meals of the day, just to fulfill his needs and die after the age of 60 or 70. But What is the life now. have we changed anything, or will we be able to change anything excepet us.

Now i sometime feel why I should go to a temple/ Mosque/Gurudwara/Church, or shall i take everyone there if each and everyone become a good man. or I should sit at a place and pray for each and everysinle person on earth that each should get bread and shelter. Will this help? and If this is not happening then how things will change or God will himself come and destroy everything or will teach each and every human on earth. if this can happen then I will sit for my whole life and ask god please bring peace and respect in every human for each living being. And I donot know that who on the earth will take money from earth to heaven/anywhere he will go after death. there are so many things i have taken into consideration.

but for living life, living luxury life yes we need money. but where this money is taking us, i think to the hell.
what are the solutions according to you.