Sunday, September 30, 2012

Who is Poor

The first thing which comes in our mind, when we hear this word "POOR" is The Man who earns very less and hardly lives his life. But is this true, Is it really this term means, What your think? How do you see a POOR man? what you try to find in a person?  We need to find the answer in ourselves first of all.
                                                       According to some observation which i did at my personal level. Poor is He/She who do not understand what basic requirements are. Not food and clothes, but attitude, Behavior, respect to other as Human Being. We now, feel like Money will bring every happiness, Money will take us somewhere to heaven and we will be on the top of GOD too someday. It makes me feel like, why I born in this world, shall i also respond like people who are killing each other for the sake of money. which will remain for some days for last for some decade (if managed anyhow) but how long. Why we don't understand the Humanity. I may be using some BIG and heavy words, which may not be digestible by some people. Hunger for food is fine, but Hunger for Money, Hunger for Lust, Hunger for living a Royal life. Why we do not care about our coming generations, Our Nature which has given us everything fresh. Why we are destroying it.
I the BIG "I" in us not dieing and killing others for its own existence. even if we consider one's life. one is not able to live properly when I in him exist. now a days, We all are having an invisible knife or pistol in our hands. With which we are not directly killing others because just of some left fear  from getting caught by Police or punishment. but we indirectly making a person less able than us not to live and kill himself. Mangers are keeping their feet on their subordinates and want to grow and want to be in eyes of his/her Managers. People who have some little knowledge too, they do not share knowledge because they fear if he/she or subordinate took his place then what will happen. we all are scared in inside us only. We are not open to a person until we find a person giving some benefit to us.
 We are Poor in terms of our Thoughts, Positive attitude, behavior, living life.

Please suggest some ideas to overcome these.                                

Saturday, September 29, 2012

RAID 5 after EFI shell + HP UX

After lot of struggle we found which was said to us, to press ESC + 8 (number key) to go after selecting EFI shell while HP UX 11.31 OS installation.
this is actually HARDWARE RAID selection while installation of HP-UX operating system on RX2660 system. what i was doing, toggling between f8 key and ESC key. these were bringing me every time to HPUX>
after this we need to write exit and then we come to SHELL> or shell>

then RESET (reset as command in small letter) and then system reboots and again this cycle repeats.

now when after selecting EFI SHELL from boot screen, we did following.



"'Combination of ESC and 8 (number 8 key)worked, need to press them simultaneously. When asked after booting the server in EFI shell."" 

 Requirement is :- TO REMOVE OLD RAID 1+0 (HARDWARE RAID) AND RECONFIGURING RAID 5 AS HARDWARE RAID FOR ALL THE DISK AND MORE SPACE IN TOTAL OF 4 DISKS. 
first of all, we have to check old configuration by selecting view logical drive. it showed us RAID 1+0. after this we selected F3 , if it doesn't work then use combination of ESC and 3(number 3 key) simultaneously again. It will show a message like below. confirm the same using again ESC and 3 key.

Now it will say saving configuration ad bring back to the 3 option as in the first screen shots. we can check the same using view logical drive option. now select CREATE LOGICAL DRIVE. here we need to select all drive on or left side, we selected our 4 drives, in your case may be different. and on right side with arrow keys select RAID 5. and save the configuration with combination of keys suggested. save it check and again. and exit and reboot with new installation via DVD or via IGNITE. after installation, continue to use HP UX. my love. :) cheeerss!!!!!!!!!!!!!!














 







Saturday, September 22, 2012

Extending a VG and LV LINUX release 6.0

Extending a VG and LV LINUX release 6.0

[root@linux5 scsi_host]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
[root@linux5 scsi_host]#

I am trying to raise the size of root filesystem Online. Steps I did were as below.

