Monday, December 31, 2012

HP UX 11.31i Interview questions

Some more questions which we used to face in interview.

1. How we can reset the password of MP in RX machines (rx 2660, rx 8640, etc. )?
ans. press the MP button for less than 5 sec and after that password will reset to Admin.
2. How we can reset the default MP configuration of RX machines?
ans. For this we have to press the MP button on extreem right side of machine for more than 10 second.
3. What is the command to check software installed on the HP UX server?
ans. swlist |grep -i "name of the software"
other related commands :-

swlist -l product "name of the software"
swlist -l fileset "name of the software"

4. What is the command to check and set the kernel parametre in HP UX?

ans. kctune |more  :-- it will show or list the kernel parameter which are set already.
    
       kctune "name of the parameter equal to desired value of the same "

5. What is the command to check enabled services?

cat /etc/services |grep -i "name of the service"

here we can also set the services (like services i.e on which port which service will run) by editing this file but be careful, take back of this file before editing it with vi or any editor.

6. What is the command to set network address, HOSTNAME on HP UX 11.31i

ans.  set_parms


set_parms will show below parameters which can be edited with this set_parms command

a. ip_address
b. hostname
c. locale
d. timezone
e. one or two more will be there in this list.

#set_parms ip_address

by using this command a window for setting ip address of the server will come and it will also ask for Gateway setting and netmask. please be ready with the details in advance.

and as you complete this process the IP ADDRESS will reset.

similarly with

#set_parms hostname

hostname will be asked to reset and as you reset the hostname will ask for reboot of the system. so inform the application teams first before changing the hostname of the server. you can cancel the request of set_parms also if you are not prepared and reached to that point.

7. What are the utilities available on the HP UX system?

some i remember, trying to putting it down for now. will keep writing further on this. these can directly be executed from # prompt that is root prompt or with sudo or as per given privilege.

a. sautil
b. glance :- can be run as a local user
c. smh or sam
d. sar :- a local user can execute
e. fcmsutil
f. scsimgr  which can be run like
#scsimgr lun_map
g. saconfig
h lanadmin
i lanscan



there are many others, which can be used with needful purpose.

8. above mentioned are powerful tools used for monitoring as well as configuration purpose.
where one like saconfig can be used for RAID configuration and glance gives a good monitoring of CPU, Memory processes and disk.

9. Some commands listed related to Logical volumes or Volume groups and PV physical volume.

a. pvdisplay /dev/rdisk/...
b. pvcreate -f
c. vgcreate
d. vgdisplay
e. vgexport
f. vgimport
g. vgmodify
h. vgextend
i. vgreduce.
j. vgcreate
k.  vgremove
l. ioscan -fn
m. ioscan -fnkC / device like fc  or lan
n. ioscan -m dsf
o. /usr/contrib/bin/vgdsf :- this can be used to change legacy path to persistant.
p. ioscan -m lun
q. lvextend -L
r. fsadm -b
s. and so many


 10. Most common things HP ask after logging a case with them. be prepared with these atleast so that processing of things with new case becomes easy.

a. for hardware failure, they used to ask for getsysinfo script output.
b. nickel o/p is also demanded.
MP logs

Saturday, December 29, 2012

Visit in this world

My questions to me......

1. I donot know, what i have born for?
2. If we are born by our Parents, then they only have the right to kill us not anyone else. Is there any punishment of law lie this?
3. What I want to be, Which profession should i choose. as sometimes i want to be the king  of the world or sometimes i think, if we are getting 3 meals and work to do in a day then thats it. we are complete then.
4. What are the things i have not seen or done in this world/ or why should i do?
5. What change i will or can bring, whose side should i choose? should i choose the path of nature or my own wishes to destroy by only consuming nature's resources?
6. Where i am now, What all life is, Where life will be after 5 years. It is not like that i donot have any plan, i do have, but does plan have any isurance?
7. Yes I love my parents, my brothers and sisters, my love, my kids and love my self.
 

Thursday, December 27, 2012

Node Switching parameter disabled (Service Gaurd)


      Node_Switching_Parameters:

      NODE_TYPE    STATUS       SWITCHING    NAME

      Primary      up           enabled      node1 (current)

      Alternate    up           disabled     node2
 
