Detailed udev reload configuration in Linux

Source: Internet
Author: User

When you use Udev after Red Hat 6.2, when you add a new disk map or permissions, using Start_udev causes the VIP to drift, because Udev manages the characteristics of the network card.
Take a look at the example
Here I have added a disk map operation

Using Start_udev

[Root@rac02 ~]# Start_udev


[Root@rac02 ~]# ls-l/dev/asm*


BRW-RW----1 Grid asmadmin 252, April 10:37/dev/asm-acfs-disks--This is the new addition


-rw-r--r--1 root root 24416772096 Apr 10:34/dev/asm-acfs-disks-direct=1


BRW-RW----1 grid asmadmin 252, 272 may 10:11/DEV/ASM-FD-DISKD


BRW-RW----1 grid asmadmin 252, 256 may 10:11/dev/asm-fd-diske


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-FD-DISKF


BRW-RW----1 grid asmadmin 252, 224 may 10:11/dev/asm-fd-diskg


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diskh


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diski


BRW-RW----1 grid asmadmin 252, 176 may 10:11/dev/asm-fd-diskj


BRW-RW----1 Grid asmadmin 252, 160 may 10:11/DEV/ASM-HD-DISKK


BRW-RW----1 grid asmadmin 252, 144 may 10:11/DEV/ASM-HD-DISKL


BRW-RW----1 grid asmadmin 252, 128 may 10:11/DEV/ASM-HD-DISKM


BRW-RW----1 grid asmadmin 252, 112 may 10:11/DEV/ASM-HD-DISKN


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disko


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKP


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKQ


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-diskr


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disks


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-ocr-diska


BRW-RW----1 Grid asmadmin 252, 304 may 10:11/DEV/ASM-OCR-DISKB


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-OCR-DISKC





/dev/asm:


Total 0


View CRS Resources


[Root@rac02 ~]# crsctl status res-t


--------------------------------------------------------------------------------


NAME TARGET State SERVER State_details


--------------------------------------------------------------------------------


Local Resources


--------------------------------------------------------------------------------


Ora. Datadg_fd.dg


Online online RAC01


Online online RAC02


Ora. Datadg_hd.dg


Online online RAC01


Online online RAC02


Ora. Listener.lsnr


Online online RAC01


ONLINE OFFLINE RAC02


Ora. Ocr.dg


Online online RAC01


Online online RAC02


Ora.asm


Online online RAC01 started


Online online RAC02 started


Ora.gsd


OFFLINE OFFLINE RAC01


OFFLINE OFFLINE RAC02


Ora.net1.network


Online online RAC01


Online online RAC02


Ora.ons


Online online RAC01


Online online RAC02


Ora.registry.acfs


Online online RAC01


Online online RAC02


--------------------------------------------------------------------------------


Cluster Resources


--------------------------------------------------------------------------------


Ora. Listener_scan1.lsnr


1 Online Online RAC01


Ora.cvu


1 Online Online RAC01


Ora.rac01.vip


1 Online Online RAC01


Ora.rac02.vip


1 ONLINE Intermediate RAC01 FAILED over--has drifted


Ora.ngstadb.db


1 Online Online rac01 Open


2 Online Online Rac02 Open


Ora.oc4j


1 Online Online RAC01


Ora.scan1.vip


1 Online Online RAC01


It shows that using Udev to find the VIP has been drifting

Using UDEVADM Trigger

[Root@rac02 ~]# Udevadm Trigger


[Root@rac02 ~]# ls-l/dev/asm*


BRW-RW----1 grid asmadmin 252, Apr 10:37/dev/asm-acfs-disks--New Canada


-rw-r--r--1 root root 24416772096 Apr 10:34/dev/asm-acfs-disks-direct=1


BRW-RW----1 grid asmadmin 252, 272 may 10:11/DEV/ASM-FD-DISKD


BRW-RW----1 grid asmadmin 252, 256 may 10:11/dev/asm-fd-diske


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-FD-DISKF


BRW-RW----1 grid asmadmin 252, 224 may 10:11/dev/asm-fd-diskg


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diskh


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diski


