In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 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: 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.