1. After assigning the disk to LINU Machine, you need to run "fdisk -l", if still the disk is not visible after being assigned, please run below command.
#echo "- - -" >> /sys/class/scsi_host/host0 or host1 or host2 or so.
[root@linux5 scsi_disk]# cd ../scsi_host/
[root@linux5 scsi_host]# ls -ltr
total 0
lrwxrwxrwx. 1 root root 0 Sep 22 13:22 host3 -> ../../devices/pci0000:00/0000:00:0d.0/host3/scsi_host/host3
lrwxrwxrwx. 1 root root 0 Sep 22 13:22 host2 -> ../../devices/pci0000:00/0000:00:0d.0/host2/scsi_host/host2
lrwxrwxrwx. 1 root root 0 Sep 22 13:22 host1 -> ../../devices/pci0000:00/0000:00:01.1/host1/scsi_host/host1
lrwxrwxrwx. 1 root root 0 Sep 22 13:22 host0 -> ../../devices/pci0000:00/0000:00:01.1/host0/scsi_host/host0
[root@linux5 scsi_host]#
[root@linux5 scsi_host]#
[root@linux5 scsi_host]#
[root@linux5 scsi_host]#
[root@linux5 scsi_host]# uname -a
Linux linux5 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@linux5 scsi_host]# pwd
/sys/class/scsi_host
[root@linux5 scsi_host]#

then disk will be visible.
1. the o/p of "vgdisplay" without assigning new disk to LINUX Machine.
[root@linux5 /]#
[root@linux5 /]# vgdisplay
  --- Volume group ---
  VG Name               vg_linux5
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               11.50 GiB
  PE Size               4.00 MiB
  Total PE              2945
  Alloc PE / Size       898 / 3.51 GiB
  Free  PE / Size       2047 / 8.00 GiB
  VG UUID               1kibLc-6d5o-MNlv-Vmfc-l96i-z6fP-oHLMv2
[root@linux5 /]#
[root@linux5 /]#

after detection of newly assigned disk to LINUX MACHINE with "FDISK -L", like on my machine it was detected as /dev/sdb
I did following steps to extend VG.
# pvcreate /dev/sdb
# vgextend vg_linux5 /dev/sdb ##### vg_linux5 is my VG name built for root file system.
# lvextend -L +2G /dev/mapper/vg_linux5-lv_root.
o/p shown below :-
[root@linux5 /]# vgdisplay
  --- Volume group ---
  VG Name               vg_linux5
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               11.50 GiB
  PE Size               4.00 MiB
  Total PE              2945
  Alloc PE / Size       898 / 3.51 GiB
  Free  PE / Size       2047 / 8.00 GiB
  VG UUID               1kibLc-6d5o-MNlv-Vmfc-l96i-z6fP-oHLMv2
