Installing ASM on linux : /etc/init.d/oracleasm createdisk VOL1 [failed]
Hi all,
Oracle unbreakable linux
oracle 10.2.0.1
I got this error while mark ing the disks for use by ASMLib
/etc/init.d/oracleasm createdisk VOL1 [failed]
I already performed the steps mentioned below
uname -rm
Ex:
# uname -rm
2.6.9-22.ELsmp i686
The example shows that this is a 2.6.9-22 kernel for an SMP (multiprocessor) box using Intel i686 CPUs.
Use this information to find the correct ASMLib packages on OTN:
1. Point your Web browser to http://www.oracle.com/technology/tech/linux/asmlib/index.html
2. Select the link for your version of Linux.
3. Download the oracleasmlib and oracleasm-support packages for your version of Linux
4. Download the oracleasm package corresponding to your kernel. In the example above, the oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm package was used.
Next, install the packages by executing the following command as root:
rpm -Uvh oracleasm-kernel_version-asmlib_version.cpu_type.rpm \
oracleasmlib-asmlib_version.cpu_type.rpm \
oracleasm-support-asmlib_version.cpu_type.rpm
Ex:
# rpm -Uvh \
> oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm \
> oracleasmlib-2.0.1-1.i386.rpm \
> oracleasm-support-2.0.1-1.i386.rpm
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.9-22.ELsm########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
Configuring ASMLib
Before using ASMLib, you must run a configuration script to prepare the driver. Run the following command as root, and answer the prompts as shown in the example below.
# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
but when i tried this
/etc/init.d/oracleasm createdisk VOL1 /dev/sda2
Marking disk "/dev/sda2" as an ASM disk: [ Failed]
i got this error
Please give me the solution,
Thanks
I have found this on /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda1": Device or resource busy
Unable to open device "/dev/sda": Device or resource busy
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda1": Device or resource busy
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda2": Device or resource busy
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda1": Device or resource busy
Unable to open device "/dev/sda": Device or resource busy
Unable to open device "/dev/sda1": Device or resource busy
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda2": Device or resource busy
Unable to query file "/dev/sda2p1": No such file or directory
Unable to open device "/dev/sda1": Device or resource busy
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to open device "/dev/sda2": Device or resource busy
Unable to open device "/dev/sda1": Device or resource busy
Unable to open device "/dev/sda": Device or resource busy
Unable to query file "/dev/sdap1": No such file or directory
Disk "VOL1" does not exist or is not instantiated
Unable to query file "/dev/sdap1": No such file or directory
Unable to query file "/dev/sda2p1": No such file or directory
Unable to query file "/dev/sdap1": No such file or directory
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
Unable to query file "/dev/sda2p2": No such file or directory
Unable to query file "/dev/sda2p2": No such file or directory
Unable to query file "/dev/sda2p3": No such file or directory
Unable to query file "/dev/sda2p4": No such file or directory
Unable to query file "/dev/sda2p2": No such file or directory
Unable to query file "/dev/sda2p3": No such file or directory
Unable to query file "/dev/sda2p4": No such file or directory
Unable to open device "/dev/sda3": Device or resource busy
Similar Messages
-
/etc/init.d/oracleasm createdisk FAILED
Hi DBAs,
We got this error when creating asm disk using /etc/init.d/oracleasm create disk. The disks are HDS and EMC Powerpath. Any advices are greatly appreciated.
Below are the steps we've done:
[root@host1]# /etc/init.d/oracleasm createdisk ocrdisk1 /dev/raw/raw1
Marking disk "ocrdisk1" as an ASM disk: [FAILED]
cat /etc/sysconfig/rawdevices
# raw device bindings
# format: <rawdev> <major> <minor>
# <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
# /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/emcpowerb
[root@host1]# /sbin/service rawdevices restart
Assigning devices:
/dev/raw/raw1 --> /dev/emcpowerz
/dev/raw/raw1: bound to major 120, minor 16
done
[root@host1]# set -o vi
[root@host1]# /etc/init.d/oracleasm createdisk ocrdisk1 /dev/raw/raw1
Marking disk "ocrdisk1" as an ASM disk: [FAILED]Thanks for sharing the solution ..
Please mark the thread as answered.
Regards
Rajesh -
ASMlib /etc/init.d/oracleasm listdisks
This is the output of my ASM after configureing asmlib, is this asm disk group?
[root@xxx rpms]# /etc/init.d/oracleasm listdisks
ASMDISK1As per oracle documentation i need these rpm , right? MY OS is RHEL4
Red Hat Enterprise Linux 4 (Update 1):Packages
The following packages (or later versions) must be installed:
binutils-2.15.92.0.2-10.EL4
binutils-2.15.92.0.2-13.0.0.0.2.x86_64
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
Note: XDK is not supported with gcc on Red Hat Enterprise Linux 4. -
/etc/init.d/oracleasm configure do not create /dev/oracleasm mountpoint
Dear All,
I have to put my question like this, I am following humter_rac10gr2_iscsi. I have done everything as per documentation and the results so far have been ok. When i come to the part where we have to create ASM volumes and when i after installing asm library give the following command:
/etc/init.d/oracleasm configure
The commd runs sucessfully but misses the folling line that is in documentation:
Creating /dev/oracleasm mount point: [OK]
Because of this miss I guess last time when i reached the poing during dbca database creation where it shows ASM volumes, it did not discover any ASM volumes and i was stuck at this point.
Kindly help me on this?
Regards, Imran baigHello,
Well i run /etc/init.d/oracleasm configure command as root user.
Yesh I have just checked i can cd to /dev/oracleasm/disks and can find
VOLl VOL2 VOL3 VOL4 there
I have delete first and then create ASM volumes and now i can scan and list then from both nodes.
/etc/init.d/oracleasm status says that
Checking if ASM is loaded: [OK]
Checking if /dev/oracleasm is mounted: [OK] :)
But id did not show it during configuration and similary when i run dbca at the screen where to specify volumes, nothing is there even when i cange disk path to ORCL:VOL* there is nothing....
Kindly help with the dbca configurations so that it pick up the ASM VOLUMES.
Regards,
Imran -
Hi All,
I'm trying to create asm disk.
This is my device (750GB) fdisk configuration before i format it using mkfs.ocfs2
[root@linux02 ~]# fdisk -l /dev/sdb1
Disk /dev/sdb1: 750.1 GB, 750153729024 bytes
255 heads, 63 sectors/track, 91200 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1p1 1 123 987966 83 Linux
/dev/sdb1p2 124 6203 48837600 83 Linux
/dev/sdb1p3 6204 12283 48837600 83 Linux
/dev/sdb1p4 12284 24442 97667167+ 83 Linux
When i come to create an ASM partition on /dev/sdb1p2 it gives me the foolowing error
[root@linux01 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
Marking disk "/dev/sdb1" as an ASM disk: asmtool: Unable to clear device "/dev/sdb1": Input/output error
FAILED]
When i tried to create an asm disk on the whole disk it gives me
[root@linux02 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
Marking disk "/dev/sdb1" as an ASM disk: asmtool: Unable to clear device "/dev/sdb1": Input/output error
FAILED]
What should i do?!!
Please Help me Guys.Hi,
I tried to do on p1 partition but it also did not work. orcfs2 was running so it was locking the partition (i figure it out). I made stop for ocfs2 then created the disk using oraclasm on sdb1 and it did not work on sdb1px (I don't know why!!!).
Now if i go to fdisk -l /dev/sdb1 it does not recognize the partition table.
[root@linux01 /]# fdisk -l
Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 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 9730 78051802+ 8e Linux LVM
Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 91201 732572001 83 Linux
but when i execute this:
[root@linux01 /]# fdisk -l /dev/sdb1
Disk /dev/sdb1: 750.1 GB, 750153729024 bytes
255 heads, 63 sectors/track, 91200 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb1 doesn't contain a valid partition table
What is missing here?!!! -
How to install ASM instance in oracle linux 6.1
Hi,
I have installed oracle linux 6 and upgraded to oracle linux 6.1 (32 bit) for testing purpose.
here is details of some commands
[root@rac2 ~]# uname -a
Linux rac2.test 2.6.32-131.0.15.el6.i686 #1 SMP Fri May 20 15:00:01 EDT 2011 i68 6 i686 i386 GNU/Linux
[root@rac2 ~]# modprobe -l | grep oracle ####No output####
[root@rac2 ~]# rpm -qa| grep oracleasm ####No output####
[root@rac2 ~]# modprobe /etc/oracleasm
FATAL: Module /etc/oracleasm not found.
Please suggest me, do i have to download any other package for enable oracle asm.Hi,
I have done these setup and still i am not able to create disk in asm. i have created partition with fdisk with name sdd2,sde2,sdf2
here is the output of few command--
[root@rac2 ~]# uname -r
2.6.32-100.34.1.el6uek.i686
[root@rac2 ~]# rpm -qa | grep oracle*
oracle-logos-60.0.11-9.el6.noarch
oraclelinux-release-notes-6Server-5.i686
oraclelinux-release-6Server-1.0.2.i686
oracleasm-support-2.1.5-1.el6.i686
[root@rac2 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
Default group to own the driver interface [oinstall]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac2 ~]# /etc/init.d/oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@rac2 ~]# ls -la /dev/sd*
brw-rw----. 1 root disk 8, 0 Sep 14 15:57 /dev/sda
brw-rw----. 1 root disk 8, 1 Sep 14 15:58 /dev/sda1
brw-rw----. 1 root disk 8, 2 Sep 14 15:57 /dev/sda2
brw-rw----. 1 root disk 8, 16 Sep 14 15:57 /dev/sdb
brw-rw----. 1 root disk 8, 17 Sep 14 15:58 /dev/sdb1
brw-rw----. 1 root disk 8, 48 Sep 14 16:14 /dev/sdd
brw-rw----. 1 root disk 8, 50 Sep 14 16:14 /dev/sdd2
brw-rw----. 1 root disk 8, 64 Sep 14 16:14 /dev/sde
brw-rw----. 1 root disk 8, 66 Sep 14 16:14 /dev/sde2
brw-rw----. 1 root disk 8, 80 Sep 14 16:14 /dev/sdf
brw-rw----. 1 root disk 8, 82 Sep 14 16:14 /dev/sdf2
[root@rac2 ~]# /etc/init.d/oracleasm createdisk ASM01 /dev/sdd2
Marking disk "ASM01" as an ASM disk: [FAILED]
[root@rac2 ~]#
[root@rac2 ~]# tail -20 /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Disk "ASM01" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASM01": Permission denied
failed
Clearing disk header: done
[root@rac2 ~]#
I have tried to find out solution but did not get anything in google.
Please suggest if any solution or may be i missed some setup.
Ram -
ASM, Unbreakable Linux, Installer Sees no Candiate Disks
I have installed ASM library dirver, and thought I had configured disks using:
/etc.init.d/oracleasm createdisk ORADATA1 /dev/sdd1
/etc.init.d/oracleasm createdisk ORADATA2/dev/sdc1
when I run /etc.init.d/oracleasm I get
[root@blah ~]# /etc/init.d/oracleasm listdisks
ORADATA1
ORADATA2
Howveer when installing Oracle 10gR2 at the Configure ASM screen I can not add any disks. Any ideas?Hi,
Please refer to the note on http://www.oracle.com/technology/tech/linux/asmlib/install.html
NOTE: Once you mark your disks with Linux ASMLib, Oracle Database 10g R1 (10.1) OUI will not be able to discover your disks. It is recommended that you complete a Software Only install and then use DBCA to create your database (or use the custom install).
and you must run '/etc/init.d/oracleasm scandisks' on the all other node.
Regards
Jason -
Oracleasm createdisk just like pvcreate by LVM?
Hello
so before I create ASM diskgroup I need to oracleasm createdisk frist.
So,Does it like "pvcreate" on LVM ?Hi,
What is your OS?
The command is for example /etc/init.d/oracleasm createdisk ASMDATA /dev/sdc1, this command will mark partition /dev/sdc1 as an ASM Disk
Cheers -
ASM 10gr2/RHEL4 Unable to load oracleasm
Hi,
I have seen many threads on this, but no resolution. Please help.
uname -r is -> 2.6.9-5.EL
[oracle@localhost ~]$ /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
Default group to own the driver interface [oracle]:
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
[oracle@localhost ~]$ /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
[oracle@localhost ~]$ /etc/init.d/oracleasm start
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
The /var.log/messges is following:
Oct 3 13:11:05 localhost oracleasm: succeeded
Oct 3 13:11:05 localhost modprobe: FATAL: Module oracleasm not found.
Oct 3 13:11:05 localhost oracleasm: Unable failed
And I am using the most recent asmlib downloaded from ORN for RehHat Linux 4.
No problems installing rpms.
Thanks
SamAnd I am using the most recent asmlib downloaded from ORN for RehHat Linux 4.
No problems installing rpms.You do not want the most recent version of the {font:Courier}oracleasm{font} package: you want the one that exactly matches your kernel version:
oracleasm-$(uname -r)You do want the latest versions of the user-space helpers:
oracleasm-support
oracleasmlib -
Error while configuring the ASM on linux
i am trying to implement ASM of the virtual machine.. i downloaded the ASM libraries and packages and installed them as a "root" user using the following command:
$>rpm -Uvh oracleasm*
after the installtion was done i went to configure the library driver by executing the following command(also as a root user)
$>/etc/init.d/oracleasm configure...
i answered all the question given by the command and then the following error message occured..
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
Default group to own the driver interface [dba]:
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
i don't have much experience with ASM to solve this problem, so if someone can help then i will appreciate it.
NOTE: my platform is
ORACLE10gR2(10.2.0.1)
RHEL 4 update 5.i have been trying to delete the ASM library driver and install it again but i get this message everytime i do so..,
[root@localhost RPMS]# rpm -ev oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2.i686.rpm
error: package oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2.i686.rpm is not installed
then i execute the following command to install it and the following appears.
[root@localhost RPMS]# rpm -ivh oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2.i686.rpm
warning: oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2.i686.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing... ########################################### [100%]
package oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2 is already installed
it is really weired,,,
if someone have encountered this scenario then please explain this issue for me. -
Oracleasm update-driver failed in OEL 6
Hi ,
I have a problem with oracleasm update-driver command.
I have OEL 6 installed in my machine.
When I entered command : rpm -qa| grep oracleasm it is showing me the below output :
oracleasm-support-2.1.5-1.el6.i686
But after that, when I issued command oracleasm update-driver , it shows me below error :
Kernel: 2.6.32-71.el6.i686 i686
Driver name: oracleasm-2.6.32-71.el6.i686
Driver for kernel 2.6.32-71.el6.i686 does not exist
As a result of this my ASMLib driver is not Initializing properly. Below is the details of that :
[root@abhishek]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
Default group to own the driver interface [oinstall]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
*Initializing the Oracle ASMLib driver: [FAILED]*
Can anyone please help me to resolve this ?
Thanks
AbhishekHi Dude,
Thanks very much for your detailed explanation.
I have successfully updated UEK kernel by following your mentioned steps.
But now I am facing another problem.
I have done upto steps below :
yum install kernel-uek kernel-uek-devel kernel-uek-headers kernel-uek-firmware+
*# reboot*
But when I am trying to enter into that kernel , it is showing dark screen with a arrow pointer .. I think the video driver is not updated for that kernel.
Let me elaborate the scenario :
When I boot my machine , it shows 2 options during boot :
*1. Windows XP*
*2. Other*
When I pressed enter into the Other it is showing 3 more options :
*1. Oracle Linux Kernel - 2.6.32-100.34.1.el6uek.i686*
*2. Oracle Linux Kernel - 2.6.32-131.0.15.el6.i686*
*3. Oracle Linux Kernel - 2.6.32-71.el6.i686*
When I choose 2nd and 3rd option it is showing Gnome GUI properly , but when choosing 1st option it is not showing any Gnome GUI , Just a dark screen and an arrow pointer on that. I can move that pointer here and there over the blank screen. So it is understood that machine is not getting hanged , only display is not coming ( please verify whether my understanding is correct or not ).
Untill the GUI comes, I am not able to test the rest of the commands you gave. So will you please update the solution with detailed steps.
One more information i am pasting here. The output of lsmod command ( running from the kernel : 2.6.32-131.0.15.el6.i686 )
[root@abhishek ]# lsmod
Module Size Used by
fuse 56128 2
autofs4 21604 3
sunrpc 197485 1
p4_clockmod 3135 1
ipt_REJECT 1905 2
nf_conntrack_ipv4 7700 2
nf_defrag_ipv4 1013 1 nf_conntrack_ipv4
iptable_filter 2147 1
ip_tables 9541 1 iptable_filter
ip6t_REJECT 3961 2
nf_conntrack_ipv6 7117 2
nf_defrag_ipv6 9847 1 nf_conntrack_ipv6
xt_state 1006 4
nf_conntrack 66010 3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter 2219 1
ip6_tables 10809 1 ip6table_filter
ipv6 266112 29 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
dm_mirror 11652 0
dm_region_hash 10063 1 dm_mirror
dm_log 8520 2 dm_mirror,dm_region_hash
uinput 6218 0
ppdev 7335 0
parport_pc 19348 0
parport 31019 2 ppdev,parport_pc
ir_lirc_codec 3920 0
e100 28774 0
lirc_dev 14570 1 ir_lirc_codec
mii 4289 1 e100
ir_sony_decoder 1817 0
ir_jvc_decoder 1974 0
ir_rc6_decoder 2262 0
saa7134 143379 0
ir_rc5_decoder 1878 0
ir_nec_decoder 2294 0
v4l2_common 8534 1 saa7134
videodev 65768 2 saa7134,v4l2_common
rc_core 16553 7 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,saa7134,ir_rc5_decoder,ir_nec_decoder
videobuf_dma_sg 8614 1 saa7134
videobuf_core 16927 2 saa7134,videobuf_dma_sg
tveeprom 11298 1 saa7134
sg 24778 0
microcode 12419 0
i2c_i801 9473 0
iTCO_wdt 9644 0
iTCO_vendor_support 2382 1 iTCO_wdt
snd_hda_codec_realtek 244000 1
snd_hda_intel 21424 2
snd_hda_codec 73949 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 5320 1 snd_hda_codec
snd_seq 46091 0
snd_seq_device 5354 1 snd_seq
snd_pcm 67225 2 snd_hda_intel,snd_hda_codec
snd_timer 18308 2 snd_seq,snd_pcm
snd 52754 12 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 6460 1 snd
snd_page_alloc 7080 2 snd_hda_intel,snd_pcm
ext4 327734 2
mbcache 5918 1 ext4
jbd2 73784 1 ext4
sr_mod 14219 0
cdrom 34036 1 sr_mod
sd_mod 34239 4
crc_t10dif 1191 1 sd_mod
pata_acpi 2487 0
ata_generic 2555 0
ata_piix 19080 3
i915 381685 2
drm_kms_helper 31540 1 i915
drm 173379 3 i915,drm_kms_helper
i2c_algo_bit 4664 1 i915
i2c_core 25799 9 saa7134,v4l2_common,videodev,tveeprom,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 16662 1 i915
output 1779 1 video
dm_mod 63127 2 dm_mirror,dm_log
Thanks in advance.
Abhishek
Edited by: Abhishek on Jun 4, 2011 8:45 PM
Edited by: Abhishek on Jun 4, 2011 8:50 PM
Edited by: Abhishek on Jun 4, 2011 8:52 PM -
Starting Oracle XE on linux by /etc/init.d/oracle-xe start
Hello,
I installed Oracle Database 10g Express Edition on a Linux Ubuntu 7.04 (feisty)
following official installation instructions found here
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
but I noticed a weird behavior.
The installation process was ok.
The configuration process (/etc/init.d/oracle-xe configure) was also ok.
I set everything on default except for the “starting on boot” option I choose NO, because the instructions let me understand that I can start the service manually by the command:
$ /etc/init.d/oracle-xe start
The configuration process at the end also started the service well, so I could test my new oracle installation on my web browser following the url http://127.0.0.1:8080/apex
Everything went fine... but...
On the next boot I wanted to start my oracle so I typed
sudo /etc/init.d/oracle-xe start
but nothing happened and the server didn't go up.
Looking into to script /etc/init.d/oracle-xe
we can find this switch
case "$1" in
start)
if test -f "$CONFIGURATION"
then
if test "$ORACLE_DBENABLED" != "true"
then
exit 0
fi
else
echo "Oracle Database 10g Express Edition is not configured. You must run
'/etc/init.d/oracle-xe configure' as the root user to configure the database."
exit 0
fi
start
this means that if you chose NO (N) for the “starting on boot” option on the configuration process (NB this choice put false in the env variable ORACLE_DBENABLED) you can't start the dbms by this script.
I try comment the few lines
then
#if test "$ORACLE_DBENABLED" != "true"
#then
# exit 0
#fi
else
and this time the server starts well.
So I deduced that something was wrong with the script and the official installation instructions.Yes... Thank you.
But I saw the problem could to be simple avoided using the options
enable/disable for the script /etc/init.d/oracle-xe,
If you choose not to start oracle at boot time, you can start it
manually by the sequence
/etc/init.d/oracle-xe enable
/etc/init.d/oracle-xe start
then when you want to stop it
/etc/init.d/oracle-xe stop
/etc/init.d/oracle-xe disable
by this last command we don't make oracle restart
at the next system boot.
I think it would be a good thing to update the reference
documentation at
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
to explain this situation better. -
/etc/init.d/imq script fix for RedHat Linux?
I'm using Message Queue 3.0.1 SP2 (Build 4-a) Platform Edition and trying to get it set up to run on a RedHat machine.
I am finding that ps (procps version 2.0.7) is not compatible with the script installed as /etc/init.d/imq.
Specifically, that script's findproc function looks like this:
# find the named process(es)
findproc() {
pid=`/bin/ps -ef |
/bin/grep -w $1 |
/bin/grep -v grep |
/bin/awk '{print $2}'`
echo $pid
}and the script later calls
findproc $EXECUTABLEThe problem is that imqbrokerd (the value of EXECUTABLE) is a script, and so does not show up in the process list. I have struggled to glean the proper PID from ps another way, but so far have not been successful.
Does anyone have an example of a findproc fixed for RedHat's procps?I can see the imqbrokerd process when I do a 'ps -ef' on my
RH Linux system.
# /bin/ps -ef | grep broker
root 22571 1 0 12:28 pts/0 00:00:00 /bin/sh bin/imqbrokerd -bgnd -au
I tried manually stopping the broker through the
/etc/init.d/imq script and it seems to work for me.
# env DEBUG=1 /etc/init.d/imq stop
Stopping imqbrokerd ... done
How are you using /etc/init.d/imq ? -
i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.
"command not found" means ... there is no such thing.
Has the .rpm been installed?
http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122 -
Installing Oracle - /etc/init.d/oracle-xe configure command missing?
I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.
1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb
2) Then I ran
sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb (gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine)
Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.
I ran the following command-
Manually uninstalling Oracle 10g
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client
Then I again ran the following command to install oracle-xe
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb
See below what I got as the output-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
(Reading database ... 184865 files and directories currently installed.)
Preparing to replace oracle-xe-universal:i386 10.2.0.1-1.1 (using oracle-xe-universal_10.2.0.1-1.1_i386.deb) ...
Unpacking replacement oracle-xe-universal:i386 ...
Setting up oracle-xe-universal:i386 (10.2.0.1-1.1) ...
Executing Post-install steps...
Processing triggers for ureadahead ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for python-support ...
rocky@ubuntu:~/git/mygit/edas2/libaio$
Now if I try to run the following command, it says command not found-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo /etc/init.d/oracle-xe configure
sudo: /etc/init.d/oracle-xe: command not found
rocky@ubuntu:~/git/mygit/edas2/libaio$
Even in applications menu I don't see the if oracle has been installed.
So i conclude first time installation was ok but somehow http client didn't worked.
After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.
Please help here.user1680826 wrote:
I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.Not surprising, given that Ubuntu is not a supported OS for Oracle products.
Any reason you are not using a supported OS?
And any reason you are running two threads on the same problem? /etc/init.d/oracle-xe is missing?
>
1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb
2) Then I ran
sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb (gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine)
Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.
I ran the following command-
Manually uninstalling Oracle 10g
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client
Then I again ran the following command to install oracle-xe
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb
See below what I got as the output-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
(Reading database ... 184865 files and directories currently installed.)
Preparing to replace oracle-xe-universal:i386 10.2.0.1-1.1 (using oracle-xe-universal_10.2.0.1-1.1_i386.deb) ...
Unpacking replacement oracle-xe-universal:i386 ...
Setting up oracle-xe-universal:i386 (10.2.0.1-1.1) ...
Executing Post-install steps...
Processing triggers for ureadahead ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for python-support ...
rocky@ubuntu:~/git/mygit/edas2/libaio$
Now if I try to run the following command, it says command not found-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo /etc/init.d/oracle-xe configure
sudo: /etc/init.d/oracle-xe: command not found
rocky@ubuntu:~/git/mygit/edas2/libaio$
Even in applications menu I don't see the if oracle has been installed.
So i conclude first time installation was ok but somehow http client didn't worked.
After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.
Please help here.Edited by: EdStevens on Jul 24, 2011 4:56 PM
Maybe you are looking for
-
Why does my iPhone 5 crash when purchasing a game in the app store?
Hi everyone, I have an iPhone 5 model A1429 with 16GB with iOS version 7.1.2 (11D257). I am trying to install the game Lies of Astaroth (https://itunes.apple.com/app/id586902335) But after pressing Install and entering my iTunes password, my iPhone
-
Unable to load Witcher 2 Steam version
I recently bought Witcher 2 to steam, but have been unable to play the game or even launch it. When I click play from within steam, I get a window saying the game has crashed with the following content: Output of command: ''/home/guhalula/.local/shar
-
Facing Error while installation of netweaver 7.02 on win2k3
Hi Guys, I m facing error during installation on my win2k3 server machine, please help on this , error and log is below. An error occurred while processing option SAP NetWeaver 7.0 including Enhancement Package 2 > SAP Application Server ABAP > MaxDB
-
Old iphone3 photo albums not showing in iphoto and I want to import them
I found my old iphone3 today and discovered a heap of photos on there that we lost years ago when our hard drive died. I'm very keen to get these photos onto the computer and of course then back them up onto an external drive! When I plug the phone i
-
How do I turn off privacy setting in Safari?
Yahoo won't allow me to check email. Says to go to Settings / Safari / privacy / Turn off. I can't see where I can do that???