PowerPath软件版本:
Dell powermt for PowerPath (c) Version 8.2 (build 115)
[root@86hxdb03-1 ~]# rpm -qa|grep power
upower-0.99.7-4.el8.x86_64
EMCpower.LINUX-8.2.0.00.00-115.ol8.x86_64
1,检查磁盘名称:
powermt display dev=all
2,修改磁盘名称方法:renamepseudo
powermap renamepseudo -s emcpowerd -t emcpowerda
powermap renamepseudo -s emcpowere -t emcpowerdb
powermap renamepseudo -s emcpowerf -t emcpowerdc
powermap renamepseudo -s emcpowerg -t emcpowerdd
powermap renamepseudo -s emcpowerh -t emcpowerde
powermap renamepseudo -s emcpowerj -t emcpowerdf
powermap renamepseudo -s emcpowerk -t emcpowerdg
powermap renamepseudo -s emcpowerl -t emcpowerdh
powermap renamepseudo -s emcpowerm -t emcpowerdi
powermap renamepseudo -s emcpowern -t emcpowerdj
powermap renamepseudo -s emcpowero -t emcpowerdk
powermap renamepseudo -s emcpowerp -t emcpowerdl
powermap renamepseudo -s emcpowerq -t emcpowerdm
powermap renamepseudo -s emcpowerr -t emcpowerdn
powermt save
3,执行磁盘配置导出和导入在其它主机:
powermap export_mappings -f 02.bak
powermap import_mappings -f 02.bak
powermt save
4,UDEV规则生成:
for i in `cat d.txt`; do echo "KERNEL==\"emcpower*\", SUBSYSTEM==\"block\", PROGRAM==\"/lib/udev/scsi_id -g -u -d /dev/\$name\", RESULT==\"$(/lib/udev/scsi_id -g -u -d /dev/$i)\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""; done >> /etc/udev/rules.d/99-oracle-asmdisks.rules