BRW-RW----1 grid asmadmin 252, 176 may 10:11/dev/asm-fd-diskj


BRW-RW----1 Grid asmadmin 252, 160 may 10:11/DEV/ASM-HD-DISKK


BRW-RW----1 grid asmadmin 252, 144 may 10:11/DEV/ASM-HD-DISKL


BRW-RW----1 grid asmadmin 252, 128 may 10:11/DEV/ASM-HD-DISKM


BRW-RW----1 grid asmadmin 252, 112 may 10:11/DEV/ASM-HD-DISKN


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disko


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKP


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKQ


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-diskr


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disks


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-ocr-diska


BRW-RW----1 Grid asmadmin 252, 304 may 10:11/DEV/ASM-OCR-DISKB


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-OCR-DISKC





/dev/asm:


Total 0


[Root@rac02 ~]# crsctl status res-t


--------------------------------------------------------------------------------


NAME TARGET State SERVER State_details


--------------------------------------------------------------------------------


Local Resources


--------------------------------------------------------------------------------


Ora. Datadg_fd.dg


Online online RAC01


Online online RAC02


Ora. Datadg_hd.dg


Online online RAC01


Online online RAC02


Ora. Listener.lsnr


Online online RAC01


ONLINE OFFLINE RAC02


Ora. Ocr.dg


Online online RAC01


Online online RAC02


Ora.asm


Online online RAC01 started


Online online RAC02 started


Ora.gsd


OFFLINE OFFLINE RAC01


OFFLINE OFFLINE RAC02


Ora.net1.network


Online online RAC01


Online online RAC02


Ora.ons


Online online RAC01


Online online RAC02


Ora.registry.acfs


Online online RAC01


Online online RAC02


--------------------------------------------------------------------------------


Cluster Resources


--------------------------------------------------------------------------------


Ora. Listener_scan1.lsnr


1 Online Online RAC01


Ora.cvu


1 Online Online RAC01


Ora.rac01.vip


1 Online Online RAC01


Ora.rac02.vip


1 ONLINE Intermediate RAC01 FAILED over--drift


Ora.ngstadb.db


1 Online Online rac01 Open


2 Online Online Rac02 Open


Ora.oc4j


1 Online Online RAC01


Ora.scan1.vip


1 Online Online RAC01


View Udevadm Parameters

UDEVADM trigger [Options]


Incoming device events received within the receive. Primarily used to replay Coldplug event information