[root@linux5 /]#
[root@linux5 /]#
[root@linux5 /]#
[root@linux5 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_linux5-lv_root
                      1.8G  1.2G  536M  69% /
tmpfs                 499M     0  499M   0% /dev/shm
/dev/sda1             194M   25M  159M  14% /boot
[root@linux5 /]#
[root@linux5 /]#
[root@linux5 /]# pwd
/
[root@linux5 /]#
[root@linux5 /]# lvextend -L +2G /dev/mapper/vg_linux5-lv_root
  Extending logical volume lv_root to 3.77 GiB
  Logical volume lv_root successfully resized
[root@linux5 /]#
After you need to resize your file system or LV, because Change will not appear. as below.

[root@linux5 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_linux5-lv_root
                      1.8G  1.2G  536M  69% /
tmpfs                 499M     0  499M   0% /dev/shm
/dev/sda1             194M   25M  159M  14% /boot
[root@linux5 /]#
[root@linux5 /]#
Now run resize2fs on LV, it will change the size and display the output in df -h command and then we can use the LV for your purpose.
[root@linux5 /]# resize2fs /dev/mapper/vg_linux5-lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_linux5-lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vg_linux5-lv_root to 988160 (4k) blocks.
The filesystem on /dev/mapper/vg_linux5-lv_root is now 988160 blocks long.
[root@linux5 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_linux5-lv_root
                      3.8G  1.2G  2.4G  33% /
tmpfs                 499M     0  499M   0% /dev/shm
/dev/sda1             194M   25M  159M  14% /boot
[root@linux5 /]#

suggestions and other methods are most welcome.

How to plan a day ?

I don't know how to plan my day, i just flow with the day. do not know what would I be doing next day or next moment. How should I plan. there is also a feeling like Long term planning is missing. Just living for the sake of living sometimes. Ha Ha Ha.
A thought still revolves around in my mind :- Need to plan my future.

Friday, September 21, 2012

Linux 64 Bit showing 32 bit

Hi All,

today we got an issue saying that, we are facing issue in installation of Oracle (INSTALLER) saying 64 bit oracle being installed on 32 bit OS. (RHEL 5.4 installed on server)

We started checking with commands after reading various stuff on Master Google. and some of the commands we tried were :-

the first command o/p given to user was 64 bit from uname -a

#uname -a
#uname -m
#file /usr/bin/file
#cat /proc/cpuinfo


THE ERROR WAS IN #GETCONF LONG_BIT, this command was showing 32 bit in o/p. later we checked from where getconf is picking up the value. we used simple command.

#find / -name getconf
 o/p came and shown us a directory where we found that default was linking to a file which is 32 bit as showing below. we unlink that file and linked he same to 64 bit.

[root@getconf]# [root getconf]# unlink default

[root getconf]# ln -s POSIX_V6_LP64_OFF64 default

[root getconf]#

[root getconf]# ls -ltr

total 84

-rwxr-xr-x 1 root root 25360 Jul 17  2009 POSIX_V6_LP64_OFF64

-rwxr-xr-x 1 root root 19388 Jul 17  2009 POSIX_V6_ILP32_OFFBIG

-rwxr-xr-x 1 root root 19388 Jul 17  2009 POSIX_V6_ILP32_OFF32

lrwxrwxrwx 1 root root    19 Sep 20 20:08 default -> POSIX_V6_LP64_OFF64

[root getconf]#

[root getconf]# getconf -a |grep -i LONG_BIT

LONG_BIT                           64

[root getconf]# pwd

/usr/libexec/getconf

[root getconf]#
After setting this user was through to next error other than this. Now we checked thoroughly that where was the exact error.
The error was that the User has installed  all GCC rpm of 32 and 64 bit as well. ao that was the reason of change in above mentioned file happened. so it is suggested to uninstall the extra gcc package for 32 bit i.e i386 from from server by carefully selecting packages  and choosing that. that is it, problem resolve the issue. please comment more in it so that more information can be gathered at one place.
============================================================

Solution came today,

I just uninstalled corrupted or improper 32 bit rpms by yum remove command and then reinstalling each rpm of 64 bit with dependency one by one. and which cause successful installation of Oracle on Liunx,

for this you just have to have list of rpm required for installation of Oracle.

Tuesday, September 18, 2012

Adding LINUX Server In AD for authetication RHEL LINUX

Steps to add the server in Domain:-

from root prompt :-

#install samba* (YUM INSTALL SAMBA*)
#/etc/resolv.conf should have your Domain server Hostname
[root@linux1 ~]# cat /etc/resolv.conf as an example
search myloveunix.com
nameserver     1.2.3.6
[root@linux1 ~]#

# service winbind restart
# service smb restart
# etc/hosts should have Hostname of the machine.
#setup u will be fwdd to below screen :-

 
 
now select as it is selected below for adding the server in AD for authetication.
 
now write all details in next window of your AD server and getready woth credenatials after clicking yes.
 
 
now you have to insert the crendentials of the AD server admin and if credentials are correct then you will be able to add the server in domain.
 
You can run the below commands to get the list of users in your domain or AD.
 
"wbinfo -u"
"wbinfo -g"

you should get a list of user with -u and with -g group.

Trouble shooting needs to be done everytime for the correct requirement. but we can reach upto requirement.

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.