UDEV-Verwaltung des gemeinsam genutzten RAC-Speichers

Hintergrund:

Betriebssystem: Hunderte 6.7 Oracle-Version:11.2.0.1

Bedienschritte:

1. Stellen Sie sicher, dass auf allen Knoten des RAC-Clusters udev installiert ist.

[root@11gnode1 ~]# Überprüfen Sie, ob AIO-Pakete installiert wurden oder nicht|grep udev

udev-147-2.63.el6.x86_64

2. Obtain UUID of each block device through scsi_id command. Assume that the LUN sdb-sde

already exists on the system.

[root@11gnode1 rules.d]# for i in b c d e ;

> tun

> Echo “sd$i” “`scsi_id -g -u /dev/sd$i` “;

> getan

sdb 36000c2934ddf461ceb40ca28aad861b0

sdc 36000c291d9327fded9572349b484867f

sdd 36000c29b6ed0200b4066a9ecfa4704f4

sde 36000c297890e12b9d2e37430a2fb09f3

3. Create and condfigure UDEV Rules

[root@11gnode1 ~]# cd /etc/udev/rules.d

create 99-oracle-asmdevices.rules

[root@11gnode1 rules.d]# touch /etc/udev/rules.d/99-oracle-asmdevices.rules

[root@11gnode1 rules.d]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules

KERNEL==sd*”, BUS==scsi”, PROGRAM==”/sbin/scsi_idwhitelistedreplace-whitespace

device=/dev/$name”,RESULT==”36000c2934ddf461ceb40ca28aad861b0″, NAME=vol1″, OWNER=”Gitter”,

GROUP=”asmadmin”,

MODE=”0660″

KERNEL==sd*”, BUS==scsi”, PROGRAM==”/sbin/scsi_idwhitelistedreplace-whitespace

device=/dev/$name”,RESULT==”36000c291d9327fded9572349b484867f”, NAME=vol2″, OWNER=”Gitter”,

GROUP=”asmadmin”,

MODE=”0660″

KERNEL==sd*”, BUS==scsi”, PROGRAM==”/sbin/scsi_idwhitelistedreplace-whitespace

device=/dev/$name”,RESULT==”36000c29b6ed0200b4066a9ecfa4704f4″, NAME=vol3″, OWNER=”Gitter”,

GROUP=”asmadmin”,

MODE=”0660″

KERNEL==sd*”, BUS==scsi”, PROGRAM==”/sbin/scsi_idwhitelistedreplace-whitespace

device=/dev/$name”,RESULT==”36000c297890e12b9d2e37430a2fb09f3″, NAME=vol4″, OWNER=”Gitter”,

GROUP=”asmadmin”,

MODE=”0660″

4. Duplicate this rules file to other node.

[root@11gnode1 rules.d]# scp 99-oracle-asmdevices.rules 10.100.25.9:/etc/udev/rules.d

[email protected]’s password:

99-oracle-asmdevices.rules 100% 851 0.8KB/s 00:00

5. restart udev service on all ondes

[root@11gnode1 ~]# start_udev

Starting udev: [ OK ]

6. Check permission of all shared devices.

Knoten1:

[root@11gnode1 ~]# ls -l /dev/vol*

brw-rw—-. 1 grid asmadmin 8, 16 Feb 22 00:43 /dev/vol1

brw-rw—-. 1 grid asmadmin 8, 32 Feb 22 00:43 /dev/vol2

brw-rw—-. 1 grid asmadmin 8, 48 Feb 22 00:43 /dev/vol3

brw-rw—-. 1 grid asmadmin 8, 64 Feb 22 00:43 /dev/vol4

Knoten2:

[root@11gnode2 ~]# ls -l /dev/vol*

brw-rw—-. 1 grid asmadmin 8, 16 Feb 22 01:02 /dev/vol1

brw-rw—-. 1 grid asmadmin 8, 32 Feb 22 01:02 /dev/vol2

brw-rw—-. 1 grid asmadmin 8, 48 Feb 22 01:02 /dev/vol3

brw-rw—-. 1 grid asmadmin 8, 64 Feb 22 01:02 /dev/vol4

Hinterlasse eine Antwort