to change this, please look at the logs of cluster first of all. /etc/cmcluster/SID/*.log file and also look at the /var/adm/syslog/syslog.log file.
the correct o/p u can get by running cmviewcl -v from the # prompt i.e. through sudo or root access. please be assure you know the exact setting of your system/server.
 
#cmmodpkg is teh command, first we need to read the man page for the same.
 
# cmmodepkg -n nodename -e pkgname
 
or
#cmmodpkg -n -e nodename pkgname
 
then the o/p will appear as enabled on both the node switching parameter in cmviewcl -v o/p.
 
Node_Switching_Parameters:

NODE_TYPE STATUS SWITCHING NAME

Primary up             enabled       node1 (current)

Alternate up           enabled     node2

Saturday, December 22, 2012

How to change value of maxproc parameter?

How to change the value of maxproc parameter in Linux?

1. for changing  the value of maxproc to unlimited if it is 1024 now, as required for java and oracle processes. we can do the following.

the oracle user may or might be in sapsys group as it is in my case. we can chech the same with cat /etc/group, after confriming the same. we need to edit the file /etc/security/limits.conf. we have to write an entry lie below.

in last line u can add below lines.

@sapsys          -       nproc            unlimited
#@kinder          -       nproc            unlimited :- an example of group create named as kinder, user #created in it is as yanky/chen,
@kinder          soft    nproc          unlimited
# End of file
[root@linux1 ~]# cat /etc/security/limits.conf

after editing the file just save and logout and login again.
try to login with user falling in sapsys group, in my case yanky/chen for kinder group or sidadm user falling in sapsys group and run command

$limit

it will show the o/p as unlimited as below for yanky/chen

[root@linux1 ~]# su - chen
[chen@linux1 ~]$
[chen@linux1 ~]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 7868
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[chen@linux1 ~]$
please add or put your comments for adding or making my point cler if mistake done. will be very thank full to u.




Regards
Amit Chopra

Friday, December 21, 2012

How to Extend LV (RHEL 5,8)

Hi All,


How to Extend LV where online extension is not allowed. this was a case

1. first we have to check what message comes when online extension or reduction is not allowed.
2. If this message comes, we have to inform Application Team or User that they have to stop using that server for some duration.
3. Only on availability of Downtime, we can go ahead with Extension or reduction.
4. below are the commands.
5. Here just wanted to raise the value of LV /home_new to 51 GB from 49 GB.
6. first, we need to calculate the value of free PE or available PE with us with help of vgdisplay command we can do.
7. We have to calculator "bc -l" and add the 49*1024+2*1024
8. it will give the result.
9 lvextend -L (49*1024+2*1024)mb /dev/mapper/vg00-home_new
10. after this we have to use e2fsck or resize2fs command to make that size available. as lvextend command will run successfully.
11. in this case online extension with resize2fs was not happening or allowed. so had to use below pattern.


[root /]#
[root /]#
[root /]# date
Thu Dec 20 17:43:20 IST 2012
[root /]#
[root /]# umount /home_new
[root /]#
[root /]# resize2fs /dev/mapper/vg00-home_new
resize2fs 1.39 (29-May-2006)
Please run 'e2fsck -f /dev/mapper/vg00-home_new' first.
[root /]# e2fsck -f /dev/mapper/vg00-home_new
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/vg00-home_new: 4851/6553600 files (0.1% non-contiguous), 3403493/13107200 locks
[root /]#
[root /]#
[root /]# resize2fs /dev/mapper/vg00-home_new
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/mapper/vg00-home_new to 13500416 (4k) blocks.
The filesystem on /dev/mapper/vg00-home_new is now 13500416 blocks long.
[root /]#
[root /]#
[root /]# mount /dev/mapper/vg00-home_new /home_new/
[root /]#
[root /]# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext3     39G   23G   15G  61% /
/dev/sda1     ext3     99M   12M   83M  13% /boot
tmpfs        tmpfs    8.0G     0  8.0G   0% /dev/shm
dev/mapper/vg00-home_new
              ext2     51G   13G   36G  26% /home_new
[root /]#
[root /]#
[root /]#
[root /]#


I may have given in wrong wa or right, please comment or suggest on this and improve my skill. your comments are appreciated.

 

Wednesday, December 19, 2012

Interview questions for HP UX 11.31i

Sharin some of the questions which are being asked frequently for HP UX 11.31i Interview.

the question level may differ for different user of HP UX admin.

1. What is command for measuring CPU and DISK utilisation?

Answer :- SAR is a utillty which is used.

$sar -Mu 2 5 will give the o/p for CPU utilization. it also shows how many CPU are there in your server.
$sar -d 2 5 will give the o/p pattern for disk utilized.

2 5 :- these can be changed for how long and with what duration you want the o/p of sar command.

2. What are the steps to troubleshoot a Hard disk failure?

Ans :- sautil is the utility which can be used to detect hard disk faliure.

/var/adm/syslog/syslog.log can also show the disk failure.

with ioscan -fnC disk (failed disk can be seen) bit this will not show any result if disk is completly failed. small corruptions or sector failure cannot be seen with it.

3. What is the booting sequence of HP UX 11.31i for rx2660 server, RX8640 nd HP 9000 server?
4. How to set the limit and kernel values in HP UX 11.31i
5. What is the command to verify the Patch implemented and verify it i correclty implemented.?
6. What is the command for adding/modifying/group moification/ownership changes in a directory?
7. What are the ways to boot from Ignite backup?
8. What is the command for ignite backup (make_net_recovery AvI  -s -x inc_entire=vg00
 and if on tape then make_tape_recovery -AvI -a /dev/rmt/0mn -x inc_entire=vg00
9. How we can change the password policy?
it is through /etc.default/security file only. after that you need to rerun the /sbin/init.d/secsh services. and shd services.
10. What is the command to check running services?
ps -ef |grep -i
11. what is the command to check on which port the service is running?
then we can check through netstat -an |grep -i or



will try to keep post on the same topic....

please add more and all positive and negatives comments invited.

Best Regards
Amit Chopra

Thursday, November 15, 2012

CLI to GUI RHEL 6

Hi All,

For switching from CLI i.e. command line interface to Graphical User Interface. we need to install two packages and change /etc/inittab default level.

At root prompt # or with sudo access. you need to run below command after mounting DVD/ISO image on the server.

1. mount /dev/dvd /mnt
2. cd /etc/yum.repos.d/
3. vi yum.repo (if any other repo is there then please remove that)
4. in yum.repo ---->

[Server]
name=Server
baseurl=file:///mnt/
gpgcheck=0
enabled=1
:wq!
5. yum clean all
6. yum updae all (should update all the files from DVD)
7. if all is OK.
8. yum groupinstall "X Window System"
9. yum groupinstall "KDE DESKTOP"
10. after installation. we need to edit /etc/inittab file.
11. in place of 3 or 4 write 5.
12. reboot the machine and you will be fallen to GUI prompt. (Virtual Machines)


suggestion and if errors in my work is to be done then please write. and if found useful then do also comment. thanks a lot.

 

Thursday, November 8, 2012

USERADD command HANGES or not responding + LINUX

Hi All,

Today first time faced an issue related to "useradd" and "groupadd" command. the command were hanging and not reponding or giving no response for long duration. that we need to do CTRL+C to come out at prompt.

What i learnt :-

1. we should first always check "dmesg" and "/var/adm/messages".
2. to check these #dmesg and then check for any issues there or errors.
3. To read #cat /var/adm/messages.
4. follow up the errors and conclusion found.
5. screnshot for errors are below.
6. LDAP as shown in error.
7. Disable need to be done through SETUP which was enabled on the server or #setup
8. just unselect the LDAP option in setup > authentication configuration.
9. save the configuration.
10. now run useradd or groupadd command. it will run for sure.
9. A good link i found on net by some internet friend on net or forum. thanks. 




Thanks, please share if any other error u find regarding this. we will work out. thanks for the visit.

 

Wednesday, November 7, 2012

Who are we

It seems sometimes to me a simple question. but when it is seen deeply then feels like WHO ARE WE? is a very big question. which we have to find and after that we need to find WHY ARE WE HERE? and after that question comes other questions like HOW ARE WE? and HOW WE HAVE TO BE? WHAT WE HAVE TO LOOK FOR? WHERE WE ARE AT PRESENT?

Are we doing anything good for Humanity?
Are we doing anything good for other living beings on earth or we just want to eat them or everything for our selfishness.
What is the purpose of our birth?

What i come to a conclusion is, we all have to work and live until death calls us. God or Almighty has sent us for his works and to complete them. every person every living being born with a purpose of giving. so what is the purpose of asking or begging for anything.



 

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.