C-SPOC

发布时间:2011-12-07 09:32:32   来源:文档文库   
字号:

一、C-SPOC介绍
为方便管理集群中的操作,HACMP 提供了一种方法,通过该方法可以在多个集群节点执行命令并维护要执行操作之间的协调。

一些集群维护操作可能影响 HACMP 配置(拓扑和资源),但通过 HACMP 系统管理工具 (C-SPOC),无需停止关键作业即可执行这些任务(如添加或删除资源、用户和更改拓扑元素)。
注意:C-SPOC 使用一种新的集群通信守护进程 (clcomdES) 在远程节点上执行命令。如果此守护进程没有运行或者无法验证来自发起者节点的请求,将不会执行远程节点上的命令,因此 C-SPOC 操作将会失败。

使用 C-SPOC 实用工具,在一个节点(发起更改的节点)上执行的命令也会在其他集群节点上执行。C-SPOC 最大限度地减少了管理开销,并降低了节点状态不一致的可能性
以下我们将利用C-SPOC功能来在线添加PV及扩展FS

二、创建PV
1、创建PV
用命令Cfgmgr –v/usr/DynamicLinkManager/bin/dlmcfgmgr配置LUN
其中dlmfdrvX就是HDLM封装的为设备
# lspv
hdisk0          000345a76cc6fc03                    rootvg          active
hdisk1          000345a72fc97c3c                    rootvg          active
hdisk2          none                                None            
hdisk3          none                                None            
dlmfdrv0        000344b9f4ebfc92                    hbvg            concurrent
dlmfdrv1        000344b9f4ee1d74                    dominovg        active
hdisk8          none                                None            
hdisk9          none                                None            
dlmfdrv2        none                                None            
hdisk6          none                                None            
hdisk7          none                                None

在两个节点分别创建PV
# chdev -l dlmfdrv2 -a pv=yes
dlmfdrv2 已更改

2、检查PVID
Node 1
# lspv
hdisk0          000345a76cc6fc03                    rootvg          active
hdisk1          000345a72fc97c3c                    rootvg          active
hdisk2          none                                None            
hdisk3          none                                None            
dlmfdrv0        000344b9f4ebfc92                    hbvg            concurrent
dlmfdrv1        000344b9f4ee1d74                    dominovg        active
hdisk6          none                                None            
hdisk7          none                                None            
hdisk10         none                                None            
hdisk11         none                                None            
dlmfdrv2        000345a70c2be00e                                None   

Node 2
# lspv
hdisk0          000344b96ca1ba08                    rootvg          active
hdisk1          000344b930963e28                    rootvg          active
hdisk2          none                                None            
hdisk3          none                                None            
dlmfdrv0        000344b9f4ebfc92                    hbvg            concurrent
dlmfdrv1        000344b9f4ee1d74                    dominovg        
hdisk6          none                                None            
hdisk7          none                                None            
hdisk8          none                                None            
hdisk9          none                                None            
dlmfdrv2        000345a70c2be00e                    None

输出显示两个节点的PVID已经生成。

三、使用C-SPOC功能扩展VG
1、进入C-SPOC
  # smitty hacmp
  Initialization and Standard Configuration
   Extended Configuration
   System Management (C-SPOC)  
    Problem Determination Tools

2HACMP Logical Volume Management
   Manage HACMP Services
   HACMP Communication Interface Management
   HACMP Resource Group and Application Management
   HACMP Log Viewing and Management
   HACMP File Collection Management
   HACMP Security and Users Management
   HACMP Logical Volume Management
   HACMP Concurrent Logical Volume Management
   HACMP Physical Volume Management
   Configure GPFS
  Open a SMIT Session on a Node

3Shared Volume Groups
  Shared Volume Groups
   Shared Logical Volumes
   Shared File Systems
   Synchronize Shared LVM Mirrors
   Synchronize a Shared Volume Group Definition
  
