사전 구성확인
# odmget HACMPcustom
HACMPcustom:
name = "set_scsi_id"
type = "event"
description = "Set correct scsi id on EMC CLARiiON pseudo devices."
value = "/etc/set_scsi_id'"
relation = ""
Step 1) 기존 “set_scsi_id” 정보를 삭제
/usr/es/sbin/cluster/utilities/clrmcustom -t event -n 'set_scsi_id'
Step 2) 새로운 script(cfgscsi_id)를 HACMPcustom에 추가
# /usr/es/sbin/cluster/utilities/claddcustom -t event -n 'cfgscsi_id' -I 'Set correct scsi id on EMC CLARIION pseudo device.' -v '/usr/sbin/cfgscsi_id'
Step 3) odm에 제대로 인식이 되었는지 확인
# odmget HACMPcustom
HACMPcustom:
name = "cfgscsi_id"
type = "event"
description = "Set correct scsi id on EMC CLARiiON pseudo devices."
value = "/usr/sbin/cfgscsi_id"
relation = ""
status = 0
Step 4) hacmp node_up, node_down pre-event에 등록
#/usr/es/sbin/cluster/utilities/clchevent -O'node_up' -s'/usr/es/sbin/cluster/events/node_up' -b 'cfgscsi_id' -c '0'
#/usr/es/sbin/cluster/utilities/clchevent -O'node_down' -s'/usr/es/sbin/cluster/events/node_down' -b 'cfgscsi_id' -c '0'
Step 5) hacmp node_up, node_down pre-event에 등록 확인
# odmget -q name=node_up HACMPevent
HACMPevent:
name = "node_up"
desc = "Script run when a node is attempting to join the cluster."
setno = 101
msgno = 7
catalog = "events.cat"
cmd = "/usr/es/sbin/cluster/events/node_up"
notify = ""
pre = "cfgscsi_id"
post = ""
recv = ""
count = 0
event_duration = 0
# odmget -q name=node_down HACMPevent
HACMPevent:
name = "node_down"
desc = "Script run when a node is attempting to leave the cluster."
setno = 101
msgno = 8
catalog = "events.cat"
cmd = "/usr/es/sbin/cluster/events/node_down"
notify = ""
pre = "cfgscsi_id"
post = ""
recv = ""
count = 0
event_duration = 0
Step 6) emcpowerreset 기존 정보 확인(아래 정보와 다른 경우 Step 7 실행)
# odmget HACMPdisktype
HACMPdisktype:
PdDvLn = "disk/pseudo/power"
ghostdisks = "SCSI3"
checkres = "SCSI_TUR"
breakres = "/usr/lpp/EMC/CLARiiON/bin/emcpowerreset"
parallel = "false"
makedev = "MKDEV"
reserved1 = ""
reserved2 = ""
reserved3 = ""
Step 7) Setup "emcpowerreset" for HACMP 5.2 Classic and ES (SMIT)
# /usr/sbin/cluster/utilities/clcustomdisk -c -tdisk/pseudo/power -Ndisk/pseudo/power -gSCSI3 -hSCSI_TUR -b/usr/lpp/EMC/CLARiiON/bin/emcpowerreset -ptrue -mMKDEV
'IT > Storage' 카테고리의 다른 글
Powerpath command Example (0) | 2016.08.05 |
---|---|
powerpath how to change psuedo name (0) | 2016.08.05 |
PowerPath and Navisphere install on a Linux (0) | 2016.08.04 |
What are the differences between failover modes on a CLARiiON array? (0) | 2012.09.03 |
SAN Switch 명령어 List (silkworm3200) (0) | 2012.01.20 |