Configure the Oracle10gASM disk in the RedHatEnterpriseLinux Environment

Source: Internet
Author: User
This experiment is based on the RedHatEnterpriseLinux4 system: [root @ www ~] # Cat/proc/versionLinuxversion2.6.9-67. ELsmp (brewbuilder@ls20-bc1-14.build.RedHat.com) & n

This experiment is based on Red Hat Enterprise Linux 4:

  1. [Root@ Www~] # Cat/proc/version
  2. Linux version2.6.9-67. ELsmp (brewbuilder@ Ls20-Bc1-14.Build.RedHat.com) (gcc version3.4.6 20060404(Red Hat3.4.6-8))#1SMP Wed Nov7 13:58:04EST2007
[root@www ~]# cat /proc/version Linux version 2.6.9-67.ELsmp (brewbuilder@ls20-bc1-14.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)) #1 SMP Wed Nov 7 13:58:04 EST 2007

Download the required rpm package

Http://www.Oracle.com/technology/software/tech/linux/asmlib/rhel4.html

Library and Tools
  • Oracleasm-support-2.1.3-1.el4.i386.rpm
  • Oracleasmlib-2.0.4-1.el4.i386.rpm
Drivers for kernel 2.6.9-67.0.22.EL
  • Oracleasm-2.6.9-67.0.22.ELxenU-2.0.3-1.i686.rpm
  • Oracleasm-2.6.9-67.0.22.ELsmp-2.0.3-1.i686.rpm
  • Oracleasm-2.6.9-67.0.22.ELhugemem-2.0.3-1.i686.rpm
  • Oracleasm-2.6.9-67.0.22.EL-2.0.3-1.i686.rpm
Installation: Java code
  1. [Root@ Www~] # Rpm-Uvh oracleasm-support-2.1.3-1. El4.i386. rpm
  2. Preparing... ######################################## ###[100%]
  3. 1: Oracleasm-support ##################################### ######[100%]
  4. [Root@ Www~] # Rpm-Uvh oracleasm-2.6.9-67.0.22. EL-2.0.3-1. I686.rpm
  5. Preparing... ######################################## ###[100%]
  6. 1: Oracleasm-2.6.9-67.0.22######################################## ###[100%]
  7. [Root@ Www~] # Rpm-Uvh oracleasmlib-2.0.4-1. El4.i386. rpm
  8. Preparing... ######################################## ###[100%]
  9. 1: Oracleasmlib ####################################### ####[100%]
[root@www ~]# rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpmPreparing...                ########################################### [100%]   1:oracleasm-support      ########################################### [100%][root@www ~]# rpm -Uvh oracleasm-2.6.9-67.0.22.EL-2.0.3-1.i686.rpmPreparing...                ########################################### [100%]   1:oracleasm-2.6.9-67.0.22########################################### [100%][root@www ~]# rpm -Uvh oracleasmlib-2.0.4-1.el4.i386.rpmPreparing...                ########################################### [100%]   1:oracleasmlib           ########################################### [100%]
Configuration: Java code
  1. [Root@ Www~] # Vi/etc/sysconfig/rawdevices
  2. [Root@ Www~] # Cat/etc/sysconfig/rawdevices
  3. # This file andInterfaceAre deprecated.
  4. # Applications needing raw device access shoshould open regular
  5. # Block devices with O_DIRECT.
  6. # Raw device bindings
  7. # Format:
  8. #
  9. # Example:/dev/raw/raw1/dev/sda1
  10. #/Dev/raw/raw28 5
  11. /Dev/raw/raw1/dev/sdd1
  12. /Dev/raw/raw2/dev/sde1
  13. /Dev/raw/raw3/dev/sdf1
  14. /Dev/raw/raw4/dev/sdg1
  15. [Root@ Www~] #/Sbin/service rawdevices restart
  16. Assigning devices:
  17. /Dev/raw/raw1 -->/dev/sdd1
  18. /Dev/raw/raw1: bound to major8, Minor49
  19. /Dev/raw/raw2 -->/dev/sde1
  20. /Dev/raw/raw2: bound to major8, Minor65
  21. /Dev/raw/raw3 -->/dev/sdf1
  22. /Dev/raw/raw3: bound to major8, Minor81
  23. /Dev/raw/raw4 -->/dev/sdg1
  24. /Dev/raw/raw4: bound to major8, Minor97
  25. Done
  26. [Root@ Www~] # Chown oracle: oinstall/dev/raw [1-4]
  27. [Root@ Www~] # Chmod660/Dev/raw [1-4]
  28. Modify/etc/udev/permissions. d/50-Udev. permissions. The original device will
  29. Remap. By default, the owner of the original device is changed to the root user during boot. If
  30. If the owner is not an oracle user, ASM may encounter problems when accessing the shared partition. In
  31. /Etc/udev/permissions. d/50-Udev. permissions indicates the original row.
  32. "Raw/*: root: disk:0660"Add comments, and then add a new line
  33. "Raw/*: oracle: dba:0660".
  34. [Root@ Www~] # Vi/etc/udev/permissions. d/50-Udev. permissions
  35. # Raw devices
  36. Ram *: root: disk:0660
  37. # Raw/*: root: disk:0660
  38. Raw/*: oracle: dba:0660
  39. Oracle Logon
  40. [Oracle@ WwwOracle] $ ln-sf/dev/raw/raw1/db/oracle/asmdisk1
  41. [Oracle@ WwwOracle] $ ln-sf/dev/raw/raw2/db/oracle/asmdisk2
  42. [Oracle@ WwwOracle] $ ln-sf/dev/raw/raw3/db/oracle/asmdisk3
  43. [Oracle@ WwwOracle] $ ln-sf/dev/raw/raw4/db/oracle/asmdisk4
  44. [Oracle@ WwwOracle] $ ls
  45. Asmdisk1 asmdisk2 asmdisk3 asmdisk4 product
  46. [Oracle@ WwwOracle] $ ll
  47. Total24
  48. Lrwxrwxrwx1Oracle oinstall13Oct22 15:51Asmdisk1->/dev/raw/raw1
  49. Lrwxrwxrwx1Oracle oinstall13Oct22 15:51Asmdisk2->/dev/raw/raw2
  50. Lrwxrwxrwx1Oracle oinstall13Oct22 15:51Asmdisk3->/dev/raw/raw3
  51. Lrwxrwxrwx1Oracle oinstall13Oct22 15:51Asmdisk4->/dev/raw/raw4
  52. Drwxrwx ---3Oracle oinstall4096Oct14 22:38Product
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.