Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

RedHat 4 and 5 how to configure RAW or SCSI Rule

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to configure RAW or SCSI Rule in RedHat 4jing5Jing 6. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

RedHat 4 RAW configuration

1 modify the configuration file of bare device service: / etc/sysconfig/rawdevices. Add the following 2 lines.

Format: bare device name block device name

/ dev/raw/raw1 / dev/sdb1

/ dev/raw/raw2 / dev/sdb2

2 set the access rights of Oracle users to bare devices.

Edit the permissions file for UDEV: / etc/udev/permissions.d/50-udev.permissions

Locate the raw device section and modify it to the following format:

# raw devices

Raw*:oracle:dba:0660

Raw/*:oracle:dba:0660

3 confirm that the bare device service starts automatically, and both nodes need to execute it.

[root@raw1 /] # chkconfig-- list rawdevices

Rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off

4. Start the raw devices service to confirm that the bare device has been created successfully and the permissions are correct:

[root@raw1 /] # service rawdevices restart

Assigning devices:

/ dev/raw/raw1-- > / dev/sdb1

/ dev/raw/raw1: bound to major 8, minor 17

/ dev/raw/raw1-- > / dev/sdb2

/ dev/raw/raw1: bound to major 8, minor 18

Done

[oracle@raw2 ~] $cd / dev/raw

[oracle@raw2 raw] $ls-lrt

Total 0

Crw-rw---- 1 oracle dba 162, 1 Feb 28 03:08 raw1

Crw-rw---- 1 oracle dba 162, 2 Feb 28 03:08 raw2

RedHat 5 RAW configuration

1 modify / etc/udev/rules.d/60-raw.rules file

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

ACTION== "add", ENV {MAJOR} = = "8", ENV {MINOR} = = "17", RUN+= "/ bin/raw / dev/raw/raw1% M% m"

ACTION== "add", KERNEL== "/ dev/sdc1", RUN+= "/ bin/raw / dev/raw/raw2% N"

ACTION== "add", ENV {MAJOR} = = "8", ENV {MINOR} = = "33", RUN+= "/ bin/raw / dev/raw/raw2% M% m"

ACTION== "add", KERNEL== "/ dev/sdd1", RUN+= "/ bin/raw / dev/raw/raw3% N"

ACTION== "add", ENV {MAJOR} = = "8", ENV {MINOR} = = "49", RUN+= "/ bin/raw / dev/raw/raw3% M% m"

ACTION== "add", KERNEL== "/ dev/sde1", RUN+= "/ bin/raw / dev/raw/raw4% N"

ACTION== "add", ENV {MAJOR} = = "8", ENV {MINOR} = = "65", RUN+= "/ bin/raw / dev/raw/raw4% M% m"

ACTION== "add", KERNEL== "raw1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

ACTION== "add", KERNEL== "raw2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

ACTION== "add", KERNEL== "raw3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

ACTION== "add", KERNEL== "raw4", OWNER= "grid", GROUP= "asmadmin", MODE= "0777"

2 restart the service:

[root@rac1 ~] # start_udev

Starting udev: [OK]

3 View raw devices:

[root@rac1 ~] # ls-lrt / dev/raw

RedHat 5 UDEV SCSI Rules configuration

1 get the disk uuid that needs to be bound as ASM Disk

# / sbin/scsi_id-g-u-s / block/sdb

SATA_VBOX_HARDDISK_VBd306dbe0-df3367e3_

2 New / etc/udev/rules.d/99-oracle-asmdevices.rules, add the following

KERNEL== "sd*1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-s / block/$parent", RESULT== "SATA_VBOX_HARDDISK_VBd306dbe0-df3367e3_", NAME= "asm-disk1", OWNER= "oracle", GROUP= "dba", MODE= "0660"

3 restart the service:

[root@rac1 ~] # start_udev

Starting udev: [OK]

RedHat 6 UDEV SCSI Rules

1 Edit the / etc/scsi_id.config file, and if it does not exist, create the file and add the following line:

Options=--whitelisted-replace-whitespace

Note: in my test, this step can be omitted

2 get the disk uuid that needs to be bound to ASM Disk. For example, if we want to use / dev/sdc as the ASM disk, then:

# scsi_id-whitelisted-replace-whitespace-device=/dev/sdc

1ATA_VBOX_HARDDISK_VB36a9e548-1838194a

Or

# / sbin/scsi_id-g-u-d / dev/sdb

SATA_VBOX_HARDDISK_VBd306dbe0-df3367e3_

3 New / etc/udev/rules.d/99-oracle-asmdevices.rules, add the following

KERNEL== "sd*1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "SATA_VBOX_HARDDISK_VBd306dbe0-df3367e3_", NAME= "asm-disk1", OWNER= "oracle", GROUP= "dba", MODE= "0660"

Or

KERNEL== "dm-*", PROGRAM= "scsi_id-page=0x83-whitelisted-device=/dev/%k", RESULT== "3600c0ff00015c7b70253c05001000000", OWNER:= "grid", GROUP:= "oinstall"

KERNEL== "dm-*", PROGRAM= "scsi_id-page=0x83-whitelisted-device=/dev/%k", RESULT== "3600c0ff00015c7b72553c05001000000", OWNER:= "grid", GROUP:= "oinstall"

KERNEL== "dm-*", PROGRAM= "scsi_id-page=0x83-whitelisted-device=/dev/%k", RESULT== "3600c0ff00015c7b77165c05001000000", OWNER:= "grid", GROUP:= "oinstall"

KERNEL== "dm-*", PROGRAM= "scsi_id-page=0x83-whitelisted-device=/dev/%k", RESULT== "3600c0ff00015c7b73753c05001000000", OWNER:= "grid", GROUP:= "oinstall"

KERNEL== "dm-*", PROGRAM= "scsi_id-page=0x83-whitelisted-device=/dev/%k", RESULT== "3600c0ff00015c7b78065c05001000000", OWNER:= "grid", GROUP:= "oinstall"

Or

KERNEL== "sd*", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00015c7b70253c05001000000", NAME= "asmocrvote01", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd*", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00015c7b77165c05001000000", NAME= "asmdata01", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd*", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00015c7b73753c05001000000", NAME= "asmdata02", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd*", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00015c7b72553c05001000000", NAME= "asmfra01", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

4 restart the service:

[root@rac1 ~] # start_udev

Starting udev: [OK]

This is all about how to configure RAW or SCSI Rule for RedHat 4 and SCSI Rule. I hope the above content can help you and learn more about it. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report