Showing posts with label VMWARE. Show all posts
Showing posts with label VMWARE. Show all posts

Tuesday, November 13, 2012

PSU auto patch on 10g CRS_HOME


1.Opatch version should be earlier version (>11)
2.Configuare ocm.rsp file
     cd /u03/crs/OPatch/ocm/bin
   
      ls -lrt
     total 16
     -rwxr-----  1 oracrs oinstall 8486 Dec  7  2010 emocmrsp

    execute emocmrsp 

     ./emocmrsp

 [oracle@vm1 bin]$ ls -lrt
total 16
-rwxr-----  1 oracrs oinstall 8486 Dec  7  2010 emocmrsp
-rwxrwxr-x  1 oracrs oinstall  623 Nov 13 09:35 ocm.rsp
[oracle@vm1 bin]$


[root@vm1 9952245]# opatch auto /home/oracrs/psu/9952245 -oh /u03/crs
auto_patch.pl: log file is /home/oracrs/psu/9952245/opatchauto_2012-11-13_10:33:35.log
Discovering environment to patch

Checking if Clusterware is up

Looking for configured cluster nodes
vm1 vm2

Getting Local node name

Looking for configured databases on node vm1
Databases configured on node vm1 are: CAR

Determining ORACLE_HOME paths for configured databases
Retrieving configured services for Database CAR
There are 1 services configured for Database CAR
asm home is /u02/app/oracle/product/10.2.0/db_1

Oracle Home /u02/app/oracle/product/10.2.0/db_1 is configured with Database(s)-> CAR
opatch version is 11.2.0.1.4
/u03/crs/OPatch/opatch is bundled with OCM, Enter the absolute OCM response file path:
/u03/crs/OPatch/ocm/bin/ocm.rsp
Oracle CRS user is oracrs
Cluster nodes are vm1 vm2
Node to patch is vm1
Using /u03/crs/OPatch/opatch for opatch
The patch is applicable for this CRS Home /u03/crs

Patch node vm1? (y/n/abort/N/N1-N2/help):

y

Applying patch 9952245 on node vm1

 stopping instance on vm1 with /u02/app/oracle/product/10.2.0/db_1/bin/srvctl stop instance -d CAR -i CAR1

 stopping ASM on vm1 with /u03/crs/bin/srvctl stop asm -n vm1

 stopping listener on vm1 with /u03/crs/bin/srvctl stop listener -n vm1

 stopping nodeapps on vm1 with /u03/crs/bin/srvctl stop nodeapps -n vm1

 shutting  down CRS stack on vm1 with /u03/crs/bin/crsctl stop crs

Sleeping 15 second(s)
Failure 1 contacting CSS daemon
Cannot communicate with EVM
Cannot communicate with CRS

 Executing /home/oracrs/psu/9952245/custom/scripts/prerootpatch.sh -crshome /u03/crs -crsuser oracrs as root on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/prepatch.sh -crshome /u03/crs as oracrs on vm1

 Executing /u03/crs/OPatch/opatch napply -local -silent -ocmrf /u03/crs/OPatch/ocm/bin/ocm.rsp -oh /u03/crs -id 9952245 as oracrs on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/postpatch.sh -crshome /u03/crs as oracrs on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/postrootpatch.sh -crshome /u03/crs as root on vm1

 Starting services for CAR on vm1

List of patched nodes:  vm1

auto_patch.pl finished


Errors & Workarounds:

Error 1:

Using /u03/crs/OPatch/opatch for opatch
Failed to load the patch object.  Possible causes are:
  The specified path is not an interim Patch shiphome
  Meta-data files are missing from the patch area
  Patch location = /home/oracrs/psu
  Details = Input metadata files are missing.
.....
 Executing /home/oracrs/psu/custom/scripts/prerootpatch.sh -crshome /u03/crs -crsuser oracrs as root on vm1

verify failure: exit code 32512 for prerootpatch_crs

Action failed, do you want to retry it? (y/n/abort/N/N1-N2/help):


Solution:
         Unzipped patch location should be vaild location
 
Invalid Path: /home/oracrs/psu
 
Valid Path : /home/oracrs/psu/9952245
 

Error 2:

 Executing /u03/crs/OPatch/opatch napply -local -silent -ocmrf /u03/crs/OPatch/ocm/bin/ocm.rsp -oh /u03/crs -id 9952245 as oracrs on vm1

verify failure: exit code 18688 for patch_crs

Action failed, do you want to retry it? (y/n/abort/N/N1-N2/help):


Solution :

          Required amount of space(557321672) is not available.

         CRS_HOME free space should be >600mb
 

Tuesday, October 16, 2012

Failure at final check of Oracle CRS stack.10

Issue:

root.sh is failed with below on node2

Failure at final check of Oracle CRS stack.10

