Wednesday, February 28, 2018

libmawt.so: libXext.so.6: cannot open shared object file: No such file or?

yum -y install libXext*i686*

How to fix /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

yum -y install glibc*i686*

How to add raw disk for oracle rac in Linux 6?


1.Partition disk

 fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xbb9171e3.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652):
Using default value 652

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.


2. Repeat above disk for all

3. cat /etc/udev/rules.d/60-raw.rules
# Enter raw device bindings here.
#
# An example would be:
#   ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda, or
#   ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8, minor 1.
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdd1", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sde1", RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", KERNEL=="raw*", OWNER="grid", GROUP=="asmdba", MODE=="0666"


4./sbin/start_udev
Starting udev:                                             [  OK  ]

5.

ls -lrt /dev/raw/
total 0
crw-rw-rw-. 1 grid asmdba 162, 0 Feb 28 07:19 rawctl
crw-rw-rw-. 1 grid asmdba 162, 2 Feb 28 07:19 raw2
crw-rw-rw-. 1 grid asmdba 162, 1 Feb 28 07:19 raw1
crw-rw-rw-. 1 grid asmdba 162, 4 Feb 28 07:19 raw4
crw-rw-rw-. 1 grid asmdba 162, 3 Feb 28 07:19 raw3