(translator added: The kernel has detected the system's hardware devices at startup and exported the hardware device information through the SYSFS kernel virtual file system.) Udev scans Sysfs file system, generates hot-swappable (HotPlug) events based on hardware device information, Udev read these events, and generates corresponding hardware device files. This process is called coldplug because there is no actual hardware plug action. )





--verbose output The list of devices that will be triggered.


--dry-run does not really trigger the event


The--type=type triggers a special device. Valid type: devices,subsystem,failed. Default is Devices


--action=action


Triggered event, default is change


--subsystem-match=subsystem


The device event that triggers the matching subsystem. This option can be specified multiple times, and shell pattern matching is supported.


--attr-match=attribute=value


Triggers a device event that matches the Sysfs property. If the property value and property are specified together, the value of the property can be matched with a shell pattern. If no value is specified, the existing property is reconfirmed. This option can be specified multiple times.


--attr-nomatch=attribute=value


Do not trigger device events that match attributes. If you can use pattern matching. You can also specify multiple times


--property-match=property=value


A device that matches a property. Support pattern matching can be specified multiple times


--tag-match=property


Matching tags match the device. Can be specified more than once.


--sysname-match=name


Test Udevadm Trigger–subsystem-match=subsystem

[Root@rac02 ~]# crsctl status res-t


--------------------------------------------------------------------------------


NAME TARGET State SERVER State_details


--------------------------------------------------------------------------------


Local Resources


--------------------------------------------------------------------------------


Ora. Datadg_fd.dg


Online online RAC01


Online online RAC02


Ora. Datadg_hd.dg


Online online RAC01


Online online RAC02


Ora. Listener.lsnr


Online online RAC01


Online online RAC02


Ora. Ocr.dg


Online online RAC01


Online online RAC02


Ora.asm


Online online RAC01 started


Online online RAC02 started


Ora.gsd


OFFLINE OFFLINE RAC01


OFFLINE OFFLINE RAC02


Ora.net1.network


Online online RAC01


Online online RAC02


Ora.ons


Online online RAC01


Online online RAC02


Ora.registry.acfs


Online online RAC01


Online online RAC02


--------------------------------------------------------------------------------


Cluster Resources


--------------------------------------------------------------------------------


Ora. Listener_scan1.lsnr


1 Online Online RAC01


Ora.cvu


1 Online Online RAC01


Ora.rac01.vip


1 Online Online RAC01


Ora.rac02.vip


1 Online Online Rac02


Ora.ngstadb.db


1 Online Online rac01 Open


2 Online Online Rac02 Open


Ora.oc4j


1 Online Online RAC01


Ora.scan1.vip


1 Online Online RAC01


[Root@rac02 ~]# Udevadm Trigger Subsystem-match=block


[Root@rac02 ~]# ls-l/dev/asm*


BRW-RW----1 grid asmadmin 252, Apr 10:37/dev/asm-acfs-disks--New Canada


-rw-r--r--1 root root 24416772096 Apr 10:34/dev/asm-acfs-disks-direct=1


BRW-RW----1 grid asmadmin 252, 272 may 10:11/DEV/ASM-FD-DISKD


BRW-RW----1 grid asmadmin 252, 256 may 10:11/dev/asm-fd-diske


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-FD-DISKF


BRW-RW----1 grid asmadmin 252, 224 may 10:11/dev/asm-fd-diskg


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diskh


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-fd-diski


BRW-RW----1 grid asmadmin 252, 176 may 10:11/dev/asm-fd-diskj


BRW-RW----1 Grid asmadmin 252, 160 may 10:11/DEV/ASM-HD-DISKK


BRW-RW----1 grid asmadmin 252, 144 may 10:11/DEV/ASM-HD-DISKL


BRW-RW----1 grid asmadmin 252, 128 may 10:11/DEV/ASM-HD-DISKM


BRW-RW----1 grid asmadmin 252, 112 may 10:11/DEV/ASM-HD-DISKN


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disko


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKP


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-HD-DISKQ


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-diskr


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-hd-disks


BRW-RW----1 grid asmadmin 252, 10:11/dev/asm-ocr-diska


BRW-RW----1 Grid asmadmin 252, 304 may 10:11/DEV/ASM-OCR-DISKB


BRW-RW----1 grid asmadmin 252, 10:11/DEV/ASM-OCR-DISKC


[Root@rac02 ~]# crsctl status res-t


--------------------------------------------------------------------------------


NAME TARGET State SERVER State_details


--------------------------------------------------------------------------------


Local Resources


--------------------------------------------------------------------------------


Ora. Datadg_fd.dg


Online online RAC01


Online online RAC02


Ora. Datadg_hd.dg


Online online RAC01


Online online RAC02


Ora. Listener.lsnr


Online online RAC01


Online online RAC02 stopping


Ora. Ocr.dg


Online online RAC01


Online online RAC02


Ora.asm


Online online RAC01 started


Online online RAC02 started


Ora.gsd


OFFLINE OFFLINE RAC01


OFFLINE OFFLINE RAC02


Ora.net1.network


Online online RAC01


Online online RAC02


Ora.ons


Online online RAC01


Online online RAC02


Ora.registry.acfs


Online online RAC01


Online online RAC02


--------------------------------------------------------------------------------


Cluster Resources


--------------------------------------------------------------------------------


Ora. Listener_scan1.lsnr


1 Online Online RAC01


Ora.cvu


1 Online Online RAC01


Ora.rac01.vip


1 Online Online RAC01


Ora.rac02.vip


1 ONLINE OFFLINE


Ora.ngstadb.db


1 Online Online rac01 Open


2 Online Online Rac02 Open


Ora.oc4j


1 Online Online RAC01


Ora.scan1.vip


1 Online Online RAC01


above see the network normal, did not appear VIP drift

Load udev Configuration Permission command

Udevadm Trigger Subsystem-nomatch=net

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.