Workaround:

Please verify network configuration on /etc/hosts

/u03/app/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


Issue :
root.sh failed with below errors

Running vipca(silent) for configuring nodeapps
/u03/app/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[root@vm12 crs]# ls

Workaround :

Modify vipca file:

vi /u03/app/crs/vipca

if [ "$arch" = "i686" -o "$arch" = "ia64" ]
then
      LD_ASSUME_KERNEL=2.4.19
      export LD_ASSUME_KERNEL
fi
unset LD_ASSUME_KERNEL
#End workaround

Modify srvctl:

vi /u03/app/crs/srvctl


./vipca
Error 0(Native: listNetInterfaces:[3])
  [Error 0(Native: listNetInterfaces:[3])]

 Workaround :

./oifcfg getif
./oifcfg setif -global eth0/192.168.0.0:public
./oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
[root@vm12 bin]# ./oifcfg getif
eth0  192.168.0.0  global  public
eth1  192.168.1.0  global  cluster_interconnect

Friday, April 20, 2012

Access windows folder from VM Machine

Create a new local mount point, eg:

mkdir /tmp/smbmnt

Enable netfs:

chkconfig netfs on
service netfs start


mount -t cifs -o username=user,password=Welcome //192.168.0.4/audit /tmp/smbmnt/


ln -s /myMountFolder/MyMountPoint /PathOfSymlink

username=user
password=Welcome

chmod 600 /root/smbpass.txt


//192.168.0.4/audit /tmp/smbmnt/ cifs credentials=/root/smbpass.txt 0 0

mount //192.168.0.4/audit

Access windows folder from VM Machine

Create a new local mount point, eg:

mkdir /tmp/smbmnt

Enable netfs:

chkconfig netfs on
service netfs start


mount -t cifs -o username=user,password=Welcome //192.168.0.4/audit /tmp/smbmnt/


ln -s /myMountFolder/MyMountPoint /PathOfSymlink

username=user
password=Welcome

chmod 600 /root/smbpass.txt


//192.168.0.4/audit /tmp/smbmnt/ cifs credentials=/root/smbpass.txt 0 0

mount //192.168.0.4/audit

Tuesday, September 6, 2011

Increase space on Linux thru VMware

How to increase space on VM Machine?

C:\Program Files\VMware\VMware Workstation>vmware-vdiskmanager.exe -x 20g "G:\Virtual Machines\TEST1\Red Hat Enterprise Linux 4.vmdk"


Below steps To increase disk size on Linux

[root@vm6 ~]# fdisk -l

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM


Disk /dev/sdb: 536 MB, 536870912 bytes
64 heads, 32 sectors/track, 512 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 512 524272 83 Linux

Disk /dev/sdc: 536 MB, 536870912 bytes
64 heads, 32 sectors/track, 512 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 512 524272 83 Linux

Disk /dev/sdd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 261 2096451 83 Linux


$fdisk /dev/sda -----create primary partiotion

[root@vm6 ~]# fdisk -l

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
/dev/sda3 2611 3263 5245222+ 83 Linux

Disk /dev/sdb: 536 MB, 536870912 bytes
64 heads, 32 sectors/track, 512 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 512 524272 83 Linux

Disk /dev/sdc: 536 MB, 536870912 bytes
64 heads, 32 sectors/track, 512 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 512 524272 83 Linux

Disk /dev/sdd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 261 2096451 83 Linux


*******************************************



[root@test1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
14G 9.8G 3.4G 75% /
/dev/sda1 99M 9.0M 85M 10% /boot
none 512M 98M 415M 20% /dev/shm
/dev/sdc1 380M 32M 329M 9% /backup
/dev/sdc3 304M 11M 279M 4% /tape
/dev/sdd1 5.0G 3.7G 1009M 79% /ora
shmfs 512M 98M 415M 20% /dev/shm
[root@test1 ~]# pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
[root@test1 ~]# vgextend VolGroup00 /dev/sda3
Volume group "VolGroup00" successfully extended
[root@test1 ~]# lvextend -L+5G /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 19.03 GB
Logical volume LogVol00 successfully resized
[root@test1 ~]# ext2online /dev/mapper/VolGroup00-LogVol00 ----->Linux 4

Note: # resize2fs /dev/mapper/VolGroup00-LogVol00 ----------->Linux 5

ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b
[root@test1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
19G 9.8G 8.1G 56% /
/dev/sda1 99M 9.0M 85M 10% /boot
none 512M 98M 415M 20% /dev/shm
/dev/sdc1 380M 32M 329M 9% /backup
/dev/sdc3 304M 11M 279M 4% /tape
/dev/sdd1 5.0G 3.7G 1009M 79% /ora
shmfs 512M 98M 415M 20% /dev/shm
[root@test1 ~]#