AIX HACMP使用EMC儲存時的引數修改

lenx2000發表於2012-10-14

早期客戶兩臺AIX HACMP雙機,在發生切換時,出現接收方卷組資訊丟失,所連儲存為EMC儲存。後來透過設定EMC生成的hdiskpowerXX的引數reserve_lock=no問題得到解決

chdev -l hdiskpower0  -a reserve_lock=no
chdev -l hdiskpower1  -a reserve_lock=no
chdev -l hdiskpower2  -a reserve_lock=no
chdev -l hdiskpower3  -a reserve_lock=no

chdev -l hdiskpower4  -a reserve_lock=no
chdev -l hdiskpower5  -a reserve_lock=no
for i in 0 1 2 3 4 5
do chdev –l hdiskpoweri –a reserve_lock=no
done
過去儲存為EVA儲存,中間做過遷移,應該遷移後引數未修改,否則出錯就不是在現在,過去就應該出現了,為啥後來做的人不做個測試,測試一下馬上就能發現問題。
 
 
 
 
 
 
 
 
Cannot remove hdiskpower devices due to a method error(/etc/methods/ucfgpowerdisk)
The fix is to uninstall/reinstall Powerpath, but you won’t be able to until you remove the hdiskpower devices with this procedure:
# odmdelete -q name=hdiskpowerX -o CuDv
(for every hdiskpower device)
# odmdelete -q name=hdiskpowerX -o CuAt
(for every hdiskpower device)
# odmdelete -q name=powerpath0 -o CuDv
# odmdelete -q name=powerpath0 -o CuAt
# rm /dev/powerpath0
You must remove the modified files installed by powerpath and then reboot the server. You will then be able to uninstall powerpath after the reboot via the “installp -u EMCpower” command. The files to be removed are as follows:
(Do not be concerned if some of the removals do not work as PowerPath may not be fully configured properly).
rm ./etc/PowerPathExtensions
rm ./etc/emcp_registration
rm ./usr/lib/boot/protoext/disk.proto.ext.scsi.pseudo.power
rm ./usr/lib/drivers/pnext
rm ./usr/lib/drivers/powerdd
rm ./usr/lib/drivers/powerdiskdd
rm ./usr/lib/libpn.a
rm ./usr/lib/methods/cfgpower
rm ./usr/lib/methods/cfgpowerdisk
rm ./usr/lib/methods/chgpowerdisk
rm ./usr/lib/methods/power.cat
rm ./usr/lib/methods/ucfgpower
rm ./usr/lib/methods/ucfgpowerdisk
rm ./usr/lib/nls/msg/en_US/power.cat
rm ./usr/sbin/powercf
rm ./usr/sbin/powerprotect
rm ./usr/sbin/pprootdev
rm ./usr/lib/drivers/cgext
rm ./usr/lib/drivers/mpcext
rm ./usr/lib/libcg.so
rm ./usr/lib/libcong.so
rm ./usr/lib/libemcp_mp_rtl.so
rm ./usr/lib/drivers/mpext
rm ./usr/lib/libmp.a
rm ./usr/sbin/emcpreg
rm ./usr/sbin/powermt
rm ./usr/share/man/man1/emcpreg.1
rm ./usr/share/man/man1/powermt.1
rm ./usr/share/man/man1/powerprotect.1
Re-install Powerpath.
tags: /etc/methods/ucfgpowerdisk.EMC, devices, Error, hdiskpower, method, Remove
No comment?
 
 
 
 
 
HA配置完成後切換慢。無法釋放磁碟需要做以下配置

1) smitty hacmp -

     > extended configuration -

     > extended resource configuration -> HACMP Extended resources configuration -> configure custom disk methods -> change/show Custom disk methods 

 
EMC儲存,HACMP Custom Disk Methods 設定引數
“Change/Show Custom Disk Methods”,
*Disk Type (PdDvLn field from Cudv)                                  disk/pseudo/power
*New Disk Type                                                             [disk/pseudo/power]
*Method to identify ghost disks                                        [SCSI3]
*Method to determine if a reserve is held                          [SCSI_TUR]
*Method to break a reserve                                             [/usr/lpp/EMC/Symmetrix/bin/emcpowerreset]
  Break reserves in parallel                                                false
*Method to make the disk available                                   [MKDEV]
也可以用命令去執行:
/usr/sbin/cluster/utilities/clcustomdisk -c -tdisk /pseudo/power -Ndisk /pseudo/power -g SCSI3 -h SCSI_TUR -b /usr/lpp/EMC/Symmetrix/bin/emcpowerreset -p true -m MKDEV

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11134849/viewspace-746376/,如需轉載,請註明出處,否則將追究法律責任。

相關文章