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

Bind a bare device (RHEL5) with udev

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In Oracle 9i, 10g, and 11g, bare devices are sometimes required for support.

Local bare devices can be bound using the following methods.

Preparation:

Make two bare partitions first, do not format.

fdisk /dev/sdd

fdisk /dev/sde

Then:

vim /etc/udev/rules.d/60-raw.rules

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

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

KERNEL=="raw1", OWNER="oracle", GROUP="oinstall", MODE="660"

KERNEL=="raw2", OWNER="oracle", GROUP="oinstall", MODE="660"

Then, start udev:

start_udev

Finally, confirm:

ll /dev/raw/

crw-rw---- 1 oracle oinstall 162, 1 Dec 28 10:29 raw1

crw-rw---- 1 oracle oinstall 162, 2 Dec 28 10:29 raw2

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

Wechat

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

12
Report