4Set Characteristics of a Shared Volume Group
   List All Shared Volume Groups
   Create a Shared Volume Group
   Create a Shared Volume Group with Data Path Devices
   Set Characteristics of a Shared Volume Group
   Import a Shared Volume Group
   Mirror a Shared Volume Group
   Unmirror a Shared Volume Group

5Add a Volume to a Shared Volume Group
  Add a Volume to a Shared Volume Group  
    Remove a Volume from a Shared Volume Group
   Enable/Disable a Shared Volume Group for Cross-Site LVM Mirroring
     Verification

6、选择需要扩容的VG
Shared Volume Group Names                     
#Resource Group                         Volume Group
dominorg                                    dominovg
#Resource Group                         Volume Group
hbrg                                           hbvg

7、回车,然后选择添加的硬盘
Node_a        dlmfdrv2

8、确定无误后,回车继续
Resource Group Name                                    dominorg
VOLUME GROUP name                                   dominovg
Reference node                                             Node_a
VOLUME names                                             dlmfdrv2

9、检查两节点PV是否加入VG
Node 1
# lspv
hdisk0          000345a76cc6fc03                    rootvg          active
hdisk1          000345a72fc97c3c                    rootvg          active
hdisk2          none                                        None            
hdisk3          none                                        None            
dlmfdrv0        000344b9f4ebfc92                   hbvg            concurrent
dlmfdrv1        000344b9f4ee1d74                  dominovg        active
hdisk8          none                                        None            
hdisk9          none                                        None            
dlmfdrv2        000345a70c2be00e                  dominovg        active
hdisk6          none                                        None            
hdisk7          none                                        None            
#

Node 2
# lspv
hdisk0          000344b96ca1ba08                    rootvg          active
hdisk1          000344b930963e28                    rootvg          active
hdisk2          none                                         None            
hdisk3          none                                         None            
dlmfdrv0        000344b9f4ebfc92                     hbvg            concurrent
dlmfdrv1        000344b9f4ee1d74                    dominovg        
hdisk6          none                                          None            
hdisk7          none                                          None            
hdisk8          none                                          None            
hdisk9          none                                          None            
dlmfdrv2        000345a70c2be00e                    dominovg   
   
其中Node 1是主节点,Node 2是备节点;
从以上输出信息可以知道dlmfdrv2已经添加到dominovg中,VG的信息已经自动同步;由于Node 1是主节点,因此dlmfdrv2在该节点是active的。

四、使用C-SPOC功能扩展FS
1、进入System Management (C-SPOC)
  #smitty hacmp
Initialization and Standard Configuration
  Extended Configuration
  System Management (C-SPOC)  Problem Determination Tools


2HACMP Logical Volume Management
Manage HACMP Services
  HACMP Communication Interface Management
  HACMP Resource Group and Application Management
  HACMP Log Viewing and Management
  HACMP File Collection Management
  HACMP Security and Users Management
  HACMP Logical Volume Management
  HACMP Concurrent Logical Volume Management
  HACMP Physical Volume Management
  Configure GPFS
  Open a SMIT Session on a Node



3Shared File Systems
   Shared Volume Groups
   Shared Logical Volumes
   Shared File Systems
   Synchronize Shared LVM Mirrors
   Synchronize a Shared Volume Group Definition



4、选择JFS2类型
  日志文件系统
  增强型日志文件系统



5Change / Show Characteristics of a Shared JFS2
   Add an Enhanced Journaled File System
   Add an Enhanced Journaled File System on a Previously Defined Logical Volume
   List All Shared File Systems
   Change / Show Characteristics of a Shared Enhanced Journaled File System
   Remove a Shared File System

6、选择需要扩容的文件系统
# Resource Group         FileSystem                        
  dominorg                    /domino   

7、输入文件系统大小
Resource Group Name                                 dominorg
文件系统名称                                        /domino
新建安装点                                          [/domino]
文件系统的大小                                     [387618048]
安装组                                                []
许可权                                               /
安装选项                                             []
是否启动磁盘记帐?                                  No
块大小(字节)                                      4096
是否直接插入日志?                                  No
直接插入日志大小 MB                          0

