[Linux-cluster] Help with Oracle ASMLib 2.0 and Fedora 9

Subhendu Ghosh sghosh at redhat.com
Tue Jul 1 00:02:43 UTC 2008


If you are using ocfs2, then ASM and ASMlib are not required.  ASM uses raw 
disks and ASMlib provides ASM a way to easily recognize said disks.

cheers
Subhendu

Tina Soles wrote:
> Hello,
> 
>  
> 
> I am attempting to setup an Oracle RAC using these instructions: 
> http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi_2.html#17
> 
>  
> 
> I am running Fedora 9 with kernel = 2.6.25-14.fc9.i686
> 
>  
> 
> I realize this is probably an “unsupported” version, but it’s the only 
> version that I could get to work with my firewire setup, so I cannot 
> change the kernel.
> 
> ocfs2 is up and running, and now I need to install ASMLib 2.0, but it 
> appears that there is no rpm distribution for this kernel.  Therefore, I 
> am attempting to build my own, from the source files, 
> oracleasm-2.0.4.tar.gz.  After unzipping and untarring, I run 
> ./configure and it seems to run fine (see below), but when I try to run 
> make install it bombs with an error no rule to make target 
> `oracleasm.ko', needed by `install-oracleasm'.  Stop.
> 
>  
> 
> I don’t have any experience building rpms from source, so any explicit 
> instructions you can give me would be much appreciated.  Also, does this 
> source file contain everything I need in order to build the kernel 
> driver, userspace library, and driver support files, or do I need 
> separate source files for those?  Please forgive my ignorance, as I am 
> new to this.
> 
>  
> 
> Thanks in advance for any help you can give me.
> 
>  
> 
> Regards,
> 
> Tina
> 
>  
> 
> # ./configure
> 
> checking build system type... i686-pc-linux-gnu
> 
> checking host system type... i686-pc-linux-gnu
> 
> checking for gcc... gcc
> 
> checking for C compiler default output file name... a.out
> 
> checking whether the C compiler works... yes
> 
> checking whether we are cross compiling... no
> 
> checking for suffix of executables...
> 
> checking for suffix of object files... o
> 
> checking whether we are using the GNU C compiler... yes
> 
> checking whether gcc accepts -g... yes
> 
> checking for gcc option to accept ANSI C... none needed
> 
> checking how to run the C preprocessor... gcc -E
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> 
> checking whether ln -s works... yes
> 
> checking for ranlib... ranlib
> 
> checking for ar... /usr/bin/ar
> 
> checking for egrep... grep -E
> 
> checking for ANSI C header files... yes
> 
> checking for an ANSI C-conforming const... yes
> 
> checking for sys/types.h... yes
> 
> checking for sys/stat.h... yes
> 
> checking for stdlib.h... yes
> 
> checking for string.h... yes
> 
> checking for memory.h... yes
> 
> checking for strings.h... yes
> 
> checking for inttypes.h... yes
> 
> checking for stdint.h... yes
> 
> checking for unistd.h... yes
> 
> checking for unsigned long... yes
> 
> checking size of unsigned long... 4
> 
> checking for vendor... not found
> 
> checking for vendor kernel... not supported
> 
> checking for directory with kernel build tree... 
> /lib/modules/2.6.25-14.fc9.i686/build
> 
> checking for kernel version... 2.6.25-14.fc9.i686
> 
> checking for capabilities mask in backing_dev_info... yes
> 
> checking for vfsmount in ->get_sb() helpers... yes
> 
> checking for for mutex API... yes
> 
> checking for for i_private... yes
> 
> checking for for i_blksize... no
> 
> configure: creating ./config.status
> 
> config.status: creating Config.make
> 
> config.status: creating include/linux/oracleasm/module_version.h
> 
> config.status: creating vendor/sles9/oracleasm.spec-generic
> 
> config.status: creating vendor/rhel4/oracleasm.spec-generic
> 
> config.status: creating vendor/fc6/oracleasm.spec-generic
> 
> config.status: creating vendor/sles10/oracleasm.spec-generic
> 
> config.status: creating vendor/rhel5/oracleasm.spec-generic
> 
> config.status: creating vendor/common/oracleasm-headers.spec-generic
> 
>  
> 
> # make install
> 
> make -C include install
> 
> make[1]: Entering directory `/root/rpms/source/oracleasm-2.0.4/include'
> 
> make -C linux install
> 
> make[2]: Entering directory 
> `/root/rpms/source/oracleasm-2.0.4/include/linux'
> 
> make -C oracleasm install
> 
> make[3]: Entering directory 
> `/root/rpms/source/oracleasm-2.0.4/include/linux/oracleasm'
> 
> /bin/sh ../../../mkinstalldirs /usr/local/include/linux/oracleasm
> 
> for hdr in abi.h abi_compat.h disk.h error.h manager.h manager_compat.h 
> kernel.h compat32.h module_version.h; do \
> 
>           /usr/bin/install -c -m 644 $hdr 
> /usr/local/include/linux/oracleasm/$hdr; \
> 
>         done
> 
> make[3]: Leaving directory 
> `/root/rpms/source/oracleasm-2.0.4/include/linux/oracleasm'
> 
> make[2]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/include/linux'
> 
> make[1]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/include'
> 
> make -C kernel install
> 
> make[1]: Entering directory `/root/rpms/source/oracleasm-2.0.4/kernel'
> 
> make[1]: *** No rule to make target `oracleasm.ko', needed by 
> `install-oracleasm'.  Stop.
> 
> make[1]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/kernel'
> 
> make: *** [kernel-install] Error 2
> 
>  
> 
> Tina Soles
> 
> Senior Analyst
> 
>  
> 
> STR Software <http://www.strsoftware.com/>
> 
>  
> 
> 11505 Allecingie Parkway
> Richmond, VA 23235
> email. tina.soles at strsoftware.com <mailto:troy.duval at strsoftware.com>
> 
> phone. 804.897.1600
> fax. 804.897.1638
> 
> web. www.strsoftware.com <http://www.strsoftware.com/>
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster


-- 
Subhendu Ghosh
Solutions Architect
Red Hat





More information about the Linux-cluster mailing list