- 论坛徽章:
- 0
|
6 注册HACMP脚本
6.1 When the resource group processing order is a sequential order
Add a custom cluster event or custom disk methods.
6.2 When the resource group processing order is a parallel order
Add custom disk methods.
6.3 Add a custom cluster event
#smitty hacmp
选择Extended Configuration,
Extended Event Configuration, Configure Pre/Post-Event Commands, 最终选择Add a Custom Cluster Event.
在Add a Custom Cluster Event窗口, 指定以下项:
Cluster event name: dlm_hacmp_disk_available
Cluster event description: dlm_hacmp_disk_available
Script file name for the cluster event: /usr/DynamicLinkManager/cluster/dlm_hacmp_disk_available
Communications Applications and Services, HACMP for AIX, Extended Configuration,Extended Event Configuration, and finally choose Change/Show Predefined HACMP Events.
在Extended Event Configuration window, 选择下列event:
Name to Change:
get_disk_vg_fs
The Change/Show Cluster Events window appears.
在Pre-event Command列表框, 指定dlm_hacmp_disk_available.
#smitty hacmp
选择Extended Configuration,选择Extended Verification and Synchronization.
6.4 Add custom disk methods.
#smitty hacmp
Communications Applications and Services, HACMP for AIX, Extended Configuration, Extended Resource Configuration, HACMP Extended Resource Configuration, Configure Custom Disk Methods, 选择Add Custom Disk Methods.
需要设置的项目:
– 如果是Fibre Channel连接
更改以下custom disk method 设置:
Disk Type (PdDvLn field from CuDv):
disk/fcp/dlmfdrv
Method to identify ghost disks:
/usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_check
Method to determine if a reserve is held:
/usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_reserve_check
Method to break a reserve:
TARGET
Break reserves in parallel:
false
Method to make the disk available:
MKDEV
--如果是SCSI连接
更改以下custom disk method 设置:
- Disk Type (PdDvLn field from CuDv)
disk/scsi/dlmfdrv
- Method to identify ghost disks
/usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_check
- Method to determine if a reservation is held
/usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_reserve_check
- Method to break a reservation
TARGET
- Method to break reservations in parallel
false
- Method to make the disk available
MKDEV
最后,将hacmp进行同步。
#smitty hacmp
Communications Applications and Services, HACMP for AIX, Extended Configuration,Extended Verification and Synchronization.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6408/showart_2156631.html |
|