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

How to configure ASM disk for rhel7.0

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

Share

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

This article mainly explains "rhel7.0 how to configure ASM disk", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "rhel7.0 how to configure ASM disk" bar!

Configure ASM disks and bind with udev

Recently, I encountered the problem of configuring ASM disk when installing 12c RAC on rhel 7.0. I rewrote a script and tested it.

1. The virtual machine needs to be added in the vmx file to display the UUID

Disk.enableUUID = "TRUE"

two。 Create / etc/udev/rules.d/99-my-asmdevices.rules

Step 1 (can be omitted)

# rm-rf / etc/udev/rules.d/99-my-asmdevices.rules

Step 2 (create file)

# for i in b c d

Do

Echo "KERNEL==\" sd*\ ", ENV {DEVTYPE} = =\" disk\ ", SUBSYSTEM==\" block\ ", PROGRAM==\" / usr/lib/udev/scsi_id-g-u-d\ $devnode\ ", RESULT==\" `/ usr/lib/udev/scsi_id-g-u / dev/sd$ i`\ ", RUN+=\" / bin/sh-c 'mknod / dev/asmdisk$i b\ $major\ $minor; chown grid:asmadmin / dev/asmdisk$i Chmod 0660 / dev/asmdisk$i'\ "> > / etc/udev/rules.d/99-my-asmdevices.rules

Done

Step 3

# / sbin/udevadm trigger-type=devices-action=change

Step 4 (verify the disk)

# ls / dev/asm*

/ dev/asmdiskb / dev/asmdiskc / dev/asmdiskd

Thank you for reading, the above is the content of "how to configure ASM disk in rhel7.0". After the study of this article, I believe you have a deeper understanding of how to configure ASM disk in rhel7.0, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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