关于双机下增加硬盘的问题

两台机器通过power vm做的双机,HA是7.1的版本

双机下增加一块盘到共享VG下,需要通过HACMP操作吗?

具体怎么来做?

参与25

2 同行回答

li6ye111 li6ye111 交互工程师 国电通
CSPOS工具:1、创建PV用命令Cfgmgr –v及/usr/DynamicLinkManager/bin/dlmcfgmgr配置LUN;其中dlmfdrvX就是HDLM封装的为设备# lspvhdisk0          000345a76cc6fc03                ...显示全部

CSPOS工具:

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

2、HACMP 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

3、Shared Volume Groups
??  Shared Volume Groups
  ??Shared Logical Volumes
  ??Shared File Systems
  ??Synchronize Shared LVM Mirrors
  ??Synchronize a Shared Volume Group Definition
  
4、Set 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

5、Add 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的。

收起
软件开发 · 2016-07-12
浏览2737

提问者

yangming27
yangming27 0 0 1
系统运维工程师 兖矿集团
擅长领域: 系统管理服务器存储
评论230

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-07-12
  • 关注会员:3 人
  • 问题浏览:4543
  • 最近回答:2016-07-12
  • X社区推广