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

Oraclelinux system udev configuration

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

Share

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

There are two ways to configure udev

According to the value of scsi_id

In the vmware virtual machine, the scsi_id of the scsi disk is not displayed by default

Shut down the virtual machine, open the virtual machine's xmv file, and add parameters at the end of the file

Disk.EnableUUID = "TRUE"

Reboot the virtual machine

View disk scsi_id

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sdd

1up005

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sde

1up006

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sdf

1up004

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sdg

1up001

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sdh

1up003

[root@localhost] # / sbin/scsi_id-g-u-d / dev/sdi

1up002

Edit udev profile

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up001", NAME= "asmdisk1"

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up002", NAME= "asmdisk2"

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up003", NAME= "asmdisk3"

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up004", NAME= "asmdisk4"

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up005", NAME= "asmdisk5"

KERNEL== "sd* [0-9]", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$name", RESULT== "1up006", NAME= "asmdisk6"

[root@localhost ~] # ls / dev/ | grep asm

Asmdisk1

Asmdisk2

Asmdisk3

Asmdisk4

Asmdisk5

Asmdisk6

2. According to the properties of scsi disk

Some versions are udevinfo, some versions are udevadm info

Udevadm info

Determine the disk according to the properties of the red line

Configure udev rules

Start udev and view the disk

Udevinfo is the same as this one.

Udevinfo-a-p / sys/block/sdd view the properties of the disk

The difference is that the property parameter of the disk is not ATTRS, but SYSFS

Udev is configured as

Kernel== "sd* [0-9]", SUBSYSTEM== "block", SYSFS {vendor} = = "storage1", SYSFS {model} = = "disk1"

NAME= "scsi/asmdisk1"

.

Then start udev

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: 235

*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