关机,编辑虚拟机vmx文件,在其中添加
disk.EnableUUID="TRUE"
配置磁盘信息
#过滤40g的3块磁盘--grid
fdisk -l|grep "/dev/sd" |grep "42"
/dev/sde
/dev/sdd
/dev/sdc
#列出磁盘UUID
for i in c d e;
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\""
done
#拷贝系统输出信息
KERNEL=="sd?",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace--device=/dev/$name",RESULT=="36000c29bb637241039bf706ddc31b6bd",SYMLINK+="asm-diskc",OWNER="grid", GROUP="asmadmin",MODE="0660"
KERNEL=="sd?",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace--device=/dev/$name",RESULT=="36000c292c2a4be6a077dd16422149d8c",SYMLINK+="asm-diskd",OWNER="grid", GROUP="asmadmin",MODE="0660"
KERNEL=="sd?",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace--device=/dev/$name",RESULT=="36000c29c6c33b38f1b115a6c21c36265",SYMLINK+="asm-diske",OWNER="grid", GROUP="asmadmin",MODE="0660"
#修改SYMLINK参数
#SYMLINK+="asm-diskc" 修改为 SYMLINK+="asm-grid01"
过滤200g的2块磁盘--dgsystem
fdisk -l|grep "/dev/sd" |grep "21"
/dev/sdf
/dev/sdg
过滤500g的24块磁盘
fdisk -l|grep "/dev/sd" |grep "53"
--dgrecovery 4个500g
/dev/sdk
/dev/sdj
/dev/sdl
/dev/sdi
--dgdata01 10个500g
/dev/sdh
/dev/sdn
/dev/sdm
/dev/sdq
/dev/sdo
/dev/sdr
/dev/sdu
/dev/sdz
/dev/sdy
/dev/sdab
--dgdata02 10个500g
/dev/sdt
/dev/sdx
/dev/sdv
/dev/sdaa
/dev/sdad
/dev/sdac
/dev/sdw
/dev/sdaf
/dev/sds
/dev/sdae
过滤1500g的15块磁盘--backup
fdisk -l|grep "/dev/sd" |grep "16"
/dev/sdp
/dev/sdag
/dev/sdaq
/dev/sdam
/dev/sdap
/dev/sdao
/dev/sdaj
/dev/sdan
/dev/sdai
/dev/sdak
/dev/sdah
/dev/sdar
/dev/sdal
/dev/sdat
/dev/sdas
原文:https://blog.51cto.com/190242856/2665324