udev固化存储磁盘在不通平台上(Redhat 5和Redhat 6)

udev固化存储磁盘在不通平台上(Redhat 5和Redhat 6)

 

redhat 5 (转Maclean Liu)

 

for i in b c d e f g h i j k ;

do

echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id -g -u -s %p\", RESULT==\"`scsi_id -g -u -s /block/sd$i`\",NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""

done

 

结果展示:

KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="14f504e46494c45006538703942392d4e4f6f352d455a527a", NAME="asm-data1", OWNER="grid", GROUP="asmadmin", MODE="0660"



redhat 6 (本人doudou编写)

 

1.步骤

vi /etc/scsi_id.config

options=--whitelisted --replace-whitespace

 

2.步骤

 

for i in b c d e f g h i j k ;

do

echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\",RESULT==\"`scsi_id --whitelisted --replace-whitespace --device /dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\",GROUP=\"asmadmin\", MODE=\"0660\""

done

结果展示:

KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="14f504e46494c45007339687852732d4f3762442d77666a71", NAME="asm-crs1", OWNER="grid",GROUP="asmadmin", MODE="0660"

你可能感兴趣的:(rac)