Node_a: 0516-787 extendlv: Maximum allocation for logical volume fslv01
Node_a:       is 798.
Node_a: cl_rsh had exit code = 1, see cspoc.log and/or clcomd.log for more information
cl_chfs: Error executing chfs  -a size="387618048" /domino on node Node_a

扩容失败,检查PP SIZE
# lsvg dominovg |grep SIZE
VG STATE:           active                   PP SIZE:        128 megabyte(s)

显然,/domino目录所关联的LV可分配的最大LV数量只有798798*128=102,因此只能把文件系统扩展到100g多;需要修改LV属性支持更大的文件系统。

8、修改LV属性以支持更多的LP
  Initialization and Standard Configuration
   Extended Configuration
   System Management (C-SPOC)
   Problem Determination Tools

  Manage HACMP Services
   HACMP Communication Interface Management
   HACMP Resource Group and Application Management
   HACMP Log Viewing and Management
   HACMP File Collection Management
   HACMP Security and Users Management
   HACMP Logical Volume Management
   HACMP Concurrent Logical Volume Management
   HACMP Physical Volume Management
   Configure GPFS
   Open a SMIT Session on a Node

Shared Volume Groups
Shared Logical Volumes
Shared File Systems
Synchronize Shared LVM Mirrors
Synchronize a Shared Volume Group Definition
  

List All Shared Logical Volumes by Volume Group
Add a Shared Logical Volume
Set Characteristics of a Shared Logical Volume
Show Characteristics of a Shared Logical Volume
Change a Shared Logical Volume
   Remove a Shared Logical Volume

“逻辑分区的最大数量”这一栏输入该LV的最大PP数量


dominorg        fslv01                                            
dominorg        loglv01

* Resource Group Name                                 dominorg
* 逻辑卷名称                                                  fslv01
  逻辑卷类型                                                   [jfs2]
物理卷位置                                                     中间
物理卷范围                                                      最小
用于分配的物理卷最大数量                                  [32]   
要将每个逻辑分区副本分配到一个单独的物理卷吗?      
逻辑分区的最大数量                                           [2048]
读取/写入的“规划策略”逻辑分区副本                  parallel     
许可权                                                            /
要启用坏块重定位吗?                                         
要启用写入验证吗?                                              
要一致性镜像化写入吗?                                        主动

按照以上方法进入C-SPOCLVM
Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined LV
List All Shared File Systems
Change / Show Characteristics of a Shared Enhanced Journaled File System

输入文件系统的大小,然后回车
  Resource Group Name                                 dominorg
  文件系统名称                                        /domino
  新建安装点                                         [/domino]
  文件系统的大小                                     [387618048]
  安装组                                             []
  许可权                                              /
安装选项                                           []
是否启动磁盘记帐?                                  No
块大小(字节)                                      4096
是否直接插入日志?                                  No
直接插入日志大小 MB                             0

Node_a: Filesystem size changed to 387710976

9、检查文件系统大小
# df -g
文件系统           GB       可用 %Used    Iused %Iused     安装于
/dev/hd4            0.12      0.06   54%     2607    16% /
/dev/hd2            8.00      3.10   62%    48252     7% /usr
/dev/hd9var         3.00      0.92   70%     1195     1% /var
/dev/hd3            2.00      1.56   23%      396     1% /tmp
/dev/fwdump         0.12      0.12    1%        4     1% /var/adm/ras/platform
/dev/hd1            0.12      0.12    1%       49     1% /home
/proc                  -         -    -         -     -  /proc
/dev/hd10opt        1.00      0.89   11%     1405     1% /opt
/dev/fslv01       184.88    100.22   46%     4589     1% /domino
#
至此,VGFS都已经扩容完成。

本文来源:https://www.2haoxitong.net/k/doc/4306b482bceb19e8b8f6bad0.html

《C-SPOC.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式