RedHat bare device startup configuration for RAC

Source: Internet
Author: User
After installing rac10gforredhatas4 and rac10gforredhatas5, you can find that the configuration of the bare device is different from the self-start configuration. The configuration of the two versions is listed below. 1. linuxredhat

By installing rac 10g for redhat as 4 and rac 10g for redhat as 5, we can find that the configuration of bare devices is different from the self-start configuration. The configuration of the two versions is listed below. 1. linux redhat

By installing rac 10g for RedHat as 4 and rac 10g for redhat as 5, it is found that the self-starting configuration of bare devices is different.

The configurations of the two versions are listed below

1. linux redhat as 4

Edit the/etc/sysconfig/rawdevices file, adding the following lines. (add bare device ing)

/Dev/raw/raw1/dev/sdb1

/Dev/raw/raw2/dev/sdc1

// Change the bare device owner and group

Chown Oracle: oinstall/dev/raw/raw1

Chown oracle: oinstall/dev/raw/raw2

// Change the device access permission

Chmod 600/dev/raw/raw1

Chmod 600/dev/raw/raw2

Modify/etc/udev/permissions. d/50-udev.permissions,

[Root @ rac1 ~] # Vi/etc/udev/permissions. d/50-udev.permissions

# Raw devices

Ram *: root: disk: 0660

# Raw/*: root: disk: 0660

Raw/*: oracle: dba: 0660 is automatically loaded to oracle users when the machine is started.

2. linux redhat as 5

Because rawdevices service is canceled in rh5, the following configuration is required to use bare devices.

[Root @ raw1 ~] # Vi/etc/udev/rules. d/60-raw.rules

Add the following content

ACTION = "add", KERNEL = "sdb1", RUN + = "/bin/raw/dev/raw/raw1% N"

-R9El: h'kdp3u0action = "add", ENV {MAJOR }= "8", ENV {MINOR} = "1 ", RUN + = "/bin/raw/dev/raw/raw2% M % m"

// Then run the command to start the device

[Root @ raw1 ~] # Start_udev

Starting udev: [OK]

Supplement:

Today I encountered a problem, that is, when I used a hard disk for the ASM instance and divided it into two partitions to install ASM, ACTION = "add ", ENV {MAJOR} = "8", ENV {MINOR} = "1 ", RUN + = "/bin/raw/dev/raw/raw2% M % m" The following ENV {MINOR} = "1" cannot start the bare device if the setting is incorrect, how can I set it correctly?

Suddenly, a bare device supports up to 255 disks and each hard disk has 16 partitions. I mounted a hard disk and divided it into three partitions. The device number is 17,18, 19. How can I view the Partition Number of a device? You can also view the Partition Number in this way and go to DEV to view it: ll/dev/* you can see that the attribute of your partition contains 8 to characters. Think about it. When doing RAC in most documents, three virtual machine hard disks are used, I configured and mounted the hard disk from the device numbers such as 17,33 and 49, which further confirmed my ideas.

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.