C-SPOC
- 格式:doc
- 大小:41.00 KB
- 文档页数:8
一、C-SPOC介绍为方便管理集群中的操作,HACMP 提供了一种方法,通过该方法可以在多个集群节点执行命令并维护要执行操作之间的协调。
一些集群维护操作可能影响HACMP 配置(拓扑和资源),但通过HACMP 系统管理工具(C-SPOC),无需停止关键作业即可执行这些任务(如添加或删除资源、用户和更改拓扑元素)。
注意:C-SPOC 使用一种新的集群通信守护进程(clcomdES) 在远程节点上执行命令。
如果此守护进程没有运行或者无法验证来自发起者节点的请求,将不会执行远程节点上的命令,因此C-SPOC 操作将会失败。
使用C-SPOC 实用工具,在一个节点(发起更改的节点)上执行的命令也会在其他集群节点上执行。
C-SPOC 最大限度地减少了管理开销,并降低了节点状态不一致的可能性以下我们将利用C-SPOC功能来在线添加PV及扩展FS。
二、创建PV1、创建PV用命令Cfgmgr –v及/usr/DynamicLinkManager/bin/dlmcfgmgr配置LUN;其中dlmfdrvX就是HDLM封装的为设备# lspvhdisk0 000345a76cc6fc03 rootvg activehdisk1 000345a72fc97c3c rootvg activehdisk2 none Nonehdisk3 none Nonedlmfdrv0 000344b9f4ebfc92 hbvg concurrentdlmfdrv1 000344b9f4ee1d74 dominovg activehdisk8 none Nonehdisk9 none Nonedlmfdrv2 none Nonehdisk6 none Nonehdisk7 none None在两个节点分别创建PV# chdev -l dlmfdrv2 -a pv=yesdlmfdrv2 已更改2、检查PVIDNode 1# lspvhdisk0 000345a76cc6fc03 rootvg activehdisk1 000345a72fc97c3c rootvg activehdisk2 none Nonehdisk3 none Nonedlmfdrv0 000344b9f4ebfc92 hbvg concurrentdlmfdrv1 000344b9f4ee1d74 dominovg active hdisk6 none Nonehdisk7 none Nonehdisk10 none Nonehdisk11 none Nonedlmfdrv2 000345a70c2be00e NoneNode 2# lspvhdisk0 000344b96ca1ba08 rootvg active hdisk1 000344b930963e28 rootvg active hdisk2 none Nonehdisk3 none Nonedlmfdrv0 000344b9f4ebfc92 hbvg concurrent dlmfdrv1 000344b9f4ee1d74 dominovghdisk6 none Nonehdisk7 none Nonehdisk8 none Nonehdisk9 none Nonedlmfdrv2 000345a70c2be00e None输出显示两个节点的PVID已经生成。
三、使用C-SPOC功能扩展VG1、进入C-SPOC# smitty hacmpInitialization and Standard ConfigurationExtended ConfigurationSystem Management (C-SPOC)Problem Determination Tools2、HACMP Logical Volume ManagementManage HACMP ServicesHACMP Communication Interface ManagementHACMP Resource Group and Application ManagementHACMP Log Viewing and ManagementHACMP File Collection ManagementHACMP Security and Users ManagementHACMP Logical V olume ManagementHACMP Concurrent Logical V olume ManagementHACMP Physical V olume ManagementConfigure GPFSOpen a SMIT Session on a Node3、Shared Volume GroupsShared V olume GroupsShared Logical V olumesShared File SystemsSynchronize Shared LVM MirrorsSynchronize a Shared V olume Group Definition4、Set Characteristics of a Shared Volume GroupList All Shared V olume GroupsCreate a Shared V olume GroupCreate a Shared V olume Group with Data Path DevicesSet Characteristics of a Shared V olume GroupImport a Shared V olume GroupMirror a Shared V olume GroupUnmirror a Shared V olume Group5、Add a Volume to a Shared Volume GroupAdd a V olume to a Shared V olume GroupRemove a V olume from a Shared V olume GroupEnable/Disable a Shared V olume Group for Cross-Site LVM Mirroring V erification6、选择需要扩容的VGShared V olume Group Names#Resource Group V olume Groupdominorg dominovg#Resource Group V olume Grouphbrg hbvg7、回车,然后选择添加的硬盘Node_a dlmfdrv28、确定无误后,回车继续Resource Group Name dominorg VOLUME GROUP name dominovg Reference node Node_aVOLUME names dlmfdrv29、检查两节点PV是否加入VGNode 1# lspvhdisk0 000345a76cc6fc03 rootvg active hdisk1 000345a72fc97c3c rootvg active hdisk2 none Nonehdisk3 none Nonedlmfdrv0 000344b9f4ebfc92 hbvg concurrentdlmfdrv1 000344b9f4ee1d74 dominovg activehdisk8 none Nonehdisk9 none Nonedlmfdrv2 000345a70c2be00e dominovg activehdisk6 none Nonehdisk7 none None#Node 2# lspvhdisk0 000344b96ca1ba08 rootvg activehdisk1 000344b930963e28 rootvg activehdisk2 none Nonehdisk3 none Nonedlmfdrv0 000344b9f4ebfc92 hbvg concurrentdlmfdrv1 000344b9f4ee1d74 dominovghdisk6 none Nonehdisk7 none Nonehdisk8 none Nonehdisk9 none Nonedlmfdrv2 000345a70c2be00e dominovg其中Node 1是主节点,Node 2是备节点;从以上输出信息可以知道dlmfdrv2已经添加到dominovg中,VG的信息已经自动同步;由于Node 1是主节点,因此dlmfdrv2在该节点是active的。
四、使用C-SPOC功能扩展FS1、进入System Management (C-SPOC)#smitty hacmpInitialization and Standard ConfigurationExtended ConfigurationSystem Management (C-SPOC) Problem Determination Tools2、HACMP Logical Volume ManagementManage HACMP ServicesHACMP Communication Interface ManagementHACMP Resource Group and Application ManagementHACMP Log Viewing and ManagementHACMP File Collection ManagementHACMP Security and Users ManagementHACMP Logical V olume ManagementHACMP Concurrent Logical V olume ManagementHACMP Physical V olume ManagementConfigure GPFSOpen a SMIT Session on a Node3、Shared File SystemsShared V olume GroupsShared Logical V olumesShared File SystemsSynchronize Shared LVM MirrorsSynchronize a Shared V olume Group Definition4、选择JFS2类型日志文件系统增强型日志文件系统5、Change / Show Characteristics of a Shared JFS2Add an Enhanced Journaled File SystemAdd an Enhanced Journaled File System on a Previously Defined Logical V olume List All Shared File SystemsChange / Show Characteristics of a Shared Enhanced Journaled File SystemRemove a Shared File System6、选择需要扩容的文件系统# Resource Group FileSystemdominorg /domino7、输入文件系统大小Resource Group Name dominorg文件系统名称/domino新建安装点 [/domino]文件系统的大小[387618048]安装组 []许可权读/写安装选项 []是否启动磁盘记帐?No块大小(字节) 4096是否直接插入日志?No直接插入日志大小(MB) 0Node_a: 0516-787 extendlv: Maximum allocation for logical volume fslv01Node_a: is 798.Node_a: cl_rsh had exit code = 1, see cspoc.log and/or clcomd.log for more informationcl_chfs: Error executing chfs -a size="387618048" /domino on node Node_a扩容失败,检查PP SIZE# lsvg dominovg |grep SIZEVG STA TE: active PP SIZE: 128 megabyte(s)显然,/domino目录所关联的LV可分配的最大LV数量只有798,798*128=102,因此只能把文件系统扩展到100g多;需要修改LV属性支持更大的文件系统。