linux 6
iscsiadm -m discovery -t sendtargets -p xxx.xxx.xx.100
iscsiadm -m node -l
fdisk -l
fdisk -l
for i in b c d e f g h i j k l m n o p q r s t u ; do echo "KERNEL==\"sd\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i
\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules; done
/sbin/start_udev
ls -l /dev/asm
more /etc/udev/rules.d/99-oracle-asmdevices.rules
cd /dev/mapper/
linux 7
for i in b c d e f g h i j k l m n o p q r s t u ; do echo "KERNEL==\"sd*\", SUBSYSTEM==\"block\", PROGRAM==\"/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i
\", SYMLINK+=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules ; done
vim /etc/udev/rules.d/99-oracle-asmdevices.rules
/sbin/udevadm trigger --type=devices --action=change
udevadm control --reload-rules