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.